---
title: "Spotify API: Official Web API vs Public Music Data"
description: "The Spotify Web API needs an OAuth app and limits new apps; 18 public-data endpoints cover artists, top tracks, playlists and charts, most at 1 credit a call."
url: https://perceptlayer.com/blog/spotify-api-public-music-data
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Spotify API: Official Web API vs Public Music Data

22 Oct 2026 Updated 12 Nov 2026 Perceptlayer 8 min read

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.

## Key takeaways

-   The Spotify Web API uses OAuth 2.0 access tokens from a registered app. It's the only route for user actions such as reading a user's library, editing playlists or controlling playback.
-   Since 27 November 2024, new apps can't use Related Artists, Recommendations, Audio Features, Audio Analysis and some playlist endpoints. Extended access has been limited to established organisations since May 2025.
-   Development-mode apps now need a Premium account owner and are capped at five authorised users, per Spotify's February 2026 changes.
-   The catalogue's Spotify API has 18 `GET` endpoints, including `/v1/spotify/search`, `/v1/spotify/artist-top-tracks`, `/v1/spotify/playlist-tracks` and `/v1/spotify/charts`, with no OAuth: 11 cost 1 credit per successful call, and 7 are priced by how much they return, such as `playlist-tracks` and `charts` at 1 credit per 100 tracks.

## 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](https://developer.spotify.com/documentation/web-api/concepts/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](https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api), 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](https://developer.spotify.com/blog/2025-04-15-updating-the-criteria-for-web-api-extended-access), 2025). Its quota modes page lists requirements including a legally registered business and at least 250,000 monthly active users ( [Quota modes](https://developer.spotify.com/documentation/web-api/concepts/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](https://developer.spotify.com/blog/2026-02-06-update-on-developer-access-and-platform-security), 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](https://developer.spotify.com/blog/2026-07-23-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:

```bash
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](https://perceptlayer.com/apis/spotify) 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](https://perceptlayer.com/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?](https://perceptlayer.com/blog/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](https://perceptlayer.com/apis/spotify), or [get a free API key](https://perceptlayer.com/signup). Other music and media sources are under [Apps and media](https://perceptlayer.com/verticals/apps).

## APIs in this post

-   [Spotify **1 credit per call** · 18 endpoints](https://perceptlayer.com/apis/spotify)

## 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.

### Can I still get related artists from Spotify?

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](https://perceptlayer.com/signup) and send the key, which starts with `sk_live_`, in the `X-API-Key` header. The [authentication docs](https://docs.perceptlayer.com/authentication) 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](https://docs.perceptlayer.com/rate-limits) list the rate for each pack.

spotify music data web api oauth charts

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 11 Nov 2026 Perceptlayer 7 min read
    
    ## [Spotify Scraper or API: What You Get](https://perceptlayer.com/blog/spotify-scraper-vs-api)
    
    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.  [API guides](https://perceptlayer.com/blog/category/api-guides) 24 Nov 2026 Perceptlayer 8 min read
    
    ## [Genius API: Songs, Artists and Charts as JSON](https://perceptlayer.com/blog/genius-api-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.  [API guides](https://perceptlayer.com/blog/category/api-guides) 23 Nov 2026 Perceptlayer 8 min read
    
    ## [SoundCloud API: Tracks and Playlists as JSON](https://perceptlayer.com/blog/soundcloud-api-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.
