A Spotify album by URL or ID with its tracklist, per-track play counts, album total, label and release date.
5 credits/ call
Never more than 57 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/spotify.album" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"}'{
"output": {
"found": true,
"data": {
"name": "<string | null>",
"popularity": "<integer | null>",
"trackCount": "<integer | null>",
"playcount": "<integer | null>", …
}
},
"credits": 5
}Input and output
2 fields
https://open.spotify.com/album/4yP0hdKO….16 fields
Good to know
Terms of use. Cover art and metadata are copyrighted: links are passed through, nothing is re-hosted.
More from Spotify. Same key, same credits.
The same key and credits work for every API.