Last updated
ChangelogSpotify API
HealthyRead-onlyStructured data from spotify.com. Generated from spotify.com.
/search_artists5 credits per callSearch Artists
Spotify artists matching a name, best match first: artist ID (to pass to artist_concerts), name, verified flag, image URL and Spotify URL.
Authorization: Bearer <key> on every request.Parameters
artist name or part of it
maximum number of artists to return (1-50)
Response fields
querye.g."Tarkan"counte.g.10artists
artist_ide.g."2yMN0IP20GOaN6q0p0zL5k"namee.g."Tarkan"verifiede.g.trueimagee.g."https://i.scdn.co/image/ab6761610000e5eb9c5050e9882dd7513b83d250"urle.g."https://open.spotify.com/artist/2yMN0IP20GOaN6q0p0zL5k"curl "https://api.maviapi.com/v1/sites/spotify/search_artists?query=Tarkan&limit=10" \-H "Authorization: Bearer $MAVI_KEY"
{
"query": "Tarkan",
"count": 10,
"artists": [
{
"artist_id": "2yMN0IP20GOaN6q0p0zL5k",
"name": "Tarkan",
"verified": true,
"image": "https://i.scdn.co/image/ab6761610000e5eb9c5050e9882dd7513b83d250",
"url": "https://open.spotify.com/artist/2yMN0IP20GOaN6q0p0zL5k"
}
]
}Get all the data, no code
Collect every page of GET /search_artists into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use Spotify API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of Spotify API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=spotify -- npx -y '@maviapi/mcp'Import Spotify API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/spotify/openapi.json - Postman
https://api.maviapi.com/v1/apis/spotify/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the Spotify API
This API is about live music on Spotify: which artists there are and where they play next. /search_artists finds an artist by name, /artist_concerts lists the upcoming concerts Spotify shows for that artist, and /concert_details gives one concert in full, with doors and start time, the venue and its coordinates, the line-up, genres, age restriction and the ticket offers with their sale window and, where given, the price range.
What you can build
- Tour date alerts
- Call /artist_concerts for the artists a fan follows and notify on every concert_id you have not seen.
- A concert map
- Place concerts by the latitude and longitude of the venue and filter them by city or date.
- Ticket sale reminders
- Read sale_start and availability of each offer in /concert_details to remind people before sales open.
Good to know before you call it
- It does not return tracks, albums, playlists or audio, and it cannot control playback.
- An empty concert list means Spotify lists no upcoming concerts for that artist.
- Start times carry the UTC offset of the venue.
Choose a starting endpoint
- Search Artists
GET /search_artistsSpotify artists matching a name, best match first: artist ID (to pass to artist_concerts), name, verified flag, image URL and Spotify URL.
Parameters and response fields for GET /search_artists
Request parameters Name Type / location Required Description query string / query No artist name or part of it limit integer / query No maximum number of artists to return (1-50) Response fields Field Type Description query string count integer artists object[] artists[].artist_id string artists[].name string artists[].verified boolean artists[].image string artists[].url string - Artist Concerts
GET /artist_concertsUpcoming concerts of one artist as listed on Spotify: artist ID and name, and for each concert its concert ID (for concert_details), title, start date/time (ISO 8601 with UTC offset), city, performing artists and Spotify URL. An empty list means Spotify lists no upcoming concerts.
Parameters and response fields for GET /artist_concerts
Request parameters Name Type / location Required Description artist string / query No artist name (best Spotify match is used), or Spotify artist ID, URI (spotify:artist:...) or open.spotify.com/artist/... URL Response fields Field Type Description artist_id string artist_name string count integer concerts object[] concerts[].concert_id string concerts[].title string concerts[].start string concerts[].city string concerts[].artists string[] concerts[].url string - Concert Details
GET /concert_detailsFull details of one concert: title, start and doors-open time, festival flag, status, age restriction, venue (name, city, region, country, metro area, latitude/longitude), performing artists (name, ID), genres, and ticket offers (provider, availability, sale type, sale window, min/max price, ticket URL).
Parameters and response fields for GET /concert_details
Request parameters Name Type / location Required Description concert string / query No Spotify concert ID, URI (spotify:concert:...) or open.spotify.com/concert/... URL, as returned by artist_concerts Response fields Field Type Description concert_id string title string start string doors_open null festival boolean status string age_restriction null venue object venue.name string venue.city string venue.region string venue.country string venue.metro_area string venue.latitude number venue.longitude number venue.venue_id string artists object[] artists[].artist_id string artists[].name string artists[].upcoming_concerts integer genres string[] offers object[] offers[].provider string offers[].availability string offers[].sale_type string offers[].first_party boolean offers[].sale_start string offers[].sale_end string offers[].min_price null offers[].max_price null offers[].currency null offers[].url string url string
Export Spotify data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
Search ArtistsGET /search_artists | artist_id, name, verified, image, url |
Artist ConcertsGET /artist_concerts | concert_id, title, start, city, artists, url |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
Spotify API questions
What you get, what it costs and how to call it.
Is there an official Spotify API?
Yes. Spotify offers the Web API for content metadata, playlists and playback control; it needs a Spotify Premium account and app credentials. Source: Spotify Web API (checked 2026-11-25). This Spotify API is a separate, unofficial one: an independent, hosted API from maviapi for the public data on spotify.com. It is not made, endorsed or supported by Spotify.
What data can I get from the Spotify API?
The Spotify API has 3 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/search_artists: Spotify artists matching a name, best match first: artist ID (to pass to artist_concerts), name, verified flag, image URL and Spotify URL. - GET
/artist_concerts: Upcoming concerts of one artist as listed on Spotify: artist ID and name, and for each concert its concert ID (for concert_details), title, start date/time… - GET
/concert_details: Full details of one concert: title, start and doors-open time, festival flag, status, age restriction, venue (name, city, region, country, metro area…
How much does the Spotify API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Every endpoint of this API costs 5 credits per call. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. Failed calls are free. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the Spotify API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /search_artists:
curl 'https://api.maviapi.com/v1/sites/spotify/search_artists' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get Spotify data as JSON?
Each way to get Spotify data as JSON fits a different need:
- Spotify Web API: Spotify offers the Web API for content metadata, playlists and playback control; it needs a Spotify Premium account and app credentials. Better when you need write access, account data or an agreement with Spotify.
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on spotify.com are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The Spotify API on this page: 3 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when spotify.com changes its layout?
Your code does not change. maviapi keeps the Spotify API working when spotify.com changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my Spotify API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- DJJOhAL API
Catalog metadata for DJJOhAL.Com's Punjabi, Hindi and Haryanvi music: recent releases, categories, albums, singles…
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…
- Google Maps API
Structured data from maps.google.com.