Search Music Tracks
Music Search
Search Music Tracks
Search for music tracks based on various filters including genres, moods, instruments, purposes, and duration
POST
Search Music Tracks
Documentation Index
Fetch the complete documentation index at: https://docs.pictory.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Search through Pictory’s music library to find tracks that match your specific criteria. Filter by multiple attributes including genre groups, genres, moods, instruments, purposes, duration, and search queries. Results include streaming URLs, metadata, and comprehensive categorization data.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
API key for authentication (starts with
pictai_)Body Parameters
Page number for pagination (must be ≥ 1)
Number of results per page (must be between 20 and 100)
Sort order for resultsOptions:
latest- Sort by most recently added tracksshuffle- Randomize the order of resultsfeatured- Sort by featured/curated tracks
Search query to filter tracks by keywords in title or description
Filter by genre groups (e.g., [“Rock”, “Electronic”]). Use the Get Music Genre Groups endpoint to retrieve valid values.
Exclude specific genre groups from results
Filter by specific genres (e.g., [“Indie Rock”, “Techno”]). Use the Get Music Genres endpoint to retrieve valid values.
Exclude specific genres from results
Filter by moods (e.g., [“Happy / Bright”, “Energetic / Lively”]). Use the Get Music Moods endpoint to retrieve valid values.
Exclude specific moods from results
Filter by instruments (e.g., [“Piano”, “Guitar - Acoustic”]). Use the Get Music Instruments endpoint to retrieve valid values.
Exclude specific instruments from results
Filter by purposes (e.g., [“Corporate / Business”, “Wedding”]). Use the Get Music Purposes endpoint to retrieve valid values.
Exclude specific purposes from results
Minimum track duration in seconds
Maximum track duration in seconds
Response
Array of music track objects matching the search criteria
Total number of tracks matching the search criteria across all pages
Total number of pages available for the search results
Current page number in the result set
Response Examples
Code Examples
Usage Notes
Pagination Requirements: The
pageSize parameter must be between 20 and 100. If you need fewer results, simply use the first N items from the response array.Filter Validation: All filter values (genres, moods, instruments, purposes) are case-sensitive and must match exactly as returned by their respective list endpoints. Use the dedicated GET endpoints to retrieve valid filter values before searching.
