-
Improvement
-
Resolution: Fixed
-
Normal
-
None
-
None
https://community.metabrainz.org/t/genre-tag-names-api-list/404075/ - in general, it might be useful to have a way to ask MB for the entire list of accepted genres with an API call.
Implementation
We'll add a new endpoint to the web service, /ws/2/genre/all.
- /ws/2/genre/all?fmt=json returns a paginated list of genres in JSON format. limit/offset are supported for paging. This currently includes the genre name, gid, and disambiguation.
- /ws/2/genre/all?fmt=xml returns the same as above, but in XML format.
- /ws/2/genre/all?fmt=txt returns all genre names as a text list. The names are separated by newlines. limit/offset aren't supported here, since all names are returned.
All three formats return genres in alphabetical order.
- has related issue
-
MBS-12093 API endpoints for entity attributes
- Open