Skip to content

Spotify Search API

Search for artists, albums, tracks, and playlists using the Spotify API. This endpoint is a proxy to the official Spotify Search API.

Endpoint

GET https://api.recoupable.com/api/spotify/search

Parameters

NameTypeRequiredDescription
qstringYesThe search query keywords and optional field filters.
typestringYesA comma-separated list of item types to search across: album, artist, etc.
marketstringNoAn ISO 3166-1 alpha-2 country code or "from_token".
limitintNoMaximum number of results to return (default: 20, min: 1, max: 50).
offsetintNoThe index of the first result to return (default: 0, max: 10,000).

Supported types: album, artist, playlist, track, show, episode, audiobook

Request Examples

cURL
curl -X GET "https://api.recoupable.com/api/spotify/search?q=radiohead&type=artist" \
  -H "Content-Type: application/json"

Example Response

{
  "artists": {
    "href": "https://api.spotify.com/v1/search?query=radiohead&type=artist&offset=0&limit=2",
    "items": [
      {
        "external_urls": {
          "spotify": "https://open.spotify.com/artist/4Z8W4fKeB5YxbusRsdQVPb"
        },
        "followers": { "href": null, "total": 5000000 },
        "genres": ["alternative rock", "rock"],
        "id": "4Z8W4fKeB5YxbusRsdQVPb",
        "images": [
          {
            "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228",
            "height": 300,
            "width": 300
          }
        ],
        "name": "Radiohead",
        "popularity": 85,
        "type": "artist",
        "uri": "spotify:artist:4Z8W4fKeB5YxbusRsdQVPb"
      }
    ],
    "limit": 2,
    "next": "https://api.spotify.com/v1/search?query=radiohead&type=artist&offset=2&limit=2",
    "offset": 0,
    "previous": null,
    "total": 1
  }
}

Response Properties

PropertyTypeDescription
artistsobjectSearch results for artists (if type includes artist)
artists.itemsarrayList of artist objects
artists.items[].idstringSpotify artist ID
artists.items[].namestringArtist name
artists.items[].typestringAlways "artist"
artists.items[].uristringSpotify URI for the artist
artists.items[].external_urlsobjectExternal URLs, including Spotify web link
artists.items[].imagesarrayArray of image objects (url, height, width)
artists.items[].popularityintPopularity score (0-100)
artists.items[].genresarrayList of genres
artists.items[].followersobjectFollower info (total, href)
artists.limitintMax results returned
artists.offsetintIndex of first result
artists.totalintTotal number of results
artists.nextstringURL to next page of results (if any)
artists.previousstringURL to previous page of results (if any)

See the Spotify Search API Reference for full details on all item types and fields.

Notes

  • This endpoint requires a valid Spotify access token (handled by the Recoup API backend).
  • You can search for multiple types at once (e.g., type=artist,album).
  • Results are paginated; use limit and offset for navigation.
  • For more details, see the official Spotify Search API documentation.