API · Spotify
GET /spotify/albums/{id}
A Spotify album with its tracks, label, release date and play counts.
| Request | GET /v1/spotify/albums/{id} |
| Operation id | spotify.album.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Spotify album with its tracks, label, release date and play counts.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | A Spotify album id, spotify:album: URI, or open.spotify.com/album/ link (URL-encoded). Example: 4aawyAB9vmqN3uQ7FjRGTy. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The album with its tracks. | SpotifyAlbumResponse |
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 |
SpotifyAlbumResponse fields
| Field | Type | Description |
|---|---|---|
album | SpotifyAlbum | A simplified album. |
Errors use one shape everywhere; see Errors for every code and what to do.