Mike Keegan
Mike Keegan

Reputation: 19

Searching for songs in Spotify iOS API

I want to incorporate the ability for a user to search for a Spotify song with keywords. I noticed in CocoaLibSpotify there is a searchWithSearchQuery:, but have not seen anything similar in the Spotify API. Using CocoaLibSpotify was discouraged because it is deprecated.

Is there any way to search with the Spotify API?

Upvotes: 0

Views: 871

Answers (1)

mipadi
mipadi

Reputation: 410552

The Spotify API has a /v1/search. It takes a q parameter, your search query, and a type parameter, which is the type of thing to search (in the case of songs, that's "track"). So you could hit /v1/search?type=track&q= to search for a song.

Upvotes: 1

Related Questions