Skip to main content
GET
Get Music Genres

Overview

Retrieve a comprehensive list of available music genres for filtering and searching music tracks. Use these genre values to find music that matches the specific musical style and sound of your video content.
You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.

API Endpoint


Request Parameters

Headers

string
required
API key for authentication (starts with pictai_)

Response

array of strings
Array of available music genre names. Each genre represents a distinct musical style or category for filtering music tracks in search queries.

Response Examples


Code Examples

Replace YOUR_API_KEY with your actual API key that starts with pictai_

Usage Notes

Use these exact genre values when searching for music to ensure valid selection from available categories. Genre values are case-sensitive and must match exactly as returned by this endpoint.
Genre Diversity: The API provides over 100 distinct genre options spanning diverse musical styles, from classical (Baroque, Romantic Period) to contemporary (Trap, Synthwave) to world music (African, Middle Eastern, Celtic), enabling precise matching of music style to your video’s theme.

Common Use Cases

1. Populate a Genre Selector

Fetch all available genres to populate a dropdown or selection interface in your application:

2. Categorize Genres by Music Family

Organize genres into broader musical categories for simplified user selection:

3. Validate User Selection

Ensure user-selected genres are valid before using them in music search requests:

4. Display Genre Categories

Create a user-friendly categorized display of genres: