Entertainment

Spotify API

spotify.com

Spotify - artists, tracks, albums, playlists, and discographies.

Actions
8
Category
Entertainment
Login
Not required
Output
JSON

Call the Spotify API

Submit a task, then poll the job until it settles. This example runs sp_album.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "sp_album",
    "params": {
      "album_id": "6a7nrbUhXwFEJQ1xWCbNnh"
    }
  }'

8 actions on spotify.com

Read

  • Album Details

    sp_albumread1 credit / call

    Returns album details and the full tracklist.

    album_id
    string · required
  • Artist Discography

    sp_artist_discographyread1 credit / call

    Returns an artist's full discography including albums, singles, and compilations.

    artist_id
    string · required
  • Artist Overview

    sp_artistread1 credit / call

    Returns an artist overview with profile, stats, top tracks, discography, and related artists.

    artist_id
    string · required
  • Catalog Search

    sp_searchread1 credit / call

    Returns artists, tracks, albums, and playlists matching a search query.

    query
    string · required
    limit
    integer
    offset
    integer
  • Playlist Details

    sp_playlistread1 credit / call

    Returns playlist details and tracks.

    playlist_id
    string · required
    limit
    integer
    offset
    integer
  • Related Artists

    sp_related_artistsread1 credit / call

    Returns related and similar artists for a given artist.

    artist_id
    string · required
  • Track Details

    sp_trackread1 credit / call

    Returns track details including title, artist, album, duration, and preview.

    track_id
    string · required
  • URL Metadata

    sp_oembedread1 credit / call

    Returns quick metadata for any Spotify URL including title, thumbnail, and artist.

    url
    string · required

Spotify API questions

Is there an API for Spotify?
Spotify does not offer a public data API for this, but Anakin Wire provides 8 maintained endpoints for spotify.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Spotify data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when spotify.com changes its markup, Anakin updates the action.
Do I need a Spotify account?
No. Every Spotify action listed here runs anonymously — no account and no credentials required.
What does the Spotify API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Entertainment APIs

All Entertainment sites