Spotify API
Spotify Album API
Fetch a Spotify album's tracklist, play counts, label, and release details by album URL or ID.
POST/v1/run/spotify.album
Requests
-
30d
Try it
Make your first request
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
"data": {
"id": "a1b2c3d4",
"label": "Example title",
"name": "Example title",
"popularity": 42,
"releaseDate": "2024-01-15T09:30:00Z",
"tracks": [
{
"durationMs": 13,
"name": "Example title",
"playcount": 12500,
"uri": "example"
}
],
"type": "general",
"uri": "example"
},
"found": true
}Response interface
interface SpotifyAlbumResponse {
data: {
id: string;
label: string;
name: string;
popularity: number;
releaseDate: string;
tracks: {
durationMs: number;
name: string;
playcount: number;
uri: string;
}[];
type: string;
uri: string;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dPOST /v1/run/spotify.album
curl -X POST https://api.getanyapi.com/v1/run/spotify.album \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| id | string | Spotify album ID (alternative to url). |
| url | string | "https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"Spotify album URL (e.g. https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG). |
| Response | ||
| data | object | |
| data.id | string | Populated whenever the provider has data for the entity. |
| data.label | string | Populated whenever the provider has data for the entity. |
| data.name | string | Populated whenever the provider has data for the entity. |
| data.popularity | integer | |
| data.releaseDate | string | Populated whenever the provider has data for the entity. |
| data.tracks | object[] | Populated whenever the provider has data for the entity. |
| data.tracks[].durationMs | integer | |
| data.tracks[].name | string | |
| data.tracks[].playcount | integer | |
| data.tracks[].uri | string | |
| data.type | string | Populated whenever the provider has data for the entity. |
| data.uri | string | Populated whenever the provider has data for the entity. |
| found | boolean | |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the Spotify Album API
The AnyAPI Spotify Album API returns Spotify album data as normalized JSON from one POST call to /v1/run/spotify.album. Fetch a Spotify album's tracklist, play counts, label, and release details by album 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.
It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.
Fetch a Spotify album's tracklist, play counts, label, and release details by album URL or ID. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.