Spotify
Spotify Track API
To get a Spotify track's details and play count, call GET /v1/spotify/track?url=… with your API key. You get clean JSON back.
GET
/v1/spotify/trackcurl "https://api.scraperize.com/v1/spotify/track?url=https://open.spotify.com/track/11dFghVXANMlKmJXsNCbNl" \ -H "x-api-key: YOUR_API_KEY"
Cost
1 credit / call
Only successful calls are charged. Errors are free.
Pagination
Single response
Everything comes back in one call.
Caching
0 credits
Set
cache_max_age to reuse a recent result for free.Rate limit
Per team / minute
Over the limit:
429 with a Retry-After header.Parameters
idOptionalThe track's Spotify ID (the 22 characters at the end of its link). Required unless
url is given.urlOptionalThe track's open.spotify.com link (a
spotify: URI works too). Required unless id is given.cache_max_ageOptionalOptional. Return a cached result if one this age or newer exists — served for 0 credits with
meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.One of 5 values.Send your key in the x-api-key header. Full API reference
Example response
200 OK · application/json
{
"data": {
"id": "11dFghVXANMlKmJXsNCbNl",
"name": "Cut To The Feeling",
"url": "https://open.spotify.com/track/11dFghVXANMlKmJXsNCbNl",
"durationMs": 207959,
"explicit": false,
"playCount": 176620876,
"trackNumber": 1,
"playable": true,
"mediaType": "AUDIO",
"artists": [
{
"id": "6sFIWsNpZYqfjUpaCgueju",
"name": "Carly Rae Jepsen",
"url": "https://open.spotify.com/artist/6sFIWsNpZYqfjUpaCgueju",
"avatar": "https://i.scdn.co/image/ab6761610000e5eb55e3a8d4fe7f0053fffca258",
"verified": null
}
],
"album": {
"id": "0tGPJ0bkWOUmH7MEOR77qc",
"name": "Cut To The Feeling",
"url": "https://open.spotify.com/album/0tGPJ0bkWOUmH7MEOR77qc",
"type": "SINGLE",
"releaseDate": "2017-05-26",
"image": "https://i.scdn.co/image/ab67616d0000b2737359994525d219f64872d3b1",
"color": "#88D8E0",
"trackCount": 1,
"copyrights": [
{
"type": "C",
"text": "© 2017 School Boy/Interscope Records"
}
]
},
"videos": [
{
"id": "0zLq6vMdIBO0U6SbaDdgC8",
"name": "Cut To The Feeling",
"url": "https://open.spotify.com/track/0zLq6vMdIBO0U6SbaDdgC8",
"thumbnail": "https://i.scdn.co/image/ab6742d3000053b7ddd8690175319ecd4985927f"
}
],
"fetchedAt": "2026-11-16T13:05:11.171Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}A real response, shortened to one item per list.
FAQ
Spotify Track API questions
How much does the Spotify Track API cost?
1 credit per successful call. Errors and cached results are free, and new accounts start with 100 free credits, no card required. See pricing.
Do I need a Spotify account or API key?
No. You only need a Scraperize API key, sent in the x-api-key header. Scraperize returns publicly available data. No Spotify login or developer app is needed.
How fresh is the data?
Each call fetches the data live. To trade freshness for cost, pass cache_max_age (e.g. 1h, 1d) to get a recent cached result instantly for 0 credits.
Where are the full parameters and response fields?
In the API reference, with every parameter, field and error.