Charts · GET
Top artists chart
GET /top_artists
About
Top artists chart is a GET endpoint in the Charts group of the Spotify Data API. It takes 2 parameters: period and country (optional). No recorded sample exists for it; press Run to fetch a live response.
Parameters 2
- period Optional
- In
- query
- Default
- daily
- country Optional
- In
- query
- Default
- global
Request
Against https://spotify-proxy.checkleaked.cc, with the same example values the Run button sends.
| curl -X GET \ |
| "https://spotify-proxy.checkleaked.cc/top_artists?period=daily&country=global" \ |
| -H "x-api-key: $SPOTIFY_API_KEY" |
Sample response
Live only
This endpoint has no recorded sample. Press Run to fetch a real response.
Errors
- 400
- No parameter on this endpoint is required, so a 400 means one that was sent carries a value it does not accept — check the allowed values in the table above.
- 401 / 403
- The key is missing, wrong, or on a plan that does not include this endpoint. On RapidAPI the header is X-RapidAPI-Key; on the Direct Portal it is an Authorization: Bearer token; on Apify the actor supplies it.
- 429
- Rate limited. The demo on this site allows 100 requests per 15 minutes and 500 per day per visitor, inside a budget shared by every visitor. With a key it is 5 requests per second on every RapidAPI plan and 10 per second on the Direct Portal.
- 5xx
- Spotify itself failed or timed out. These are transient; retry once with a short backoff rather than immediately.
Related endpoints
The other 5 operations in the Charts group.