API · Spotify
GET /spotify/playlists/{id}
A public Spotify playlist: followers, owner and its tracks, 100 a page.
| |
|---|
| Request | GET /v1/spotify/playlists/{id} |
| Operation id | spotify.playlist.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A public Spotify playlist: followers, owner and its tracks, 100 a page.
| Name | Type | Required | Description |
|---|
id | string | yes | A Spotify playlist id, spotify:playlist: URI, or open.spotify.com/playlist/ link (URL-encoded). Example: 37i9dQZF1DXcBWIGoYBM5M. |
| Name | Type | Required | Description |
|---|
after | string | no | Cursor: the previous page’s next_cursor. |
| Status | Meaning | Schema |
|---|
200 | The playlist and a page of its tracks. | SpotifyPlaylistResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Spotify object by that id, or it is not public. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Spotify is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
playlist | object | |
tracks | object | |
next_cursor | string | null | Pass as after for the next 100 tracks. |
Errors use one shape everywhere; see Errors for every code and what to do.