get_recommendations
Get personalized track recommendations from Spotify using seed tracks. Provide up to five track URIs or IDs to receive a list of similar songs.
Instructions
Fetch track recommendations based on a list of seed track URIs or IDs.
Note
Spotify deprecated the public recommendations endpoint in November 2024. This tool works for apps created before that date or granted continued access.
Parameters
seed_tracks : list[str] Spotify track URIs or bare IDs (max 5 seeds; excess are truncated). limit : int, optional Number of recommendations to return (1–100, default: 5).
Returns
dict
Keys: seeds (list[str]), tracks (list[dict]).
Raises
ValueError
If seed_tracks is empty or limit is out of range.
spotipy.SpotifyException
Propagated if the Spotify API returns a non-2xx response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| seed_tracks | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||