Spotify API

Spotify Search API

Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword.

$1.20/1k req, pay per request, no subscription.

What the API returnedtracks[0]
{
"id": "5tHqowP2R2edmL1zBqfWWT",
"name": "Nightbloom",
"uri": "spotify:track:5tHqowP2R2edmL1zBqfWWT",
"image": "https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b",
"albumName": "Nightbloom"
}
Uptime
100.00%
30d · 18 calls
Requests
18
30d · weekly, last 12 wks
Response
3.0s
median · 30d

Pricing

Spotify Search API pricing

You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get Spotify search in one request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 27 of 28 fields. See every field

{
  "found": true,
  "data": {
    "tracks": [
      {
        "id": "5tHqowP2R2edmL1zBqfWWT",
        "name": "Nightbloom",
        "uri": "spotify:track:5tHqowP2R2edmL1zBqfWWT",
        "image": "https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b",
        "albumName": "Nightbloom"
      },
      {
        "id": "1mNq7RW2xUp5T0dQpX8LcE",
        "name": "Low Tide",
        "uri": "spotify:track:6yUqRW1oTQm3hV1pE0dLxS",
        "image": "https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b",
        "albumName": "Nightbloom"
      },
      {
        "id": "8bXp2QN0vW4rY1tE9cLmJZ",
        "name": "Paper Weather",
        "uri": "spotify:track:8bXp2QN0vW4rY1tE9cLmJZ",
        "image": "https://i.scdn.co/image/ab67616d0000b273a1b2c3d4e5f6071829304a5",
        "albumName": "Paper Weather"
      }
    ],
    "albums": [
      {
        "id": "2kBnlkQqoJTGwtHVmnZReO",
        "name": "Nightbloom",
        "year": 2025,
        "uri": "spotify:album:2kBnlkQqoJTGwtHVmnZReO",
        "image": "https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b",
        "artistName": "Juniper Vale",
        "type": "ALBUM"
      },
      {
        "id": "3nEo9kR1pT8wQ2mF0dLxU",
        "name": "Paper Weather",
        "year": 2023,
        "uri": "spotify:album:3nEo9kR1pT8wQ2mF0dLxU",
        "image": "https://i.scdn.co/image/ab67616d0000b273a1b2c3d4e5f6071829304a5",
        "artistName": "Juniper Vale",
        "type": "ALBUM"
      }
    ],
    "artists": [
      {
        "id": "4pQqXVpB2pTwR3pN1nnYUV",
        "name": "Juniper Vale",
        "verified": true,
        "uri": "spotify:artist:4pQqXVpB2pTwR3pN1nnYUV"
      },
      {
        "id": "6wXp3RN9tQ2mF0dLxUqE8b",
        "name": "Marlowe Finch",
        "verified": true,
        "uri": "spotify:artist:6wXp3RN9tQ2mF0dLxUqE8b"
      }
    ],
    "podcasts": [
      {
        "id": "1qDxT9pB2pTwR3pN1nnYUV",
        "name": "The Long Game",
        "publisher": "Harborlight Media",
        "image": "https://i.scdn.co/image/ab6765630000ba8a1a2b3c4d5e6f7081920a1b2",
        "uri": "spotify:show:1qDxT9pB2pTwR3pN1nnYUV"
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • querystring

    juniper vale

    Search term (e.g. "my first million").

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each albumdata.albums[]

Populated whenever the provider has data for the entity.

  • artistNamestring

    Juniper Vale

    Name of the primary artist.

  • idstring

    2kBnlkQqoJTGwtHVmnZReO

  • imagestring

    https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b

    URL of the cover art image.

  • namestring

    Nightbloom

  • typestring

    ALBUM

    Album type, for example ALBUM, SINGLE or COMPILATION.

  • uristring

    spotify:album:2kBnlkQqoJTGwtHVmnZReO

  • yearinteger

    2025

each artistdata.artists[]

Populated whenever the provider has data for the entity.

  • idstring

    4pQqXVpB2pTwR3pN1nnYUV

  • namestring

    Juniper Vale

  • uristring

    spotify:artist:4pQqXVpB2pTwR3pN1nnYUV

  • verifiedboolean

    true

each podcastdata.podcasts[]

Populated whenever the provider has data for the entity.

  • idstring

    1qDxT9pB2pTwR3pN1nnYUV

  • imagestring

    https://i.scdn.co/image/ab6765630000ba8a1a2b3c4d5e6f7081920a1b2

    URL of the cover art image.

  • namestring

    The Long Game

  • publisherstring

    Harborlight Media

  • uristring

    spotify:show:1qDxT9pB2pTwR3pN1nnYUV

    Spotify URI of the podcast show.

each trackdata.tracks[]

Populated whenever the provider has data for the entity.

  • albumNamestring

    Nightbloom

    Name of the album the track appears on.

  • idstring

    5tHqowP2R2edmL1zBqfWWT

    Populated whenever the provider has data for the entity.

  • imagestring

    https://i.scdn.co/image/ab67616d0000b2734f1a2b3c4d5e6f7081920a1b

    URL of the cover art image.

  • namestring

    Nightbloom

    Populated whenever the provider has data for the entity.

  • uristring

    spotify:track:5tHqowP2R2edmL1zBqfWWT

    Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Spotify Search API

The AnyAPI Spotify Search API returns Spotify search data as normalized JSON from one POST call to /v1/run/spotify.search. Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Spotify search calls through AnyAPI succeeded, with a median response time of 3.0 seconds across 18 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Search Spotify for matching tracks, albums, artists, podcasts, and playlists by keyword. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Spotify search calls through AnyAPI succeeded, with a median response time of 3.0 seconds across 18 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 Spotify Search calls at $0.0012 each.

Send a POST request to https://api.getanyapi.com/v1/run/spotify.search with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.