curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/tracks/recommendations \
--header 'x-rapidapi-key: <api-key>'{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": [
{
"id": "5QTlj4L7ODIKNnTkhDE16p",
"name": "Rhymes",
"uri": "spotify:track:5QTlj4L7ODIKNnTkhDE16p",
"duration": 200005,
"artists": [
{
"name": "Hannah Wants",
"uri": "spotify:artist:7sK4hnuUOXw6VStDw0q8NI"
}
]
}
]
}Get recommended tracks based on a specific track
curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/tracks/recommendations \
--header 'x-rapidapi-key: <api-key>'{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": [
{
"id": "5QTlj4L7ODIKNnTkhDE16p",
"name": "Rhymes",
"uri": "spotify:track:5QTlj4L7ODIKNnTkhDE16p",
"duration": 200005,
"artists": [
{
"name": "Hannah Wants",
"uri": "spotify:artist:7sK4hnuUOXw6VStDw0q8NI"
}
]
}
]
}API Key
Spotify track URI to get recommendations for
^spotify:track:[a-zA-Z0-9]+$"spotify:track:4WNcduiCmDNfmTEz7JvmLv"
Number of recommendations to return
1 <= x <= 5020
Was this page helpful?