Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

How do I retrieve all songs from a genre with Web API?

How do I retrieve all songs from a genre with Web API?

My Question or Issue

 

In the Spotify app, you can list all songs from a genre by typing `genre:foo` in the search bar.

For instance, if i type genre:vaporwave in the search bar, i get a list of vaporwave songs.

How do i retrieve this list with the Web API?

 

Reply
1 Reply

Just solved my own question.
The endpoint to use is 'search'.

ie,

curl -X "GET" "https://api.spotify.com/v1/search?q=genre%3Avaporwave&type=track" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer ......."

Suggested posts