Request
https://api.zapi.ink/v1/music:spotify/album/:idSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| id | string | path | Yes | Album ID (22-char base62), URI form, or full album URL Example: 4yP0hdKOZPNshxUOjY0cZj |
Code examples
curl -X GET "https://api.zapi.ink/v1/music:spotify/album/4yP0hdKOZPNshxUOjY0cZj" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/music:spotify/album/4yP0hdKOZPNshxUOjY0cZj", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/music:spotify/album/4yP0hdKOZPNshxUOjY0cZj", headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "music:spotify", "data": { "url": "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj", "image": "https://image-cdn-ak.spotifycdn.com/image/ab67616d0000b2738863bc11d2aa12b54f5aeb36", "title": "After Hours", "artist": "The Weeknd", "tracks": [ { "url": "https://open.spotify.com/track/6b5P51m8xx2XA6U7sdNZ5E", "title": "Alone Again", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/77e54c6064335e259d0f571768af5f96c22304d4", "trackId": "6b5P51m8xx2XA6U7sdNZ5E", "durationMs": 250053, "isExplicit": true, "trackNumber": 1 }, { "url": "https://open.spotify.com/track/2K9Ovn1o2bTGqbsABGC6m3", "title": "Too Late", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/2b7a3f91db7e2ce0526b45bc878c5277eb3df28a", "trackId": "2K9Ovn1o2bTGqbsABGC6m3", "durationMs": 239973, "isExplicit": true, "trackNumber": 2 }, { "url": "https://open.spotify.com/track/6kWxIqQDsKFYCJGbU4AjCX", "title": "Hardest To Love", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/0271808f406491a32f3ca28e11aa5faf600adf88", "trackId": "6kWxIqQDsKFYCJGbU4AjCX", "durationMs": 211400, "isExplicit": true, "trackNumber": 3 }, { "url": "https://open.spotify.com/track/4BGZF4oLbTL0pWm7C18pbv", "title": "Scared To Live", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/1682f650068ad5659508370192cc7854b454d166", "trackId": "4BGZF4oLbTL0pWm7C18pbv", "durationMs": 191306, "isExplicit": true, "trackNumber": 4 }, { "url": "https://open.spotify.com/track/3WlbeuhfRSqU7ylK2Ui5U7", "title": "Snowchild", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/145a6811b2f7d2489e50c1845ed47cfb5d8c4d8d", "trackId": "3WlbeuhfRSqU7ylK2Ui5U7", "durationMs": 247186, "isExplicit": true, "trackNumber": 5 }, { "url": "https://open.spotify.com/track/1sOW4PuG5X3Ie3EXUhAopJ", "title": "Escape From LA", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/098a07649cf6db99f150930fd732c2733cc2be90", "trackId": "1sOW4PuG5X3Ie3EXUhAopJ", "durationMs": 355960, "isExplicit": true, "trackNumber": 6 }, { "url": "https://open.spotify.com/track/6bnF93Rx87YqUBLSgjiMU8", "title": "Heartless", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/ffe5646cbee66e2a1bf7e0472cfed0ad777232b4", "trackId": "6bnF93Rx87YqUBLSgjiMU8", "durationMs": 198266, "isExplicit": true, "trackNumber": 7 }, { "url": "https://open.spotify.com/track/3orEOtd8CPL8GFlpRpKuoE", "title": "Faith", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/dd93b587cac54ed11b207dd704236fde6516512e", "trackId": "3orEOtd8CPL8GFlpRpKuoE", "durationMs": 283226, "isExplicit": true, "trackNumber": 8 }, { "url": "https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b", "title": "Blinding Lights", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/51c08d92815cce4ac2de94a7335a430b81234624", "trackId": "0VjIjW4GlUZAMYd2vXMi3b", "durationMs": 200040, "isExplicit": false, "trackNumber": 9 }, { "url": "https://open.spotify.com/track/7szuecWAPwGoV1e5vGu8tl", "title": "In Your Eyes", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/ad4adb8a7c82359d511f7d9900d9f3742e0d2932", "trackId": "7szuecWAPwGoV1e5vGu8tl", "durationMs": 237520, "isExplicit": true, "trackNumber": 10 }, { "url": "https://open.spotify.com/track/5QO79kh1waicV47BqGRL3g", "title": "Save Your Tears", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/4bb5ee4441a2342502372f80f78a92cf3fe22549", "trackId": "5QO79kh1waicV47BqGRL3g", "durationMs": 215626, "isExplicit": true, "trackNumber": 11 }, { "url": "https://open.spotify.com/track/40U8d12pC5UHqmHwXjHjjl", "title": "Repeat After Me (Interlude)", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/14171ddd9559bd25ed882ff1f62c9ad16a4c0f93", "trackId": "40U8d12pC5UHqmHwXjHjjl", "durationMs": 195813, "isExplicit": true, "trackNumber": 12 }, { "url": "https://open.spotify.com/track/2p8IUWQDrpjuFltbdgLOag", "title": "After Hours", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/2375bc6998d765b02b229ff44e5c3d7b75fff74a", "trackId": "2p8IUWQDrpjuFltbdgLOag", "durationMs": 361026, "isExplicit": false, "trackNumber": 13 }, { "url": "https://open.spotify.com/track/2BcnxwxBuar5wjCaLqm5N3", "title": "Until I Bleed Out", "artist": "The Weeknd", "preview": "https://p.scdn.co/mp3-preview/6afac5b510ec7203bcfa68c2c06bf89b36f1ed54", "trackId": "2BcnxwxBuar5wjCaLqm5N3", "durationMs": 190173, "isExplicit": true, "trackNumber": 14 } ], "albumId": "4yP0hdKOZPNshxUOjY0cZj", "isExplicit": false, "popularity": 0, "totalTracks": 14 }, "timestamp": "2026-05-27T13:27:15Z" }
Frequently asked questions
How do I call the Spotify Album Detail API?
Send a GET request to https://api.zapi.ink/v1/music:spotify/album/4yP0hdKOZPNshxUOjY0cZj with your Zapi key in the x-api-key header. Parameters — required: id. The response is JSON in the { project, data, timestamp } envelope.
What does the Spotify Album Detail API return?
Fetch album info with its tracklist. The example response has the fields url, image, title, artist, tracks, albumId, isExplicit, popularity. Each item in tracks has fields such as url, title, artist, preview, trackId, durationMs, isExplicit, trackNumber.
Is the Spotify Album Detail API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Spotify Album Detail API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "spotify" and endpoint "album".
What other Spotify API endpoints are there?
It has 3 endpoints. Besides Album Detail: Search, Track Detail.
