0

I am developing third party app on spotify platform. In that, user have to select spotify user's music library playlist (top 100 songs by Spotify user). So, I am trying to search spotify library for particular genre. I am using SPSearch with Query genre:pop. But for some generics like "rock" it return nil.

I am using latest build of cocoalibspotify. Please can somebody tell how to get Spotify user track list or playlist for particular genre?

Rahul Mane
  • 1,005
  • 18
  • 33
  • Hi @Rahul Mane, I am facing the same issue. Can you pls help me here: https://stackoverflow.com/questions/54996772/get-the-list-of-genre-and-their-respected-songs-of-spotify-in-swift-ios – Anand Gautam Mar 05 '19 at 06:39
  • Hi @Rahul Mane, I have searched and then get to know that using https://api.spotify.com/v1/recommendations/available-genre-seeds API, we can get the list of Genres and to get the respective songs have to call https://api.spotify.com/v1/search?q=genre:%22rock%22&type=track&market=US&limit=20&offset=0 API. Is this the correct way? – Anand Gautam Mar 06 '19 at 08:30
  • Now you can see my question link. – Anand Gautam Mar 06 '19 at 08:37

1 Answers1

0

The full advanced search documentation can be found here.

Note that this will search the entire Spotify catalog, not just the user's own library. There's currently no built-in way to only search the user's library at this time.

iKenndac
  • 18,730
  • 3
  • 35
  • 51