← Back to marketplace

Spotify

Fast JSON API for Spotify - search, artists with monthly listeners, top cities and play counts, albums, tracks with credits, playlists, podcasts, audiobooks, user profiles, home feed, browse categories, charts and concerts.

media
by Mark842 endpoints100% uptime91ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/album/details
$0.0010/req

Returns an album: name, type, artists, cover, release date, record label, copyrights, number of tracks and discs, its first 50 tracks with play counts and the other popular releases of its artist. Use the /album/tracks endpoint for the rest of the tracks.

Request schema

album_idstringrequired

Spotify album id (e.g. "2noRn2Aes5aoNVsU6iWThc"), album link or URI.

Response schema

album_idstring
namestring
album_typestring
artistsarray
coverstring
release_datestring
labelstring
total_tracksinteger
is_playableboolean
urlstring
copyrightsarray
disc_countinteger
pre_release_end_datenull
tracksarray
next_offsetnull
more_by_artistarray
GET/v1/album/tracks
$0.0010/req

Returns the tracks of an album in order, with their id, name, artists, duration, play count, track and disc number, explicit flag and link. Page through the tracks with "offset".

Request schema

album_idstringrequired

Spotify album id (e.g. "2noRn2Aes5aoNVsU6iWThc"), album link or URI.

offsetinteger

Optional number of tracks to skip (defaults to 0); use "next_offset" of the previous page.

limitinteger

Optional number of tracks, from 1 to 300 (defaults to 50).

Response schema

totalinteger
offsetinteger
next_offsetnull
tracksarray

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/spotify/v1/album/details" \
  -d '{"album_id":"2noRn2Aes5aoNVsU6iWThc"}'

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/spotify/v1/album/details \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Spotify.

GET /v1/album/details$0.0010/req
-
GET /v1/album/tracks$0.0010/req
-
GET /v1/artist/appears-on$0.0010/req
-
GET /v1/artist/concerts$0.0010/req
-
GET /v1/artist/details$0.0010/req
-
GET /v1/artist/discography$0.0010/req
-
GET /v1/artist/playlists$0.0010/req
-
GET /v1/artist/related$0.0010/req
-
GET /v1/audiobook/chapters$0.0010/req
-
GET /v1/audiobook/details$0.0010/req
-
GET /v1/audiobook/recommendations$0.0010/req
-
GET /v1/browse/categories$0.0010/req
-
GET /v1/browse/category$0.0010/req
-
GET /v1/browse/charts$0.0010/req
-
GET /v1/browse/home$0.0010/req
-
GET /v1/browse/section$0.0010/req
-
GET /v1/concert/details$0.0010/req
-
GET /v1/concert/list$0.0010/req
-
GET /v1/concert/locations$0.0010/req
-
GET /v1/concert/venue$0.0010/req
-
GET /v1/episode/details$0.0010/req
-
GET /v1/playlist/details$0.0010/req
-
GET /v1/playlist/tracks$0.0010/req
-
GET /v1/podcast/details$0.0010/req
-
GET /v1/podcast/episodes$0.0010/req
-
GET /v1/podcast/recommendations$0.0010/req
-
GET /v1/search/albums$0.0010/req
-
GET /v1/search/all$0.0010/req
-
GET /v1/search/artists$0.0010/req
-
GET /v1/search/audiobooks$0.0010/req
-
GET /v1/search/episodes$0.0010/req
-
GET /v1/search/genres$0.0010/req
-
GET /v1/search/playlists$0.0010/req
-
GET /v1/search/podcasts$0.0010/req
-
GET /v1/search/suggestions$0.0010/req
-
GET /v1/search/tracks$0.0010/req
-
GET /v1/search/users$0.0010/req
-
GET /v1/track/credits$0.0010/req
-
GET /v1/track/details$0.0010/req
-
GET /v1/track/recommendations$0.0010/req
-
GET /v1/user/details$0.0010/req
-
GET /v1/user/playlists$0.0010/req
-