Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9880

Make genre list available through the API

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2022-03-28
    • None
    • Web service
    • 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.

            reosarevok Nicolás Tamargo
            reosarevok Nicolás Tamargo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2022-03-28