Skip to content

Last updated

Changelog

Spotify API

HealthyRead-only

Structured data from spotify.com. Generated from spotify.com.

Base URL
https://api.maviapi.com/v1/sites/spotify
3
Endpoints
1 h ago
Last verified
100%
Uptime / 7d
2039ms
p50 latency
GET/search_artists5 credits per call

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.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

artist name or part of it

integerOptionalin query

maximum number of artists to return (1-50)

querystringe.g."Tarkan"
countintegere.g.10
artistsobject[]5 fields
artist_idstringe.g."2yMN0IP20GOaN6q0p0zL5k"
namestringe.g."Tarkan"
verifiedbooleane.g.true
imagestringe.g."https://i.scdn.co/image/ab6761610000e5eb9c5050e9882dd7513b83d250"
urlstringe.g."https://open.spotify.com/artist/2yMN0IP20GOaN6q0p0zL5k"
Try itLive
GET
https://api.maviapi.com/v1/sites/spotify/search_artists?query=Tarkan&limit=10
Request
curl "https://api.maviapi.com/v1/sites/spotify/search_artists?query=Tarkan&limit=10" \
-H "Authorization: Bearer $MAVI_KEY"
Example316 B
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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_artists

    Spotify 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
    NameType / locationRequiredDescription
    querystring / queryNoartist name or part of it
    limitinteger / queryNomaximum number of artists to return (1-50)
    Response fields
    FieldTypeDescription
    querystring
    countinteger
    artistsobject[]
    artists[].artist_idstring
    artists[].namestring
    artists[].verifiedboolean
    artists[].imagestring
    artists[].urlstring
  • Artist Concerts 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 (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
    NameType / locationRequiredDescription
    artiststring / queryNoartist name (best Spotify match is used), or Spotify artist ID, URI (spotify:artist:...) or open.spotify.com/artist/... URL
    Response fields
    FieldTypeDescription
    artist_idstring
    artist_namestring
    countinteger
    concertsobject[]
    concerts[].concert_idstring
    concerts[].titlestring
    concerts[].startstring
    concerts[].citystring
    concerts[].artistsstring[]
    concerts[].urlstring
  • Concert Details 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, 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
    NameType / locationRequiredDescription
    concertstring / queryNoSpotify concert ID, URI (spotify:concert:...) or open.spotify.com/concert/... URL, as returned by artist_concerts
    Response fields
    FieldTypeDescription
    concert_idstring
    titlestring
    startstring
    doors_opennull
    festivalboolean
    statusstring
    age_restrictionnull
    venueobject
    venue.namestring
    venue.citystring
    venue.regionstring
    venue.countrystring
    venue.metro_areastring
    venue.latitudenumber
    venue.longitudenumber
    venue.venue_idstring
    artistsobject[]
    artists[].artist_idstring
    artists[].namestring
    artists[].upcoming_concertsinteger
    genresstring[]
    offersobject[]
    offers[].providerstring
    offers[].availabilitystring
    offers[].sale_typestring
    offers[].first_partyboolean
    offers[].sale_startstring
    offers[].sale_endstring
    offers[].min_pricenull
    offers[].max_pricenull
    offers[].currencynull
    offers[].urlstring
    urlstring

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.

ListCSV columns
Search ArtistsGET /search_artistsartist_id, name, verified, image, url
Artist ConcertsGET /artist_concertsconcert_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
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.

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