Spotify artist API
  1. Docs
  2. Spotify
  3. Spotify artist API

Spotify artist API

Followers, monthly listeners, world rank, top cities, bio, links, top tracks, albums, singles, related artists and playlists (in `extra`).

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
  • 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).

1curl -G "https://api.socialscrape.dev/v1/spotify/artist" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode "id=06HL4z0CvFAxyc27GXpf02"

Example response#

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

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_3ddfd4e1fcccd90820f62478",8  "data": {9    "object": "profile",10    "platform": "spotify",11    "id": "06HL4z0CvFAxyc27GXpf02",12    "handle": null,13    "name": "Taylor Swift",14    "headline": null,15    "url": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",16    "kind": "artist",17    "bio": "And, baby, that’s sh0w business f0r y0u ❤️‍🔥",18    "avatar_url": "https://i.scdn.co/image/ab6761610000e5eb12184bdd29403de54cb9d9c7",19    "banner_url": "https://image-cdn-fa.spotifycdn.com/image/ab6761860000eab13b4424dc244fb1e1f454ca2b",20    "verified": true,21    "is_private": null,22    "external_url": null,23    "links": [24      {25        "title": "Facebook",26        "url": "https://facebook.com/TaylorSwift"27      },28      {29        "title": "Instagram",30        "url": "https://instagram.com/taylorswift"31      },32      {33        "title": "Twitter",34        "url": "https://twitter.com/taylorswift13"35      }36    ],37    "location": null,38    "category": null,39    "created_at": null,40    "stats": {41      "followers": 165980697,42      "following": null,43      "posts": null,44      "likes": null,45      "views": null46    },47    "extra": {48      "albums": [49        {50          "cover_url": "https://i.scdn.co/image/ab67616d0000b273cf3de6b538d8b1ed73a4d5d1",51          "id": "4hF2gTGuPYlykYuphDxi8J",52          "label": "Taylor Swift",53          "release_date": "2026-09-25",54          "release_date_precision": "DAY",55          "title": "The Life of a Showgirl: The Encore",56          "track_count": 16,57          "type": "album",58          "url": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"59        },60        {61          "cover_url": "https://i.scdn.co/image/ab67616d0000b273f756bdc2c11a985dc0c06d94",62          "id": "6QNMhoV8V0u7cFuhhUBOn7",63          "label": "Taylor Swift",64          "release_date": "2025-11-07",65          "release_date_precision": "DAY",66          "title": "The Life of a Showgirl + Acoustic Collection",67          "track_count": 19,68          "type": "album",69          "url": "https://open.spotify.com/album/6QNMhoV8V0u7cFuhhUBOn7"70        },71        {72          "cover_url": "https://i.scdn.co/image/ab67616d0000b273d7812467811a7da6e6a44902",73          "id": "4a6NzYL1YHRUgx9e3YZI6I",74          "label": "Taylor Swift",75          "release_date": "2025-10-03",76          "release_date_precision": "DAY",77          "title": "The Life of a Showgirl",78          "track_count": 12,79          "type": "album",80          "url": "https://open.spotify.com/album/4a6NzYL1YHRUgx9e3YZI6I"81        }82      ],83      "appears_on": [84        {85          "cover_url": "https://i.scdn.co/image/ab67616d0000b2731dac3694b3289cd903cb3acf",86          "id": "0hBRqPYPXhr1RkTDG3n4Mk",87          "release_date": "2024",88          "release_date_precision": "YEAR",89          "title": "The Secret of Us (Deluxe)",90          "type": "album",91          "url": "https://open.spotify.com/album/0hBRqPYPXhr1RkTDG3n4Mk"92        },93        {94          "cover_url": "https://i.scdn.co/image/ab67616d0000b2736e2101520787791370f4a96b",95          "id": "56bdWeO40o3WfAD2Lja4dl",96          "release_date": "2024",97          "release_date_precision": "YEAR",98          "title": "The Secret of Us",99          "type": "album",100          "url": "https://open.spotify.com/album/56bdWeO40o3WfAD2Lja4dl"101        },102        {103          "cover_url": "https://i.scdn.co/image/ab67616d0000b2730e8ba185f3e9f15630a7b5fb",104          "id": "1fc8tPf36cZhNYpNFrWh7o",105          "release_date": "2009",106          "release_date_precision": "YEAR",107          "title": "Hannah Montana The Movie",108          "type": "compilation",109          "url": "https://open.spotify.com/album/1fc8tPf36cZhNYpNFrWh7o"110        }111      ],112      "appears_on_count": 149,113      "artist_playlists": [114        {115          "id": "65uAjFTt4N8sEJeonhNOBL",116          "name": "And, baby, that’s sh0w business f0r y0u ❤️‍🔥",117          "owner": "Taylor Swift",118          "url": "https://open.spotify.com/playlist/65uAjFTt4N8sEJeonhNOBL"119        },120        {121          "description": "Everything Taylor Swift Right Here",122          "id": "4GtQVhGjAwcHFz82UKy3Ca",123          "name": "Taylor Swift Complete Collection",124          "owner": "Taylor Swift",125          "url": "https://open.spotify.com/playlist/4GtQVhGjAwcHFz82UKy3Ca"126        },127        {128          "description": "Songs From Lover Performed Live In Paris",129          "id": "1Ew1IbrHjmNedkANLw1jdr",130          "name": "Live From Paris",131          "owner": "Taylor Swift",132          "url": "https://open.spotify.com/playlist/1Ew1IbrHjmNedkANLw1jdr"133        }134      ],135      "compilations": [136        {137          "cover_url": "https://i.scdn.co/image/ab67616d0000b273c246cd7fb142b383672627c8",138          "id": "30gDvYhEgyTbGEdCIY8FWV",139          "label": "Taylor Swift",140          "release_date": "2024-10-03",141          "release_date_precision": "DAY",142          "title": "THE TORTURED POETS DEPARTMENT | TS The Eras Tour Setlist",143          "track_count": 7,144          "type": "compilation",145          "url": "https://open.spotify.com/album/30gDvYhEgyTbGEdCIY8FWV"146        }147      ],148      "concerts_count": 0,149      "discovered_on_playlists": [150        {151          "description": "The essential tracks, all in one playlist.",152          "id": "37i9dQZF1DX5KpP2LN299J",153          "name": "This Is Taylor Swift",154          "owner": "Spotify",155          "url": "https://open.spotify.com/playlist/37i9dQZF1DX5KpP2LN299J"156        },157        {158          "description": "ALL TAYLOR SWIFT SONGS in order. All taylors versions included. 🤍",159          "id": "1mwIluT6YC7UOrVfMNoowr",160          "name": "All Taylor Swift Songs",161          "owner": "Giselle ⸆⸉",162          "url": "https://open.spotify.com/playlist/1mwIluT6YC7UOrVfMNoowr"163        },164        {165          "description": "Everything Taylor Swift Right Here",166          "id": "4GtQVhGjAwcHFz82UKy3Ca",167          "name": "Taylor Swift Complete Collection",168          "owner": "Taylor Swift",169          "url": "https://open.spotify.com/playlist/4GtQVhGjAwcHFz82UKy3Ca"170        }171      ],172      "featuring_playlists": [173        {174          "description": "The essential tracks, all in one playlist.",175          "id": "37i9dQZF1DX5KpP2LN299J",176          "name": "This Is Taylor Swift",177          "owner": "Spotify",178          "url": "https://open.spotify.com/playlist/37i9dQZF1DX5KpP2LN299J"179        },180        {181          "description": "The hottest 50. Cover: Tate McRae",182          "id": "37i9dQZF1DXcBWIGoYBM5M",183          "name": "Today’s Top Hits",184          "owner": "Spotify",185          "url": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"186        },187        {188          "description": "The biggest Christmas songs of all time.",189          "id": "37i9dQZF1DX0Yxoavh5qJV",190          "name": "Christmas Hits",191          "owner": "Spotify",192          "url": "https://open.spotify.com/playlist/37i9dQZF1DX0Yxoavh5qJV"193        }194      ],195      "gallery_urls": [196        "https://i.scdn.co/image/ab6761670000ecd42bf054eaed60a69249718908",197        "https://i.scdn.co/image/ab6761670000ecd464d14cdfef28e4d6f1662b92",198        "https://i.scdn.co/image/ab6761670000ecd4cfb500c2d2059c6cf61f507c"199      ],200      "is_registered": true,201      "latest_release": {202        "cover_url": "https://i.scdn.co/image/ab67616d0000b27316bc19366517944ef91c6654",203        "id": "3rU7c934ngxDXPfjgXyzyu",204        "label": "Taylor Swift",205        "release_date": "2026-10-16",206        "release_date_precision": "DAY",207        "title": "Patient Zero",208        "track_count": 3,209        "type": "single",210        "url": "https://open.spotify.com/album/3rU7c934ngxDXPfjgXyzyu"211      },212      "monthly_listeners": 101565168,213      "pinned_item": {214        "comment": "And, baby, thats sh0w business f0r y0u",215        "id": "4hF2gTGuPYlykYuphDxi8J",216        "image_url": "https://image-cdn-fa.spotifycdn.com/image/ab67616d000075a0cf3de6b538d8b1ed73a4d5d1",217        "subtitle": "Album • New Release",218        "title": "The Life of a Showgirl: The Encore",219        "type": "album",220        "url": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"221      },222      "playlists_count": 4,223      "popular_releases": [224        {225          "cover_url": "https://i.scdn.co/image/ab67616d0000b273cf3de6b538d8b1ed73a4d5d1",226          "id": "4hF2gTGuPYlykYuphDxi8J",227          "label": "Taylor Swift",228          "release_date": "2026-09-25",229          "release_date_precision": "DAY",230          "title": "The Life of a Showgirl: The Encore",231          "track_count": 16,232          "type": "album",233          "url": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"234        },235        {236          "cover_url": "https://i.scdn.co/image/ab67616d0000b273d7812467811a7da6e6a44902",237          "id": "4a6NzYL1YHRUgx9e3YZI6I",238          "label": "Taylor Swift",239          "release_date": "2025-10-03",240          "release_date_precision": "DAY",241          "title": "The Life of a Showgirl",242          "track_count": 12,243          "type": "album",244          "url": "https://open.spotify.com/album/4a6NzYL1YHRUgx9e3YZI6I"245        },246        {247          "cover_url": "https://i.scdn.co/image/ab67616d0000b273e787cffec20aa2a396a61647",248          "id": "1NAmidJlEaVgA3MpcPFYGq",249          "label": "Taylor Swift",250          "release_date": "2019-08-23",251          "release_date_precision": "DAY",252          "title": "Lover",253          "track_count": 18,254          "type": "album",255          "url": "https://open.spotify.com/album/1NAmidJlEaVgA3MpcPFYGq"256        }257      ],258      "related_artists": [259        {260          "avatar_url": "https://i.scdn.co/image/ab6761610000e5ebb14eb4dcfd2f3858bed06e44",261          "id": "1McMsnEElThX1knmY4oliG",262          "name": "Olivia Rodrigo",263          "url": "https://open.spotify.com/artist/1McMsnEElThX1knmY4oliG"264        },265        {266          "avatar_url": "https://i.scdn.co/image/ab6761610000e5eb78e45cfa4697ce3c437cb455",267          "id": "74KM79TiuVKeVCqs8QtB0B",268          "name": "Sabrina Carpenter",269          "url": "https://open.spotify.com/artist/74KM79TiuVKeVCqs8QtB0B"270        },271        {272          "avatar_url": "https://i.scdn.co/image/ab6761610000e5eb18e3675ebfda9c29cfb2b57e",273          "id": "4tuJ0bMpJh08umKkEXKUI5",274          "name": "Gracie Abrams",275          "url": "https://open.spotify.com/artist/4tuJ0bMpJh08umKkEXKUI5"276        }277      ],278      "release_counts": {279        "albums": 34,280        "compilations": 1,281        "singles": 80282      },283      "singles": [284        {285          "cover_url": "https://i.scdn.co/image/ab67616d0000b27316bc19366517944ef91c6654",286          "id": "3rU7c934ngxDXPfjgXyzyu",287          "label": "Taylor Swift",288          "release_date": "2026-10-16",289          "release_date_precision": "DAY",290          "title": "Patient Zero",291          "track_count": 3,292          "type": "single",293          "url": "https://open.spotify.com/album/3rU7c934ngxDXPfjgXyzyu"294        },295        {296          "cover_url": "https://i.scdn.co/image/ab67616d0000b273e8852f06eca817333d20e60b",297          "id": "4Ii9whWXI1O1H01ziECRaG",298          "label": "Walt Disney Records / Pixar",299          "release_date": "2026-06-12",300          "release_date_precision": "DAY",301          "title": "I Knew It, I Knew You (From \"Toy Story 5\")",302          "track_count": 3,303          "type": "single",304          "url": "https://open.spotify.com/album/4Ii9whWXI1O1H01ziECRaG"305        },306        {307          "cover_url": "https://i.scdn.co/image/ab67616d0000b273dc6e4c7774e0c77c210d3a31",308          "id": "71GTik4z9bbKKY2EmUvkDI",309          "label": "Taylor Swift",310          "release_date": "2026-03-31",311          "release_date_precision": "DAY",312          "title": "Elizabeth Taylor",313          "track_count": 3,314          "type": "single",315          "url": "https://open.spotify.com/album/71GTik4z9bbKKY2EmUvkDI"316        }317      ],318      "top_cities": [319        {320          "city": "London",321          "country": "GB",322          "listeners": 1554218,323          "region": "ENG"324        },325        {326          "city": "Quezon City",327          "country": "PH",328          "listeners": 1396271,329          "region": "00"330        },331        {332          "city": "Jakarta",333          "country": "ID",334          "listeners": 1154672,335          "region": "JK"336        }337      ],338      "top_tracks": [339        {340          "artists": [341            "Taylor Swift"342          ],343          "cover_url": "https://i.scdn.co/image/ab67616d00001e02cf3de6b538d8b1ed73a4d5d1",344          "duration_seconds": 225.868,345          "explicit": false,346          "id": "11hcBLPtbMp4aQI6zGQLub",347          "plays": 128062746,348          "title": "Patient Zero",349          "url": "https://open.spotify.com/track/11hcBLPtbMp4aQI6zGQLub"350        },351        {352          "artists": [353            "Taylor Swift"354          ],355          "cover_url": "https://i.scdn.co/image/ab67616d00001e02d7812467811a7da6e6a44902",356          "duration_seconds": 226.073,357          "explicit": false,358          "id": "53iuhJlwXhSER5J2IYYv1W",359          "plays": 1758871992,360          "title": "The Fate of Ophelia",361          "url": "https://open.spotify.com/track/53iuhJlwXhSER5J2IYYv1W"362        },363        {364          "artists": [365            "Taylor Swift"366          ],367          "cover_url": "https://i.scdn.co/image/ab67616d00001e029abdf14e6058bd3903686148",368          "duration_seconds": 231.826,369          "explicit": false,370          "id": "1p80LdxRV74UKvL8gnD7ky",371          "plays": 2652610587,372          "title": "Blank Space",373          "url": "https://open.spotify.com/track/1p80LdxRV74UKvL8gnD7ky"374        }375      ],376      "uri": "spotify:artist:06HL4z0CvFAxyc27GXpf02",377      "world_rank": 5378    }379  },380  "cursor": null,381  "has_more": null382}

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:

1{2  "ok": false,3  "error": {4    "code": "invalid_params",5    "message": "A parameter is missing, unknown or has the wrong type.",6    "retryable": false7  },8  "credits_charged": 0,9  "request_id": "req_42365f8a488ca7fefd9024d1"10}