API · Spotify
GET /spotify/tracks/{id}
A Spotify track: artists, album, duration and all-time play count.
| Request | GET /v1/spotify/tracks/{id} |
| Operation id | spotify.track.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Spotify track: artists, album, duration and all-time play count.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | A Spotify track id, spotify:track: URI, or open.spotify.com/track/ link (URL-encoded). Example: 11dFghVXANMlKmJXsNCbNl. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The track. | SpotifyTrackResponse |
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 |
SpotifyTrackResponse fields
| Field | Type | Description |
|---|---|---|
track | SpotifyTrack |
Errors use one shape everywhere; see Errors for every code and what to do.