[GH-ISSUE #254] Return All Genres? #181

Closed
opened 2026-02-27 19:26:29 +03:00 by kerem · 4 comments
Owner

Originally created by @ghost on GitHub (Sep 24, 2022).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/254

Hi Jonathan - I hope you're well.

I wondered if your Spotify Web API code has any provision to return all Genres?

I have used this:
$api->getGenreSeeds();

But the full list of Genres returned by e.g. https://discoverquickly.com/ (which I think also uses the Spotify API) is much larger - screenshot extract here:
https://snipboard.io/KekrMI.jpg

Full extract list also attached in text file.
full-genre-list.txt

Thanks!

Jim

Originally created by @ghost on GitHub (Sep 24, 2022). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/254 Hi Jonathan - I hope you're well. I wondered if your Spotify Web API code has any provision to return all Genres? I have used this: $api->getGenreSeeds(); But the full list of Genres returned by e.g. https://discoverquickly.com/ (which I think also uses the Spotify API) is much larger - screenshot extract here: https://snipboard.io/KekrMI.jpg Full extract list also attached in text file. [full-genre-list.txt](https://github.com/jwilsson/spotify-web-api-php/files/9638323/full-genre-list.txt) Thanks! Jim
kerem 2026-02-27 19:26:29 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jwilsson commented on GitHub (Sep 24, 2022):

Hey Jim!
I don't think there's an Spotify API endpoint to fetch the genres. But your question got me intrigued so I did some digging on https://discoverquickly.com/ and it looks like they're getting their data from https://everynoise.com/ (a request to https://discoverquickly.com/static/media/everynoise-genres.3d03bd3b.csv is made everytime you view the Genres page)

Hope this is of some help!

Cheers,
Jonathan

<!-- gh-comment-id:1256947442 --> @jwilsson commented on GitHub (Sep 24, 2022): Hey Jim! I don't think there's an Spotify API endpoint to fetch the genres. But your question got me intrigued so I did some digging on https://discoverquickly.com/ and it looks like they're getting their data from https://everynoise.com/ (a request to https://discoverquickly.com/static/media/everynoise-genres.3d03bd3b.csv is made everytime you view the Genres page) Hope this is of some help! Cheers, Jonathan
Author
Owner

@ghost commented on GitHub (Sep 24, 2022):

Hi Jonathan - thanks for your quick reply!

That's very interesting about the CSV file that contains the list of genres.

Out of interest - how were you able to confirm that discoverquickly's "Genres" link extracts the data from that CSV file?

I tried a View Source, and an Inspect Element, and also checked on the browser Console for the XHR request when the Genres link is clicked but couldn't see the CSV bit.

Was curious what method(s) you used to find that?

Thanks again

Jim

<!-- gh-comment-id:1256948504 --> @ghost commented on GitHub (Sep 24, 2022): Hi Jonathan - thanks for your quick reply! That's very interesting about the CSV file that contains the list of genres. Out of interest - how were you able to confirm that discoverquickly's "Genres" link extracts the data from that CSV file? I tried a View Source, and an Inspect Element, and also checked on the browser Console for the XHR request when the Genres link is clicked but couldn't see the CSV bit. Was curious what method(s) you used to find that? Thanks again Jim
Author
Owner

@jwilsson commented on GitHub (Sep 24, 2022):

I tried the same methods you did, without any luck. Then I saw the small "reload" icon on the genres page, clicking that I found a request for the CSV file in the browser's network tab 😄

<!-- gh-comment-id:1257023627 --> @jwilsson commented on GitHub (Sep 24, 2022): I tried the same methods you did, without any luck. Then I saw the small "reload" icon on the genres page, clicking that I found a request for the CSV file in the browser's network tab 😄
Author
Owner

@ghost commented on GitHub (Sep 25, 2022):

Thanks Jonathan - that's very useful to know!
Thanks again for your help
Jim

<!-- gh-comment-id:1257143606 --> @ghost commented on GitHub (Sep 25, 2022): Thanks Jonathan - that's very useful to know! Thanks again for your help Jim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#181
No description provided.