GroundsocialDocs

API · Spotify

GET /spotify/search

Search Spotify: artists, albums, tracks, playlists, podcasts and episodes.

RequestGET /v1/spotify/search
Operation idspotify.search.all
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Search Spotify: artists, albums, tracks, playlists, podcasts and episodes.

Query parameters

NameTypeRequiredDescription
qstringyesSearch words. Example: daft punk.
typestringnoComma-separated kinds to keep: artist, album, track, playlist, show, episode. Default: all.
limitintegernoResults per kind (default 10).
afterstringnoCursor: the previous page’s next_cursor.

Responses

StatusMeaningSchema
200Matches by kind.SpotifySearchResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No Spotify object by that id, or it is not public.Error
429Too many requests. Wait for Retry-After seconds.Error
503Spotify is temporarily unavailable. Retryable; nothing was charged.Error

SpotifySearchResponse fields

FieldTypeDescription
artistsobject
albumsobject
tracksobject
playlistsobject
showsobject
episodesobject
next_cursorstring | null

Errors use one shape everywhere; see Errors for every code and what to do.