Docs menu

Spotify artist

Beta GET /v1/spotify/artist

GET /v1/spotify/artist

Followers, monthly listeners, world rank, top cities, bio, links, top tracks, albums, singles, related artists and playlists (in extra). Spotify has no handles: id is the 22 character id.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofSpotify artist URL. Accepted hosts: open.spotify.com, spotify.com, spotify.link.
idstringone ofSpotify artist id.

Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.

Every request also accepts:

  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

curl
curl -G "https://api.socialscrape.io/v1/spotify/artist" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "id=06HL4z0CvFAxyc27GXpf02"
Python
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,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
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);
}
n8n
{
  "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": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "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,
      "discovered_on_playlists": [
        {
          "description": "The essential tracks, all in one playlist.",
          "id": "37i9dQZF1DX5KpP2LN299J",
          "name": "This Is Taylor Swift",
          "owner": "Spotify",
          "url": "https://open.spotify.com/playlist/37i9dQZF1DX5KpP2LN299J"
        },
        {
          "description": "ALL TAYLOR SWIFT SONGS in order. All taylors versions included. 🤍",
          "id": "1mwIluT6YC7UOrVfMNoowr",
          "name": "All Taylor Swift Songs",
          "owner": "Giselle ⸆⸉",
          "url": "https://open.spotify.com/playlist/1mwIluT6YC7UOrVfMNoowr"
        },
        {
          "description": "Everything Taylor Swift Right Here",
          "id": "4GtQVhGjAwcHFz82UKy3Ca",
          "name": "Taylor Swift Complete Collection",
          "owner": "Taylor Swift",
          "url": "https://open.spotify.com/playlist/4GtQVhGjAwcHFz82UKy3Ca"
        }
      ],
      "featuring_playlists": [
        {
          "description": "The essential tracks, all in one playlist.",
          "id": "37i9dQZF1DX5KpP2LN299J",
          "name": "This Is Taylor Swift",
          "owner": "Spotify",
          "url": "https://open.spotify.com/playlist/37i9dQZF1DX5KpP2LN299J"
        },
        {
          "description": "The hottest 50. Cover: Tate McRae",
          "id": "37i9dQZF1DXcBWIGoYBM5M",
          "name": "Today’s Top Hits",
          "owner": "Spotify",
          "url": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
        },
        {
          "description": "The biggest Christmas songs of all time.",
          "id": "37i9dQZF1DX0Yxoavh5qJV",
          "name": "Christmas Hits",
          "owner": "Spotify",
          "url": "https://open.spotify.com/playlist/37i9dQZF1DX0Yxoavh5qJV"
        }
      ],
      "gallery_urls": [
        "https://i.scdn.co/image/ab6761670000ecd42bf054eaed60a69249718908",
        "https://i.scdn.co/image/ab6761670000ecd464d14cdfef28e4d6f1662b92",
        "https://i.scdn.co/image/ab6761670000ecd4cfb500c2d2059c6cf61f507c"
      ],
      "is_registered": true,
      "latest_release": {
        "cover_url": "https://i.scdn.co/image/ab67616d0000b27316bc19366517944ef91c6654",
        "id": "3rU7c934ngxDXPfjgXyzyu",
        "label": "Taylor Swift",
        "release_date": "2026-10-16",
        "release_date_precision": "DAY",
        "title": "Patient Zero",
        "track_count": 3,
        "type": "single",
        "url": "https://open.spotify.com/album/3rU7c934ngxDXPfjgXyzyu"
      },
      "monthly_listeners": 101565168,
      "pinned_item": {
        "comment": "And, baby, thats sh0w business f0r y0u",
        "id": "4hF2gTGuPYlykYuphDxi8J",
        "image_url": "https://image-cdn-fa.spotifycdn.com/image/ab67616d000075a0cf3de6b538d8b1ed73a4d5d1",
        "subtitle": "Album • New Release",
        "title": "The Life of a Showgirl: The Encore",
        "type": "album",
        "url": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"
      },
      "playlists_count": 4,
      "popular_releases": [
        {
          "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/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"
        },
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b273e787cffec20aa2a396a61647",
          "id": "1NAmidJlEaVgA3MpcPFYGq",
          "label": "Taylor Swift",
          "release_date": "2019-08-23",
          "release_date_precision": "DAY",
          "title": "Lover",
          "track_count": 18,
          "type": "album",
          "url": "https://open.spotify.com/album/1NAmidJlEaVgA3MpcPFYGq"
        }
      ],
      "related_artists": [
        {
          "avatar_url": "https://i.scdn.co/image/ab6761610000e5ebb14eb4dcfd2f3858bed06e44",
          "id": "1McMsnEElThX1knmY4oliG",
          "name": "Olivia Rodrigo",
          "url": "https://open.spotify.com/artist/1McMsnEElThX1knmY4oliG"
        },
        {
          "avatar_url": "https://i.scdn.co/image/ab6761610000e5eb78e45cfa4697ce3c437cb455",
          "id": "74KM79TiuVKeVCqs8QtB0B",
          "name": "Sabrina Carpenter",
          "url": "https://open.spotify.com/artist/74KM79TiuVKeVCqs8QtB0B"
        },
        {
          "avatar_url": "https://i.scdn.co/image/ab6761610000e5eb18e3675ebfda9c29cfb2b57e",
          "id": "4tuJ0bMpJh08umKkEXKUI5",
          "name": "Gracie Abrams",
          "url": "https://open.spotify.com/artist/4tuJ0bMpJh08umKkEXKUI5"
        }
      ],
      "release_counts": {
        "albums": 34,
        "compilations": 1,
        "singles": 80
      },
      "singles": [
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b27316bc19366517944ef91c6654",
          "id": "3rU7c934ngxDXPfjgXyzyu",
          "label": "Taylor Swift",
          "release_date": "2026-10-16",
          "release_date_precision": "DAY",
          "title": "Patient Zero",
          "track_count": 3,
          "type": "single",
          "url": "https://open.spotify.com/album/3rU7c934ngxDXPfjgXyzyu"
        },
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b273e8852f06eca817333d20e60b",
          "id": "4Ii9whWXI1O1H01ziECRaG",
          "label": "Walt Disney Records / Pixar",
          "release_date": "2026-06-12",
          "release_date_precision": "DAY",
          "title": "I Knew It, I Knew You (From \"Toy Story 5\")",
          "track_count": 3,
          "type": "single",
          "url": "https://open.spotify.com/album/4Ii9whWXI1O1H01ziECRaG"
        },
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b273dc6e4c7774e0c77c210d3a31",
          "id": "71GTik4z9bbKKY2EmUvkDI",
          "label": "Taylor Swift",
          "release_date": "2026-03-31",
          "release_date_precision": "DAY",
          "title": "Elizabeth Taylor",
          "track_count": 3,
          "type": "single",
          "url": "https://open.spotify.com/album/71GTik4z9bbKKY2EmUvkDI"
        }
      ],
      "top_cities": [
        {
          "city": "London",
          "country": "GB",
          "listeners": 1554218,
          "region": "ENG"
        },
        {
          "city": "Quezon City",
          "country": "PH",
          "listeners": 1396271,
          "region": "00"
        },
        {
          "city": "Jakarta",
          "country": "ID",
          "listeners": 1154672,
          "region": "JK"
        }
      ],
      "top_tracks": [
        {
          "artists": [
            "Taylor Swift"
          ],
          "cover_url": "https://i.scdn.co/image/ab67616d00001e02cf3de6b538d8b1ed73a4d5d1",
          "duration_seconds": 225.868,
          "explicit": false,
          "id": "11hcBLPtbMp4aQI6zGQLub",
          "plays": 128062746,
          "title": "Patient Zero",
          "url": "https://open.spotify.com/track/11hcBLPtbMp4aQI6zGQLub"
        },
        {
          "artists": [
            "Taylor Swift"
          ],
          "cover_url": "https://i.scdn.co/image/ab67616d00001e02d7812467811a7da6e6a44902",
          "duration_seconds": 226.073,
          "explicit": false,
          "id": "53iuhJlwXhSER5J2IYYv1W",
          "plays": 1758871992,
          "title": "The Fate of Ophelia",
          "url": "https://open.spotify.com/track/53iuhJlwXhSER5J2IYYv1W"
        },
        {
          "artists": [
            "Taylor Swift"
          ],
          "cover_url": "https://i.scdn.co/image/ab67616d00001e029abdf14e6058bd3903686148",
          "duration_seconds": 231.826,
          "explicit": false,
          "id": "1p80LdxRV74UKvL8gnD7ky",
          "plays": 2652610587,
          "title": "Blank Space",
          "url": "https://open.spotify.com/track/1p80LdxRV74UKvL8gnD7ky"
        }
      ],
      "uri": "spotify:artist:06HL4z0CvFAxyc27GXpf02",
      "world_rank": 5
    }
  },
  "cursor": null,
  "has_more": null
}

Response#

A Profile object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

{
  "ok": false,
  "error": {
    "code": "invalid_params",
    "message": "A parameter is missing, unknown or has the wrong type.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_42365f8a488ca7fefd9024d1"
}