Spotify artist API
A Spotify artist with followers, monthly listeners, world rank, top cities, biography, top tracks with play counts, albums, singles and related artists.
GET /v1/spotify/artists/{id}1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/spotify/artists/0TnOYISbd1XYRBk9myaseg",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "artist": { "id": "0TnOYISbd1XYRBk9myaseg", "name": "Pitbull", "type": "artist", "uri": "spotify:artist:0TnOYISbd1XYRBk9myaseg", "external_urls": { "spotify": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg" }, "images": [ { "…": "3 fields" }, "… 2 more" ], "followers": { "total": 13666627 }, "monthly_listeners": 73291484, "…": "6 more fields" }, "top_tracks": [ { "id": "4QNpBfC0zvjKqPJcyqBy9W", "name": "Give Me Everything (feat. Nayer)", "type": "track", "uri": "spotify:track:4QNpBfC0zvjKqPJcyqBy9W", "external_urls": { "…": "1 fields" }, "duration_ms": 252306, "explicit": false, "disc_number": 1, "…": "5 more fields" }, "… 9 more" ], "latest_release": { "id": "2vCZdkjVYlWjg61JjAlkQQ", "name": "Ooh Laka Laka La", "type": "album", "album_type": "single", "uri": "spotify:album:2vCZdkjVYlWjg61JjAlkQQ", "external_urls": { "spotify": "https://open.spotify.com/album/2vCZdkjVYlWjg61JjAlkQQ" }, "images": [ { "…": "3 fields" }, "… 2 more" ], "release_date": "2026-11-11", "…": "3 more fields" }, "albums": { "items": [ { "…": "11 fields" }, "… 9 more" ], "total": 22 }, "singles": { "items": [ { "…": "11 fields" }, "… 9 more" ], "total": 184 }, "compilations": { "items": [ { "…": "11 fields" }, "… 2 more" ], "total": 3 }, "appears_on": { "items": [ { "…": "11 fields" }, "… 20 more" ], "total": 781 }, "playlists": { "items": [ { "…": "8 fields" }, "… 7 more" ], "total": 8 }, "…": "1 more fields"}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | A Spotify artist id, spotify:artist: URI, or open.spotify.com/artist/ link (URL-encoded). Example: 0TnOYISbd1XYRBk9myaseg. |
Response fields
200 with a SpotifyArtistResponse, in the shape of the Spotify Web API’s own objects.
| Field | Type | Description |
|---|---|---|
artist | SpotifyArtist | A simplified artist. |
top_tracks | SpotifyTrack[] | |
latest_release | SpotifyAlbumRef | A simplified album. |
albums | object | |
singles | object | |
compilations | object | |
appears_on | object | |
playlists | object | Playlists featuring the artist. |
related_artists | SpotifyArtistRef[] |
Status codes
| Status | Meaning |
|---|---|
200 | The artist and its catalogue overview. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Spotify object by that id, or it is not public. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Spotify is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Does it include popularity?
No, the web player does not show it; monthly listeners and play counts are richer signals.
Spotify is a trademark of Spotify AB. We are not affiliated with or endorsed by Spotify.