Skip to main content
GET
Get Music Purposes

Overview

Retrieve a comprehensive list of available music purposes for filtering and searching music tracks. Use these purpose values to find music that matches the specific use case, context, or application 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

Authorization
string
required
API key for authentication (starts with pictai_)

Response

purposes
array of strings
Array of available music purpose names. Each purpose represents a distinct use case, context, or application scenario 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 purpose values when searching for music to ensure valid selection from available categories. Purpose values are case-sensitive and must match exactly as returned by this endpoint.
Purpose Diversity: The API provides 74 distinct purpose options spanning various contexts, from media types (TV Theme, Animation/Explainer, Trailer/Promo) to genres (Action, Comedy, Horror) to specific applications (Corporate/Business, Wedding, Real Estate), enabling precise matching of music to your video’s intended use and context.

Common Use Cases

1. Populate a Purpose Selector

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

2. Categorize Purposes by Context

Organize purposes into logical categories for simplified user selection:

3. Validate User Input

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

4. Build Multi-Category Purpose Filter

Create a categorized purpose filter for intuitive music discovery:

5. Smart Purpose Recommendation

Suggest relevant purposes based on video content analysis:

6. Filter by Time Period

Create a dedicated filter for era-specific music: