Announcements

Help Wizard

Step 1

NEXT STEP

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

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random