Spotify Artist API. Send an artist link.
Monthly listeners, top cities and releases. We handle the proxies, blocks and platform changes.
Spotify Artist API at a glance
Returns a public Spotify artist from its link, URI or ID, with exact followers, monthly listeners, world rank and the top cities its listeners are in. It also has the bio, pictures, verified badge, top tracks with their plays, every release ID in its discography, related artists, upcoming concerts, playlists and the links on its profile.
GET /v1/spotify/artist
- 1 credit per request, $0.75–$1.97 per 1,000 requests
- 19 typed fields null when unknown
handleis all it needs, e.g.https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt- 100 credits free when you sign up, no card, so you can build before you spend
Send one request. Get 19 fields back.
Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.
$ npm install socialtaphandle = https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qtconst params = new URLSearchParams({
handle: "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt",
});
const res = await fetch(`https://socialtap.dev/v1/spotify/artist?${params}`, {
headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);import os
import requests
res = requests.get(
"https://socialtap.dev/v1/spotify/artist",
params={"handle": "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt"},
headers={"x-api-key": os.environ["SOCIALTAP_API_KEY"]},
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
data, meta = body["data"], body["meta"]
print(data, meta["credits_charged"])require "json"
require "net/http"
uri = URI("https://socialtap.dev/v1/spotify/artist")
uri.query = URI.encode_www_form('handle' => 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt')
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = ENV.fetch("SOCIALTAP_API_KEY")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
body = JSON.parse(res.body)
raise "#{body["error"]["code"]}: #{body["error"]["message"]}" unless res.is_a?(Net::HTTPSuccess)
pp body["data"]
puts body["meta"]["credits_charged"]<?php
$query = http_build_query([
'handle' => 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt',
]);
$ch = curl_init('https://socialtap.dev/v1/spotify/artist?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: ' . getenv('SOCIALTAP_API_KEY')],
]);
$body = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);
echo $body['meta']['credits_charged'], PHP_EOL;package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os"
)
func main() {
q := url.Values{}
q.Set("handle", "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt")
req, err := http.NewRequest("GET", "https://socialtap.dev/v1/spotify/artist?"+q.Encode(), nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("x-api-key", os.Getenv("SOCIALTAP_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var body struct {
Data json.RawMessage `json:"data"`
Meta map[string]any `json:"meta"`
Error *struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
log.Fatal(err)
}
if body.Error != nil {
log.Fatalf("%s: %s", body.Error.Code, body.Error.Message)
}
fmt.Println(string(body.Data), body.Meta["credits_charged"])
}curl -G 'https://socialtap.dev/v1/spotify/artist' \
--data-urlencode 'handle=https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt' \
-H "x-api-key: $SOCIALTAP_API_KEY"{
"data": {
"approximate_fields": [
"platform_specific.spotify.latest_release.released_at",
"platform_specific.spotify.popular_releases[].released_at",
"platform_specific.spotify.albums.items[].released_at"
],
"avatar_url": "https://i.scdn.co/image/ab6761610000e5eb854861dff9a24a1ed3dfdc7d",
"banner_url": "https://image-cdn-fa.spotifycdn.com/image/ab6761860000eab11c3a6e7e0cc5ec4e130bbdef",
"bio": "It’s one of contemporary music’s most unlikely tales. At the age of 21, Rick Astley emerged from the shadows of the Stock, Aitken and Waterman production house as their former tea boy became one of the biggest stars on the planet. His era-defining classic ‘Never Gonna Give You Up…",
"category": null,
"country_code": null,
"created_at": null,
"display_name": "Rick Astley",
"external_links": [
{
"title": "FACEBOOK",
"url": "https://facebook.com/RickAstley"
},
{
"title": "INSTAGRAM",
"url": "https://instagram.com/officialrickastley"
},
{
"title": "TIKTOK",
"url": "https://tiktok.com/@rickastleyofficial"
}
],
"id": "0gxyHStUsqpMadRV0Di1Qt",
"is_private": null,
"is_verified": true,
"location": null,
"metrics": {
"follower_count": 1631120,
"following_count": null,
"post_count": null,
"total_like_count": null,
"total_view_count": null
},
"platform": "spotify",
"platform_specific": {
"spotify": {
"active_decades": [
2000,
1990,
1980
],
"ai_persona": null,
"albums": {
"ids": [
"2WlZ6L68eq4Wy7QUSI2ffK",
"5vIhE61ppC6YyGaM5S4yJD"
],
"items": [
{
"artists": [],
"cover_url": "https://i.scdn.co/image/ab67616d0000b27302f0b93ecab5bad9a8224b40",
"id": "2WlZ6L68eq4Wy7QUSI2ffK",
"label": "BMG Rights Management GmbH",
"release_date_precision": "day",
"released_at": "2026-06-15T00:00:00Z",
"title": "50 (10th Anniversary Deluxe Edition)",
"track_count": 15,
"type": "album",
"url": "https://open.spotify.com/album/2WlZ6L68eq4Wy7QUSI2ffK"
}
],
"total_count": 12
},
"appears_on": {
"ids": [
"4FLE3sQpCWW9zwB1HE7erQ",
"2dEe2RBqwaeKWdmZ5FBlL6"
],
"items": [
{
"artists": [
{
"avatar_url": null,
"display_name": "Various Artists",
"id": "0LyfQWJT6nXafLPZqxe9Of",
"is_verified": null,
"url": "https://open.spotify.com/artist/0LyfQWJT6nXafLPZqxe9Of",
"username": null
}
],
"cover_url": "https://i.scdn.co/image/ab67616d0000b273068ba75bb02a2be71316631b",
"id": "2dEe2RBqwaeKWdmZ5FBlL6",
"label": null,
"release_date_precision": "year",
"released_at": "2024-01-01T00:00:00Z",
"title": "Songs for Mum",
"track_count": null,
"type": "compilation",
"url": "https://open.spotify.com/album/2dEe2RBqwaeKWdmZ5FBlL6"
}
],
"total_count": 20
},
"biography_type": "autobiography",
"compilations": {
"ids": [
"6C55u1I4oqut6X97zIh8m4",
"6CWdaSQN5rsdDkOrhFcZ0E"
],
"items": [
{
"artists": [],
"cover_url": "https://i.scdn.co/image/ab67616d0000b273ad292ed19701d9f5c8cf71b6",
"id": "6CWdaSQN5rsdDkOrhFcZ0E",
"label": "BMG Rights Management (UK) Ltd.",
"release_date_precision": "day",
"released_at": "2019-12-29T00:00:00Z",
"title": "The Best of Me",
"track_count": 31,
"type": "compilation",
"url": "https://open.spotify.com/album/6CWdaSQN5rsdDkOrhFcZ0E"
}
],
"total_count": 3
},
"concert_count": 5,
"concerts": [
{
"city": "London",
"id": "6Uk6FeW4q5sOpJIEdGs4iY",
"is_festival": false,
"starts_at": "2026-12-09T18:45:00Z",
"title": "Rick Astley",
"url": "https://open.spotify.com/concert/6Uk6FeW4q5sOpJIEdGs4iY",
"venue": "Royal Albert Hall"
}
],
"discovered_on": [
{
"description": null,
"id": "0A9tWS2qryvdrFJBObAque",
"image_url": "https://mosaic.scdn.co/640/ab67616d00001e023e030a7e606959674643d274ab67616d00001e02c7d7cdad0c2ffa5620129ee8ab67616d00001e02c8e97cafeb2acb85b21a777eab67616d00001e02e8dd4db47e7177c63b0b7d53",
"owner_name": "fld5wrzio6qv6nus8yln7v71o",
"title": "Mix 80's , 90's y 2000's en inglés",
"url": "https://open.spotify.com/playlist/0A9tWS2qryvdrFJBObAque"
}
],
"discovered_on_count": 100,
"featured_in": [
{
"description": "This is Rick Astley. The essential tracks, all in one playlist.",
"id": "37i9dQZF1DZ06evO05tE88",
"image_url": "https://pickasso.spotifycdn.com/image/ab67c0de0000deef/dt/v1/img/thisisv3/0gxyHStUsqpMadRV0Di1Qt/en",
"owner_name": "Spotify",
"title": "This Is Rick Astley",
"url": "https://open.spotify.com/playlist/37i9dQZF1DZ06evO05tE88"
}
],
"featured_in_count": 8,
"gallery_urls": [
"https://i.scdn.co/image/ab6761670000ecd4aa3dfc611956e0cefd014e13"
],
"is_registered": true,
"latest_release": {
"artists": [],
"cover_url": "https://i.scdn.co/image/ab67616d0000b27302f0b93ecab5bad9a8224b40",
"id": "2WlZ6L68eq4Wy7QUSI2ffK",
"label": "BMG Rights Management GmbH",
"release_date_precision": "day",
"released_at": "2026-06-15T00:00:00Z",
"title": "50 (10th Anniversary Deluxe Edition)",
"track_count": 15,
"type": "album",
"url": "https://open.spotify.com/album/2WlZ6L68eq4Wy7QUSI2ffK"
},
"monthly_listener_count": 8585233,
"music_video_count": 45,
"music_videos": [
{
"album_id": "1BaML8N5XYn1jgopz6Em2V",
"artist_name": "Rick Astley",
"artists": [
{
"avatar_url": null,
"display_name": "Rick Astley",
"id": "0gxyHStUsqpMadRV0Di1Qt",
"is_verified": null,
"url": "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt",
"username": null
}
],
"cover_url": "https://i.scdn.co/image/ab6742d3000053b7ca75989d214a6838ec755e38",
"disc_number": null,
"duration_ms": null,
"id": "7BTWdRIS8yVo1urCff7X2G",
"is_explicit": false,
"play_count": null,
"title": "Never Gonna Give You Up - Pianoforte",
"url": "https://open.spotify.com/track/7BTWdRIS8yVo1urCff7X2G"
}
],
"pinned_item": {
"comment": "Including three new live performances!",
"image_url": "https://image-cdn-ak.spotifycdn.com/image/ab67616d000075a002f0b93ecab5bad9a8224b40",
"subtitle": "Album",
"title": "50 (10th Anniversary Deluxe Edition)",
"type": "album",
"uri": "spotify:album:2WlZ6L68eq4Wy7QUSI2ffK"
},
"playlist_count": 5,
"playlists": [
{
"description": "In celebration of the 10th anniversary of Rick Astley's album '50', relive the 50 Tour here.",
"id": "2rgXjEciA1zacD1IjVg5nV",
"image_url": "https://image-cdn-fa.spotifycdn.com/image/ab67706c0000d72cb5852cc9d3dc2ce4c05d514f",
"owner_name": "Rick Astley",
"title": "50 Tour Set List",
"url": "https://open.spotify.com/playlist/2rgXjEciA1zacD1IjVg5nV"
}
],
"popular_release_count": 20,
"popular_releases": [
{
"artists": [],
"cover_url": "https://i.scdn.co/image/ab67616d0000b2733a67639779ccabd632e1a80e",
"id": "4C4LvbYS0pxXLW5sGD9EK5",
"label": "BMG Rights Management (UK) Ltd.",
"release_date_precision": "day",
"released_at": "2022-05-20T00:00:00Z",
"title": "Whenever You Need Somebody (Deluxe Edition - 2022 Remaster)",
"track_count": 36,
"type": "album",
"url": "https://open.spotify.com/album/4C4LvbYS0pxXLW5sGD9EK5"
}
],
"popularity": 67,
"related_artist_count": 40,
"related_artists": [
{
"avatar_url": "https://i.scdn.co/image/ab6761610000e5eb373b4aa8b6b5ca058a67307f",
"display_name": "Culture Club",
"id": "6kz53iCdBSqhQCZ21CoLcc",
"is_verified": null,
"url": "https://open.spotify.com/artist/6kz53iCdBSqhQCZ21CoLcc",
"username": null
}
],
"singles": {
"ids": [
"0xOvvd9BQwlhJTnKfgB2zz",
"5U0RVHlHR4ywoPiOxosTgv"
],
"items": [
{
"artists": [],
"cover_url": "https://i.scdn.co/image/ab67616d0000b273fe8a8d62b127592ff546d9c8",
"id": "0xOvvd9BQwlhJTnKfgB2zz",
"label": "BMG Rights Management (UK) Ltd.",
"release_date_precision": "day",
"released_at": "2026-04-10T00:00:00Z",
"title": "Raindrops",
"track_count": 2,
"type": "single",
"url": "https://open.spotify.com/album/0xOvvd9BQwlhJTnKfgB2zz"
}
],
"total_count": 44
},
"top_cities": [
{
"city": "Mexico City",
"country_code": "MX",
"listener_count": 197397,
"region": "CMX"
}
],
"top_tracks": [
{
"album_id": "4C4LvbYS0pxXLW5sGD9EK5",
"artist_name": "Rick Astley",
"artists": [
{
"avatar_url": null,
"display_name": "Rick Astley",
"id": "0gxyHStUsqpMadRV0Di1Qt",
"is_verified": null,
"url": "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt",
"username": null
}
],
"cover_url": "https://i.scdn.co/image/ab67616d00001e023a67639779ccabd632e1a80e",
"disc_number": 1,
"duration_ms": 213560,
"id": "0yNttAVwMr39qyODHNIkrY",
"is_explicit": false,
"play_count": 1200625029,
"title": "Never Gonna Give You Up - 2022 Remaster",
"url": "https://open.spotify.com/track/0yNttAVwMr39qyODHNIkrY"
}
],
"world_rank": null
}
},
"type": "unknown",
"unknown_fields": [],
"url": "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt",
"username": null
},
"meta": {
"request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
"platform": "spotify",
"source": "api",
"is_cached": false,
"credits_charged": 1,
"latency_ms": 639,
"fetched_at": "2026-10-25T12:00:00Z",
"input": {
"kind": "profile",
"id": "0gxyHStUsqpMadRV0Di1Qt",
"url": "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt"
},
"credits_remaining": 9999,
"client_request_id": null,
"warnings": []
}
}import { SocialTap } from "socialtap";
const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY
const res = await client.spotify.artist.get({ handle: "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws Exception {
String query = "handle=" + encode("https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt");
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://socialtap.dev/v1/spotify/artist?" + query))
.header("x-api-key", System.getenv("SOCIALTAP_API_KEY"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
// An error is {"error": {"code", "message", ...}}; success is {data, meta}, meta.credits_charged its price.
if (response.statusCode() >= 400) throw new RuntimeException(response.body());
System.out.println(response.body());
}
static String encode(String value) {
return URLEncoder.encode(value, StandardCharsets.UTF_8);
}
}using System.Text.Json;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("x-api-key", Environment.GetEnvironmentVariable("SOCIALTAP_API_KEY"));
var query = string.Join("&",
"handle=" + Uri.EscapeDataString("https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt"));
var res = await http.GetAsync("https://socialtap.dev/v1/spotify/artist?" + query);
using var body = JsonDocument.Parse(await res.Content.ReadAsStringAsync());
if (!res.IsSuccessStatusCode)
{
var error = body.RootElement.GetProperty("error");
throw new Exception($"{error.GetProperty("code")}: {error.GetProperty("message")}");
}
Console.WriteLine(body.RootElement.GetProperty("data"));
Console.WriteLine(body.RootElement.GetProperty("meta").GetProperty("credits_charged"));// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
use std::env;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let res = reqwest::blocking::Client::new()
.get("https://socialtap.dev/v1/spotify/artist")
.query(&[("handle", "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt")])
.header("x-api-key", env::var("SOCIALTAP_API_KEY")?)
.send()?;
let ok = res.status().is_success();
let body: serde_json::Value = res.json()?;
if !ok {
return Err(format!("{}: {}", body["error"]["code"], body["error"]["message"]).into());
}
println!("{} {}", body["data"], body["meta"]["credits_charged"]);
Ok(())
}200 OK · GET https://socialtap.dev/v1/spotify/artistLong arrays and strings are shortened here. Real responses are complete.Docs One schema on 27 platforms.
The response reference lists every field, its type and when it is null. See the full schema.
Null means unknown
A field Spotify doesn't show is null, never zero or an empty string, so a real zero always means zero.
What it accepts
The artist: its link (open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt, also under /intl-de/ or /embed/, on any tab such as /discography/all or /about, with any share parameters), its URI (spotify:artist:0gxyHStUsqpMadRV0Di1Qt) or its 22-character ID.
Write one parser
Spotify, TikTok, Instagram and 24 more platforms answer in these fields, so the code that reads one reads them all.
platformstring- Platform ID (tiktok, youtube, …).
idstring- Platform-native account ID (string; YouTube UC…, Reddit t2_…).
usernamestring- Handle without the @; null when the account has none.
display_namestring- Display name, channel title or page name; null when empty or not exposed.
urlstring- Canonical profile URL.
typestring- Coarse account kind, as the platform labels it; unknown when it does not (TikTok labels organizations only). New values may be added; treat unknown values as unknown.
biostring- Profile bio, channel description or page about text; null when empty or not exposed.
avatar_urlstring- Profile picture URL (largest available). Platform CDN URLs can expire within hours.
Live data from 33 platforms.
What teams build with the Spotify Artist API.
Track monthly listeners over time
Map where an artist's listeners live
List an artist's releases to fetch each one
Find an artist's socials and upcoming concerts
Build a related-artists graph
Good to know before you build.
- An artist has an ID and no username, so username is null.
- Monthly listeners are in platform_specific.spotify and followers in metrics.follower_count. metrics.following_count, post_count and the totals are null because Spotify doesn't state them.
- type is unknown, and is_private, category, location, country_code and created_at are null: Spotify doesn't state them for an artist.
- Each discography section lists what the artist's page shows, total_count says how many there are, and ids holds every release ID, each one the Spotify Album API takes.
- When Spotify's main API fails, the embed page answers with the name, picture and top tracks only. The rest is null or listed in unknown_fields.
- Share links (spotify.link) aren't accepted: send the artist link they open.
1 credit per request. Failed requests are free.
Buy credits once and spend them on any endpoint, on any platform.
| Source | Price per successful request | Per 1,000 requests |
|---|---|---|
Platform API api | 1 credit | $0.75–$1.97 |
Public page page | 1 credit | $0.75–$1.97 |
- Cache hits are free.
- Credits from packs and top-ups never expire.
- A monthly plan's credits are spent first, and what is left of them ends at each renewal.
- Prices exclude tax: sales tax is added at checkout where it applies.
- Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.
Questions about the Spotify Artist API.
More in the API reference.
Does it return monthly listeners?
How much does the Spotify Artist API cost?
Try it on a link you already have.
Paste it in the playground, or copy the request into your code.
- No credit card
- Failed requests are free
- Works on all 218 endpoints