Spotify artist API
Followers, monthly listeners, world rank, top cities, bio, links, top tracks, albums, singles, related artists and playlists (in extra).
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Spotify has no handles: id is the 22 character id.
You send one of url or id.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/spotify/artist" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'id=06HL4z0CvFAxyc27GXpf02'import os
import requests
params = {
"id": "06HL4z0CvFAxyc27GXpf02",
}
res = requests.get(
"https://api.socialscrape.io/v1/spotify/artist",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/spotify/artist");
url.search = new URLSearchParams({
id: "06HL4z0CvFAxyc27GXpf02",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Spotify artist",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/spotify/artist",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "id",
"value": "06HL4z0CvFAxyc27GXpf02"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | one of | Spotify artist URL. |
id | string | one of | Spotify artist id. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_3ddfd4e1fcccd90820f62478",
"data": {
"object": "profile",
"platform": "spotify",
"id": "06HL4z0CvFAxyc27GXpf02",
"handle": null,
"name": "Taylor Swift",
"headline": null,
"url": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
"kind": "artist",
"bio": "And, baby, that’s sh0w business f0r y0u ❤️🔥",
"avatar_url": "https://i.scdn.co/image/ab6761610000e5eb12184bdd29403de54cb9d9c7",
"banner_url": "https://image-cdn-fa.spotifycdn.com/image/ab6761860000eab13b4424dc244fb1e1f454ca2b",
"verified": true,
"is_private": null,
"external_url": null,
"links": [
{
"title": "Facebook",
"url": "https://facebook.com/TaylorSwift"
},
{
"title": "Instagram",
"url": "https://instagram.com/taylorswift"
},
{
"title": "Twitter",
"url": "https://twitter.com/taylorswift13"
}
],
"location": null,
"category": null,
"created_at": null,
"stats": {
"followers": 165980697,
"following": null,
"posts": null,
"likes": null,
"views": null
},
"extra": {
"albums": [
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b273cf3de6b538d8b1ed73a4d5d1",
"id": "4hF2gTGuPYlykYuphDxi8J",
"label": "Taylor Swift",
"release_date": "2026-09-25",
"release_date_precision": "DAY",
"title": "The Life of a Showgirl: The Encore",
"track_count": 16,
"type": "album",
"url": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"
},
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b273f756bdc2c11a985dc0c06d94",
"id": "6QNMhoV8V0u7cFuhhUBOn7",
"label": "Taylor Swift",
"release_date": "2025-11-07",
"release_date_precision": "DAY",
"title": "The Life of a Showgirl + Acoustic Collection",
"track_count": 19,
"type": "album",
"url": "https://open.spotify.com/album/6QNMhoV8V0u7cFuhhUBOn7"
},
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b273d7812467811a7da6e6a44902",
"id": "4a6NzYL1YHRUgx9e3YZI6I",
"label": "Taylor Swift",
"release_date": "2025-10-03",
"release_date_precision": "DAY",
"title": "The Life of a Showgirl",
"track_count": 12,
"type": "album",
"url": "https://open.spotify.com/album/4a6NzYL1YHRUgx9e3YZI6I"
}
],
"appears_on": [
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b2731dac3694b3289cd903cb3acf",
"id": "0hBRqPYPXhr1RkTDG3n4Mk",
"release_date": "2024",
"release_date_precision": "YEAR",
"title": "The Secret of Us (Deluxe)",
"type": "album",
"url": "https://open.spotify.com/album/0hBRqPYPXhr1RkTDG3n4Mk"
},
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b2736e2101520787791370f4a96b",
"id": "56bdWeO40o3WfAD2Lja4dl",
"release_date": "2024",
"release_date_precision": "YEAR",
"title": "The Secret of Us",
"type": "album",
"url": "https://open.spotify.com/album/56bdWeO40o3WfAD2Lja4dl"
},
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b2730e8ba185f3e9f15630a7b5fb",
"id": "1fc8tPf36cZhNYpNFrWh7o",
"release_date": "2009",
"release_date_precision": "YEAR",
"title": "Hannah Montana The Movie",
"type": "compilation",
"url": "https://open.spotify.com/album/1fc8tPf36cZhNYpNFrWh7o"
}
],
"appears_on_count": 149,
"artist_playlists": [
{
"id": "65uAjFTt4N8sEJeonhNOBL",
"name": "And, baby, that’s sh0w business f0r y0u ❤️🔥",
"owner": "Taylor Swift",
"url": "https://open.spotify.com/playlist/65uAjFTt4N8sEJeonhNOBL"
},
{
"description": "Everything Taylor Swift Right Here",
"id": "4GtQVhGjAwcHFz82UKy3Ca",
"name": "Taylor Swift Complete Collection",
"owner": "Taylor Swift",
"url": "https://open.spotify.com/playlist/4GtQVhGjAwcHFz82UKy3Ca"
},
{
"description": "Songs From Lover Performed Live In Paris",
"id": "1Ew1IbrHjmNedkANLw1jdr",
"name": "Live From Paris",
"owner": "Taylor Swift",
"url": "https://open.spotify.com/playlist/1Ew1IbrHjmNedkANLw1jdr"
}
],
"compilations": [
{
"cover_url": "https://i.scdn.co/image/ab67616d0000b273c246cd7fb142b383672627c8",
"id": "30gDvYhEgyTbGEdCIY8FWV",
"label": "Taylor Swift",
"release_date": "2024-10-03",
"release_date_precision": "DAY",
"title": "THE TORTURED POETS DEPARTMENT | TS The Eras Tour Setlist",
"track_count": 7,
"type": "compilation",
"url": "https://open.spotify.com/album/30gDvYhEgyTbGEdCIY8FWV"
}
],
"concerts_count": 0
}
},
"cursor": null,
"has_more": null
}Fields
One Profile in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "profile" | ||
platform | Platform | yes | |
id | string or null | ||
handle | string or null | ||
name | string or null | ||
headline | string or null | a short tagline apart from the bio (LinkedIn's headline) | |
url | string or null | ||
kind | "person" or "creator" or "channel" or "page" or "company" or "artist" or "organization" or "shop" or "unknown" | ||
bio | string or null | ||
avatar_url | string or null | ||
banner_url | string or null | ||
verified | boolean or null | ||
is_private | boolean or null | ||
external_url | string or null |
Show the other 6 fields
| Field | Type | Always | Notes |
|---|---|---|---|
links | Link[] or null | ||
location | string or null | ||
category | string or null | ||
created_at | string (ISO 8601 date-time) or null | ||
stats | ProfileStats | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The preview Python client has client.spotify.artist(...) and the TypeScript client client.spotify.artist(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.