Search Spotify
search_tracksSearch Spotify for tracks, albums, artists, or playlists using keywords and filters like genre, year, and artist. Get paginated results to find music quickly.
Instructions
Search Spotify for tracks, albums, artists, or playlists.
Args:
query: Search query
qtype: Type ('track', 'album', 'artist', 'playlist')
limit: Max results per page (1-50, default 10)
offset: Number of results to skip for pagination (default 0)
year: Filter by year (e.g., '2024')
year_range: Filter by year range (e.g., '2020-2024')
genre: Filter by genre (e.g., 'electronic', 'hip-hop')
artist: Filter by artist name
album: Filter by album name
Returns:
SearchResults with 'items' (list of tracks) and pagination info ('total', 'limit', 'offset')
Note: Filters use Spotify's search syntax. For large result sets, use offset to paginate.
Example: query='love', year='2024', genre='pop' searches for 'love year:2024 genre:pop'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| qtype | No | track | |
| limit | No | ||
| offset | No | ||
| year | No | ||
| year_range | No | ||
| genre | No | ||
| artist | No | ||
| album | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| total | Yes | ||
| limit | Yes | ||
| offset | Yes | ||
| next | No | ||
| previous | No |