Spotify Track API
Fetch a Spotify track's play count, popularity, duration, and album details by track URL or ID.
$1.20/1k req, pay per request, no subscription.
{"id": "5tHqowP2R2edmL1zBqfWWT","name": "Nightbloom","playcount": 18420331,"popularity": 71,"durationMs": 214000,"trackNumber": 1,"uri": "spotify:track:5tHqowP2R2edmL1zBqfWWT","shareUrl": "https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT",... 4 more fields}
Pricing
Spotify Track API pricing
Try it
Get Spotify track in one request
This sample shows 14 of 15 fields. See every field
{
"found": true,
"data": {
"id": "5tHqowP2R2edmL1zBqfWWT",
"name": "Nightbloom",
"playcount": 18420331,
"popularity": 71,
"durationMs": 214000,
"trackNumber": 1,
"uri": "spotify:track:5tHqowP2R2edmL1zBqfWWT",
"shareUrl": "https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT",
"image": "https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b",
"albumName": "Nightbloom",
"artistName": "Juniper Vale",
"releaseDate": "2025-06-13"
}
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
One request, one response shape.
Every field you send and every field you get back, each with a real example.
Last verified 2026-10-31 · uptime and latency measured over 30d
Request body
JSON, posted to this endpoint.
- idstring
Spotify track ID (alternative to url).
- urlstring
https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT
Spotify track URL (e.g. https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT).
Response
JSON, one example value per field.
- albumNamestring
Nightbloom
Name of the album the track appears on.
- artistNamestring
Juniper Vale
Name of the primary artist.
- durationMsinteger
214000
Populated whenever the provider has data for the entity.
- idstring
5tHqowP2R2edmL1zBqfWWT
Populated whenever the provider has data for the entity.
- imagestring
https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b
URL of the cover art image.
- namestring
Nightbloom
Populated whenever the provider has data for the entity.
- playcountinteger
18420331
- popularityinteger
71
- releaseDatestring
2025-06-13
Album release date as an ISO 8601 string.
- shareUrlstring
https://open.spotify.com/track/5tHqowP2R2edmL1zBqfWWT
Populated whenever the provider has data for the entity.
- trackNumberinteger
1
Populated whenever the provider has data for the entity.
- uristring
spotify:track:5tHqowP2R2edmL1zBqfWWT
Populated whenever the provider has data for the entity.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
FAQ
About the Spotify Track API
The AnyAPI Spotify Track API returns Spotify track data as normalized JSON from one POST call to /v1/run/spotify.track. Fetch a Spotify track's play count, popularity, duration, and album details by track URL or ID. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Spotify track calls through AnyAPI succeeded, with a median response time of 1.8 seconds across 2 measured calls.