Spotify API
Spotify Artist API
Fetch a Spotify artist's discography (albums, singles, top tracks) and metadata by artist URL or ID.
POST/v1/run/spotify.artist
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": {
"albums": [
{
"id": "a1b2c3d4",
"name": "Example title",
"trackCount": 12500,
"type": "general",
"uri": "example",
"year": 2024
}
],
"topTracks": [
{
"id": "a1b2c3d4",
"name": "Example title",
"playcount": 12500,
"uri": "example"
}
]
},
"found": true
}Response interface
interface SpotifyArtistResponse {
data: {
albums: {
id: string;
name: string;
trackCount: number;
type: string;
uri: string;
year: number;
}[];
topTracks: {
id: string;
name: string;
playcount: number;
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.artist
curl -X POST https://api.getanyapi.com/v1/run/spotify.artist \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| id | string | Spotify artist ID (alternative to url). |
| url | string | "https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa"Spotify artist URL (e.g. https://open.spotify.com/artist/3DiDSECUqqY1AuBP8qtaIa). |
| Response | ||
| data | object | |
| data.albums | object[] | Populated whenever the provider has data for the entity. |
| data.albums[].id | string | Populated whenever the provider has data for the entity. |
| data.albums[].name | string | Populated whenever the provider has data for the entity. |
| data.albums[].trackCount | integer | |
| data.albums[].type | string | Populated whenever the provider has data for the entity. |
| data.albums[].uri | string | Populated whenever the provider has data for the entity. |
| data.albums[].year | integer | Populated whenever the provider has data for the entity. |
| data.topTracks | object[] | Populated whenever the provider has data for the entity. |
| data.topTracks[].id | string | |
| data.topTracks[].name | string | |
| data.topTracks[].playcount | integer | |
| data.topTracks[].uri | string | |
| found | boolean | |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the Spotify Artist API
The AnyAPI Spotify Artist API returns Spotify artist data as normalized JSON from one POST call to /v1/run/spotify.artist. Fetch a Spotify artist's discography (albums, singles, top tracks) and metadata by artist 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 artist's discography (albums, singles, top tracks) and metadata by artist 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.