100 free credits. No credit card required. Get a key

Spotify playlist API

A public Spotify playlist with description, owner, followers and its tracks, 100 a page, each with when it was added.

GET /v1/spotify/playlists/{id}1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/spotify/playlists/37i9dQZF1DXcBWIGoYBM5M",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"playlist": {
"id": "37i9dQZF1DXcBWIGoYBM5M",
"name": "Today’s Top Hits",
"type": "playlist",
"uri": "spotify:playlist:37i9dQZF1DXcBWIGoYBM5M",
"external_urls": {
"spotify": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
},
"description": "The hottest 50. Cover: Justice",
"images": [
{
"url": "https://i.scdn.co/image/ab67706f00000002ffe80c69d2e795ea01e63447",
"height": null,
"width": null
}
],
"owner": {
"id": "spotify",
"display_name": "Spotify",
"uri": "spotify:user:spotify"
},
"followers": {
"total": 33546043
}
},
"tracks": {
"items": [
{
"added_at": "2026-11-20T05:02:01.898Z",
"track": {
"id": "4HCOHRCSQelz2GPX8iTamO",
"name": "Flower In A Hurricane (feat. Tame Impala, SZA, King Gizzard & the Lizard Wizard) [From GTAVI: Original Score]",
"type": "track",
"uri": "spotify:track:4HCOHRCSQelz2GPX8iTamO",
"external_urls": {
"spotify": "https://open.spotify.com/track/4HCOHRCSQelz2GPX8iTamO"
},
"duration_ms": 224877,
"explicit": false,
"disc_number": 1,
"track_number": 1,
"is_playable": true,
"artists": [
{
"…": "5 fields"
},
{
"…": "5 fields"
},
"… 3 more"
],
"album": {
"id": "1V8Qu6CwkBfYucnCWxynq8",
"uri": "spotify:album:1V8Qu6CwkBfYucnCWxynq8",
"type": "album",
"external_urls": {
"…": "1 fields"
},
"name": "Flower In A Hurricane (feat. Tame Impala, SZA, King Gizzard & the Lizard Wizard) [From GTAVI: Original Score]",
"images": [
"…"
],
"release_date": "2026-10-15",
"release_date_precision": "day"
},
"playcount": 76765855
}
},
{
"added_at": "2026-11-06T05:02:41.791Z",
"track": {
"id": "2sFepQNyl1WjpROruP8bJ0",
"name": "Housewife",
"type": "track",
"uri": "spotify:track:2sFepQNyl1WjpROruP8bJ0",
"external_urls": {
"spotify": "https://open.spotify.com/track/2sFepQNyl1WjpROruP8bJ0"
},
"duration_ms": 208810,
"explicit": false,
"disc_number": 1,
"track_number": 1,
"is_playable": true,
"artists": [
{
"…": "5 fields"
}
],
"album": {
"id": "6JvmSyocXef7RZDZFaymNl",
"uri": "spotify:album:6JvmSyocXef7RZDZFaymNl",
"type": "album",
"external_urls": {
"…": "1 fields"
},
"name": "Housewife",
"images": [
"…"
],
"release_date": "2026-10-15",
"release_date_precision": "day"
},
"playcount": 212475919
}
},
"… 48 more"
],
"total": 50,
"offset": 0
},
"next_cursor": null
}

Parameters

NameTypeDescription
idpath · requiredstringA Spotify playlist id, spotify:playlist: URI, or open.spotify.com/playlist/ link (URL-encoded). Example: 37i9dQZF1DXcBWIGoYBM5M.
afterquerystringCursor: the previous page’s next_cursor.
Response fields

200 with a SpotifyPlaylistResponse, in the shape of the Spotify Web API’s own objects.

FieldTypeDescription
playlistobject
tracksobject
next_cursorstring | nullPass as after for the next 100 tracks.
Status codes
StatusMeaning
200The playlist and a page of its tracks.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No Spotify object by that id, or it is not public.
429Too many requests. Wait for Retry-After seconds.
503Spotify is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Private playlists?

Not available: only public ones.

Spotify is a trademark of Spotify AB. We are not affiliated with or endorsed by Spotify.