Skip to main content
Scrape Spotify artists, albums, tracks, playlists and search

Authorizations

x-scrapeunblocker-key
string
header
required

Your ScrapeUnblocker API key. Apply on every request.

Query Parameters

type
string | null

What to fetch: artist, album, track, playlist, search. Optional when id is a Spotify URL or URI (they carry the type) or when only query is given (a search).

id
string | null

The artist, album, track or playlist: an open.spotify.com URL (https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02), a Spotify URI (spotify:artist:06HL4z0CvFAxyc27GXpf02) or a bare 22-character id (then set type).

query
string | null

Search text for type=search, e.g. 'daft punk'.

search_type
string
default:tracks

What a search returns: tracks, artists, albums, playlists.

offset
integer
default:0

0-based position to start from in the list being paged: album tracks, playlist tracks, search results, or the full discography with discography=true. Use the nextOffset of a previous response to continue. Spotify serves search results up to position 1000.

max_results
integer | null

How many list items to collect. Album tracks: 1-1000 (default 100, 100 per page). Playlist tracks: 1-2000 (default 100, 100 per page). Search: 1-1000 (default 20, 50 per page). Artist releases with discography=true: 1-1000 (default 50, 50 per page). Each page fetched is one billed unit.

discography
boolean
default:false

type=artist only: also return the artist's full release list (albums, singles, compilations, newest first) in releases, paged by offset / max_results.

proxy_country
string | null

Country the request is sent from (ISO-2, e.g. 'DE', 'GB'). Spotify's market follows it, which can change playable and search order; play counts are the same everywhere. Leave blank for any.

Response

JSON with type and the entity (artist, album, track or playlist) plus its lists, or results for a search.