cURL
curl --request GET \ --url https://spotify-api31.p.rapidapi.com/api/v1/playlists/tracks \ --header 'x-rapidapi-key: <api-key>'
{ "data": [ { "id": "5ftED3IYts5K7gChGOUuHG", "name": "Despacito", "uri": "spotify:track:5ftED3IYts5K7gChGOUuHG", "duration": 247663, "artists": [ { "name": "Luis Fonsi", "uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG" } ], "contentRating": { "label": "NONE" }, "playability": { "playable": true } } ], "message": "Success", "statusCode": 200, "pagination": { "total": 100, "hasMore": true, "continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX" } }
Get tracks from a specific playlist
API Key
Spotify playlist URI to get tracks from
"spotify:playlist:37i9dQZF1DXcBWIGoYBM5M"
Offset for pagination
x >= 0
0
Number of results to return
1 <= x <= 300
300
Success
Array of tracks in the playlist
Show child attributes
"Success"
200
Was this page helpful?