SocialCrawl

Video and audio

Spotify data API

Read artists, tracks, albums, playlists and podcasts from Spotify with one key and one response shape.

Read public Spotify catalog data: artists, tracks, albums, playlists, podcast shows and their episodes. Every response uses the unified SocialCrawl response format, with the object under data.

Warning

Spotify search returns playlists, and only playlists. Tracks, artists, albums and podcasts do not come back as results today, whatever the query. To look up a known song, record, artist or show, call its own endpoint with an id or url instead. Search will not find it for you.

What people build with Spotify

  • Catalog enrichers: Resolve artist and track URLs into structured cards. Fill internal catalogs with followers, play counts, and artwork.
  • Podcast monitors: Poll podcast plus podcast/episodes for a fixed set of shows. Alert when new episodes publish.
  • Backend product jobs: Wire artist to track to album, or search playlists by keyword, into pipelines. Same key as the rest of SocialCrawl.
Spotify API overview

Your first call

1. Fetch an artist

Six of the seven endpoints take either an id or a url, and you must send one of them. Sending neither is a 400 before billing. The id is the segment after the object type in any Spotify link:

Example
https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02
                                ^^^^^^^^^^^^^^^^^^^^^^
cURL
curl "https://www.socialcrawl.dev/v1/spotify/artist?url=https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02" \
  -H "x-api-key: sc_your_key_here"
TypeScript
const url = new URL("https://www.socialcrawl.dev/v1/spotify/artist");
url.searchParams.set("url", "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02");
const res = await fetch(url, { headers: { "x-api-key": process.env.SOCIALCRAWL_API_KEY! } });
const { data } = await res.json();
console.log(data.author.display_name, data.author.followers, data.author.ext.monthly_listeners);
Python
import os
import requests

res = requests.get(
    "https://www.socialcrawl.dev/v1/spotify/artist",
    params={"url": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"},
    headers={"x-api-key": os.environ["SOCIALCRAWL_API_KEY"]},
)
author = res.json()["data"]["author"]
print(author["display_name"], author["followers"], author["ext"]["monthly_listeners"])

Measured on 22/11/2026: this call returned the artist with their follower count and monthly listeners for 1 credit. The same call works with id=06HL4z0CvFAxyc27GXpf02 in place of url.

2. Walk a podcast's back catalogue

podcast/episodes is the only paginated endpoint here. Pass the previous response's pagination.next_cursor back as cursor to get the next page, or send max_items to collect more episodes in one call.

cURL
curl "https://www.socialcrawl.dev/v1/spotify/podcast/episodes?id=4rOoJ6Egrf8K2IrywzwOMk" \
  -H "x-api-key: sc_your_key_here"

3. Read computed fields

When an endpoint supports a computed field and the required source inputs are present, the unified response includes that optional field. Depending on the endpoint, optional fields can include engagement_rate, language, content_category, and estimated_reach. See Computed fields for formulas, clamping rules, and null semantics. Where an endpoint supports them, list rows also carry judged labels (computed.labels, computed.relevance) by default at no extra credits; see Labels.

What it covers

What you wantCall
An artist's followers and monthly listenersGET /v1/spotify/artist
One song with its album, length and play countGET /v1/spotify/track
A whole record and its track listGET /v1/spotify/album
A chart or curated playlist with its tracksGET /v1/spotify/playlist
Playlists that match a keywordGET /v1/spotify/search
A podcast show's name, description and coverGET /v1/spotify/podcast
Every episode a podcast has publishedGET /v1/spotify/podcast/episodes

What it does not cover

  • A person's listening history, saved songs or private playlists. They need the listener's own login, and we return public catalog data only.
  • Audio files. Podcast episodes carry a short preview audio link, not the full episode.
  • Search over tracks, artists, albums or podcasts. Search returns playlists only.
  • A playlist's cover, follower count and total length. The playlist endpoint does not return them.

Music

Pick by scope: track for one song, album for the record it sits on, playlist for a chart or a curated list, and artist for the performer.

artist returns the id, name, follower count, monthly listeners, genres and related artists. The track endpoint returns the song's artists, album and cover art, duration, play count and sharing links. The album endpoint returns the release date, copyright and track list.

A playlist's tracks are in post.ext.tracks, each with its id, title, artists as a list, length in seconds, explicit flag and link. A long playlist returns its first 100 tracks. The owner is shown as Spotify labels it, so an editorial playlist names Spotify.

Podcasts

Spotify calls podcasts shows, and the URL says /show/ rather than /podcast/.

podcast returns the show itself: id, name, description and cover art. podcast/episodes returns what the show has published, each episode with a title, release date, duration, cover art and a short preview audio URL.

cURL
# 1. The show
curl "https://www.socialcrawl.dev/v1/spotify/podcast?url=https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk" \
  -H "x-api-key: sc_your_key_here"

# 2. Its episodes, paging with the cursor from the previous response
curl "https://www.socialcrawl.dev/v1/spotify/podcast/episodes?id=4rOoJ6Egrf8K2IrywzwOMk&cursor=CURSOR_FROM_STEP_1" \
  -H "x-api-key: sc_your_key_here"

Use since and until to keep only episodes inside a date window. The list is not in date order, so the walk does not stop at the date. Keep following next_cursor, and note that a page costs the same even when the dates filter every row out of it.

GET /v1/spotify/search takes a query and returns matching playlists, and only playlists. It is the one endpoint that does not need an id.

Questions people ask

Can I get a person's Spotify listening history or saved songs?

No. Listening history, saved songs and private playlists belong to the listener's own account, and these endpoints return public catalog data only. What you can read is a public artist, track, album, playlist or podcast. For a listener's own data, the listener has to share their Spotify data export with you.

All endpoints

7 endpoints available.

EndpointPathCredit Tier
Get a Spotify album/v1/spotify/albumstandard (1cr)
Get a Spotify artist/v1/spotify/artiststandard (1cr)
Get a Spotify playlist and its tracks/v1/spotify/playliststandard (1cr)
Get a Spotify podcast/v1/spotify/podcaststandard (1cr)
List a Spotify podcast's episodes/v1/spotify/podcast/episodesstandard (1cr)
Search Spotify/v1/spotify/searchstandard (1cr)
Get a Spotify track/v1/spotify/trackstandard (1cr)

How far back and how deep

Each list returns one page at a time. Send cursor for the next page, or max_items or max_pages to collect several pages in one call. A page size appears only where it has been verified. How paging works

PathRows per pageDate windowOne call collects
/v1/spotify/podcast/episodesabout 50since and until, applied to each page fetchedup to 5,000 rows or 50 pages

How long a call takes

Measured on production calls that were not served from the cache, 14/10/2026 to 21/10/2026. A cached call answers faster. Set your client timeout to the value in Timeout to set, so a slow call is not cut off and sent again.

PathTypical (median)95% finish withinTimeout to set
/v1/spotify/artist8.9 s14 s30 s
/v1/spotify/podcast7.4 s10 s29 s
/v1/spotify/track8.0 s13 s27 s

Platform notes

  • artist, track, album, playlist, podcast and podcast/episodes each accept id or url. Send exactly one. search takes query instead.
  • Only podcast/episodes paginates. The other endpoints return a single object or a fixed set.
  • All endpoints use GET with query parameters.

Next steps