Request
https://api.zapi.ink/v1/music:spotify/track/: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 | Track ID (22-char base62), URI form, or full track URL Example: 11dFghVXANMlKmJXsNCbNl |
Code examples
curl -X GET "https://api.zapi.ink/v1/music:spotify/track/11dFghVXANMlKmJXsNCbNl" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/music:spotify/track/11dFghVXANMlKmJXsNCbNl", { 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/track/11dFghVXANMlKmJXsNCbNl", headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "music:spotify", "data": { "url": "https://open.spotify.com/track/11dFghVXANMlKmJXsNCbNl", "image": "https://image-cdn-ak.spotifycdn.com/image/ab67616d0000b2733188158b6cfdc17994be4c5f", "title": "Cut To The Feeling", "artist": "Carly Rae Jepsen", "artists": [ { "id": "6sFIWsNpZYqfjUpaCgueju", "url": "https://open.spotify.com/artist/6sFIWsNpZYqfjUpaCgueju", "name": "Carly Rae Jepsen" } ], "preview": "https://p.scdn.co/mp3-preview/c011f4a360ae0ec93b366b5f328a17b2c5ae118d", "trackId": "11dFghVXANMlKmJXsNCbNl", "hasVideo": false, "durationMs": 207959, "isExplicit": false, "isPlayable": true, "releaseDate": "2017-05-26", "isNineteenPlus": false }, "timestamp": "2026-05-27T13:27:15Z" }
Frequently asked questions
How do I call the Spotify Track Detail API?
Send a GET request to https://api.zapi.ink/v1/music:spotify/track/11dFghVXANMlKmJXsNCbNl 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 Track Detail API return?
Fetch full metadata for a single track by ID or URL. The example response has the fields url, image, title, artist, artists, preview, trackId, hasVideo. Each item in artists has fields such as id, url, name.
Is the Spotify Track 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 Track 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 "track".
What other Spotify API endpoints are there?
It has 3 endpoints. Besides Track Detail: Search, Album Detail.
