APIs / Apps and media / Spotify
1 credit per call18 endpoints
Spotify API
Get Spotify data as structured JSON with one API key: search, search suggestions, album and album tracks. Free credits every month.
curl "https://api.perceptlayer.com/v1/spotify/get-many" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/spotify/get-many" \
-H "X-API-Key: $API_KEY"Spotify · 18 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters and an example request.
| Endpoint | Required parameters | Cost |
|---|---|---|
GET/v1/spotify/album | id | 1 credit |
GET/v1/spotify/album-tracks | id+2 optional | 1 credit |
GET/v1/spotify/artist | id | 1 credit |
GET/v1/spotify/artist-discography | id+2 optional | 1 credit |
GET/v1/spotify/artist-related | id | 1 credit |
GET/v1/spotify/artist-top-tracks | id | 1 credit |
GET/v1/spotify/charts | key+2 optional | 1 credit |
GET/v1/spotify/discovery-audio-mix-seed | track_id | 1 credit |
GET/v1/spotify/episode | id | 1 credit |
GET/v1/spotify/get-many | None+2 optional | 1 credit |
GET/v1/spotify/playlist | id | 1 credit |
GET/v1/spotify/playlist-tracks | id+2 optional | 1 credit |
GET/v1/spotify/search | q+2 optional | 1 credit |
GET/v1/spotify/search-suggestions | q | 1 credit |
GET/v1/spotify/show | id | 1 credit |
GET/v1/spotify/show-episodes | id+2 optional | 1 credit |
GET/v1/spotify/track | id | 1 credit |
GET/v1/spotify/track-colors | image_uri | 1 credit |
Overview
About the Spotify API
What you can get
The Spotify API returns search, search suggestions, album and album tracks as clean JSON. Each successful call costs one credit, and calls that fail are free.
More apps and media APIs
Use cases
Track artists' top tracks and discographies
Use the Spotify API to track artists' top tracks and discographiesMonitor charts
Use the Spotify API to monitor chartsMap related artists for discovery and recommendations
Use the Spotify API to map related artists for discovery and recommendationsFAQ
Questions
How much does the Spotify API cost?
Each successful call costs one credit. New accounts get free credits every month, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Do I need a separate key for Spotify?
No. One key works for every API in the catalogue.
Try the Spotify API with 1,000 free credits
No credit card. Failed calls are never billed.