Blog / API guides

Spotify API: Official Web API vs Public Music Data

Spotify's official API is the Spotify Web API: a REST API you call with an OAuth access token from an app you register on Spotify for Developers. It's the right choice when your users sign in with Spotify and you act on their library or playback. For public catalogue data, such as artists, top tracks, playlists and charts, it has become harder to use: since late 2024 new apps can't call several endpoints, and since 2026 development-mode apps have tight user and quota limits. This post compares the official route with 18 public-data endpoints, most of them 1 credit a call.

How does the official Spotify Web API work?

The Spotify Web API is a REST API over Spotify's catalogue and users' accounts. You register an app on Spotify for Developers to get a client ID and secret, then request an OAuth 2.0 access token and send it with each call. Catalogue-only calls can use the client credentials flow; anything about a user, such as their saved tracks, playlists or what's playing, needs that user to sign in and grant scopes.

That design suits apps where people log in with Spotify: a playlist tool, a DJ app, a listening-stats site. It's free to call within Spotify's rate limits, which apply over a rolling 30-second window and answer with a 429 and Retry-After when exceeded (Spotify for Developers: rate limits, 2026). It comes with Spotify's Developer Terms, which govern what you may store and show.

If your product needs a user's own Spotify data or needs to act on their account, the Web API is the only legitimate route, and the rest of this post doesn't change that.

What changed for new Spotify apps since 2024?

Access for new apps has narrowed in three steps. On 27 November 2024, Spotify announced that new Web API use cases could no longer use Related Artists, Recommendations, Audio Features, Audio Analysis, Get Featured Playlists, Get Category's Playlists, 30-second preview URLs in multi-get responses, or algorithmic and Spotify-owned editorial playlists (Spotify for Developers, 2024). Apps that already had extended access kept it.

From 15 May 2025, extended access has been reserved for established, scalable use cases, and Spotify accepts applications only from organisations, not individuals (Spotify for Developers, 2025). Its quota modes page lists requirements including a legally registered business and at least 250,000 monthly active users (Quota modes, 2026).

Development mode tightened in February 2026: the app owner needs Spotify Premium, and each app is limited to five authorised users (Spotify for Developers, 2026). A July 2026 update raised the number of development-mode client IDs per account and moved quota to the account level (Web API quota updates, 2026). Check Spotify's changelog before you plan around any of this: the rules have changed several times in two years.

What do the public-data endpoints cover?

The catalogue's Spotify API has 18 endpoints for public catalogue data, all GET, with no OAuth app or user sign-in. Eleven cost 1 credit per successful call. Seven are priced by how much they return: playlist-tracks and charts cost 1 credit per 100 tracks (up to 10), album-tracks 1 per 50 tracks and show-episodes 1 per 50 episodes (up to 20), album and artist 1, or 2 when a second lookup is needed, and get-many 1 per id found, or 2 for an id that needs a second lookup (up to 50 ids, at most 100 credits). Failed calls cost nothing and return X-Credits-Used: 0. You authenticate with one API key in the X-API-Key header, the same key that works for all 707 websites in the catalogue.

Group Endpoints Required parameter
Search search, search-suggestions q
Artists artist, artist-top-tracks, artist-discography, artist-related id
Albums and tracks album, album-tracks, track, track-colors, get-many id (image_uri for track-colors; get-many takes optional ids[] and type)
Playlists playlist, playlist-tracks id
Podcasts show, show-episodes, episode id
Charts charts key
Discovery discovery-audio-mix-seed track_id

List endpoints take paging parameters: search and artist-discography take limit and offset; album-tracks, playlist-tracks, show-episodes and charts take limit and an all flag. A search request looks like this:

curl "https://api.perceptlayer.com/v1/spotify/search?q=daft+punk&limit=5" \
  -H "X-API-Key: $API_KEY"

We didn't run this request, and we haven't recorded a response from the Spotify endpoints yet, so this post doesn't show one. Run it in the playground on the Spotify API page to see what each response contains, and try charts there too, since its accepted key values aren't listed in the reference.

What these endpoints don't do is anything on a user's behalf. There's no login, no library, no playback and no playlist editing. Data is collected from publicly available sources and returned as found at the time of the call.

How do the two routes compare?

The two routes overlap on public catalogue reads and nowhere else. The official API owns everything involving a user, from libraries to playback, and costs nothing within its limits. The public-data endpoints are simpler for read-only catalogue work, because there's no app review, token flow or user cap, and they cover some data that's closed to new Spotify apps.

Spotify Web API Public-data endpoints
Auth OAuth 2.0 token from a registered app One API key (X-API-Key)
User data and actions Yes, with the user's consent and scopes No
Catalogue reads Yes, within your app's access level Search, artists, albums, tracks, playlists, podcasts, charts
Related artists for a new app Not available since November 2024 artist-related endpoint
Development limits Premium owner, five authorised users None per user; per-account request rate
Rate limit Rolling 30-second window 1 request a second free, at least 5 a second paid
Cost Free within Spotify's limits 1 credit per successful call for most endpoints, more for large playlists, charts and batches; failed calls cost 0
Terms Spotify Developer Terms Perceptlayer terms; data as found

What does a tracking job cost?

Cost follows calls. A label tracking the top tracks of 500 artists weekly makes 500 × 4 = 2,000 calls a month, so 2,000 credits. Adding one daily charts call is 30 to 300 more, since charts costs 1 credit per 100 tracks returned. The Starter pack's 10,000 credits cover about four months of that (4 × 2,300 = 9,200 at most); the 100 free credits you get once, after verifying an email address, are enough to test the calls. Pulling every track of 1,000 playlists once is at least 1,000 credits: playlist-tracks costs 1 credit per 100 tracks returned, so a playlist with more than 100 tracks costs more than 1 credit. See pricing for what credits cost.

Which should you use?

Use the official API when the work involves a Spotify user, and consider the public-data endpoints when it's read-only analysis of the public catalogue. If you're unsure, ask whether anyone signs in: if they do, it's the Web API; if the job runs unattended over public artists, playlists and charts, it's the endpoints. The verdicts per use case:

  • An app where users sign in with Spotify (playlist builders, stats, players): the Web API. Nothing else can act on a user's account.
  • A personal project for you and a few friends: the Web API in development mode, if you have Premium and need five users or fewer.
  • Music market research (which artists' top tracks change, chart movement, playlist contents over time): the public-data endpoints. No OAuth app, no user cap, and the same key covers other sources such as YouTube and app stores.
  • An AI agent that answers music questions: the public-data endpoints through MCP. The agent finds them with search_endpoints and runs them with call_endpoint; What Is an MCP Server? shows the full exchange.
  • A product built on audio features or recommendations: neither, unless your app already has extended access. Those endpoints are closed to new Spotify apps, and the catalogue doesn't offer audio features either.

To see the data before deciding, run search and then artist-top-tracks with an id from the result in the playground on the Spotify API page, or get a free API key. Other music and media sources are under Apps and media.

APIs in this post

Frequently asked questions

Is the Spotify API free?

The Spotify Web API costs nothing to call, but it needs a registered app, OAuth tokens and, in development mode since February 2026, a Premium account owner, with at most five authorised users per app. The public-data endpoints need no app and most cost 1 credit per successful call (the ones that return long track lists cost more, by how much they return), with 100 free credits after verifying an email address.

Not through a new Spotify app: Related Artists is among the endpoints Spotify closed to new Web API use cases on 27 November 2024, and only apps that already had extended access kept it. The catalogue includes GET /v1/spotify/artist-related, which takes an artist id and costs 1 credit per successful call; run it in the playground on the Spotify API page to see what it returns.

How do I get a Spotify API key?

For the official API you create an app in the Spotify for Developers dashboard to get a client ID and secret, then exchange them for an OAuth access token. For the public-data endpoints you create a free account at /signup and send the key, which starts with sk_live_, in the X-API-Key header. The authentication docs cover the details.

Can I get a user's playlists or listening history?

Only through the official Web API, with that user's sign-in and the right scopes. The public-data endpoints read public catalogue items, such as a public playlist by its id, and have no access to anyone's account, listening history or private playlists.

What happens if I send too many requests?

You get a 429 with a Retry-After header giving the seconds to wait, from either route. On Perceptlayer the limit is per account, 1 request a second on a free account, and a 429 costs nothing. The rate limits docs list the rate for each pack.

  1. Spotify Scraper or API: What You Get

    A Spotify scraper vs 18 Spotify endpoints: playlist-tracks at 1–10 credits, charts at 1–10, top tracks at 1, and how to budget a playlist and chart tracker.

  2. Genius API: Songs, Artists and Charts as JSON

    Get Genius song metadata as JSON: release date, album, artist IDs, stats.pageviews and Spotify and Apple Music IDs from one song call, 1 credit each.

  3. SoundCloud API: Tracks and Playlists as JSON

    Search SoundCloud tracks as JSON with genre, tag_list, playback_count and likes_count per track. The recorded "night drive" search reported 63,047 results.

Start with 100 free credits

No password to set. We email you a sign-in link, and your key works on every API.

No credit card. 100 free credits on signup.