Genre tag names API list

Tags: #<Tag:0x00007f756e38b6f8> #<Tag:0x00007f756e38b590> #<Tag:0x00007f756e38b478>

Hi all,

I am looking at the current Genre list - does anyone know what API query can get a copy of this list?

Thanks in advance

The list is here:


@paulakreuzer thank you for your reply. Perhaps I didn’t phrase my question correctly - I am looking for web service query - perhaps something like this:

1 Like

We don’t currently have this, mostly because I didn’t expect it to be very useful - tags in the list will be returned as genres with inc=genres, others won’t, so requesting the full list of possible genres seemed irrelevant. If we added it, it certainly wouldn’t be as an inc for release (that seems to make no semantic sense), but as ws/2/genre or something like that :slight_smile: What’s your use case?

@reosarevok thank you for that info. I am re-coding my player to include Genre search and user entry. I want to give my users a list of available genres. I am assuming that MB Genre list will change from time-to-time. I am not keen on hardcoding the list into the player…

Fair :slight_smile: I added MBS-9880 for it. Not sure when we’ll have time for it, but at least it’s tracked now, will try to get to it in the not too long term. In the meantime, can you add a hack to the player to scrape that file once a week or so? As long as it is hardcoded on our side, it will only change once every two weeks anyway, since that’s how often we put new code into production. Whenever we move to the database I’ll make sure to add the genre list to the API if it didn’t happen before that.

1 Like

Thank you very much for that @reosarevok. It is going to take me some time to complete my end of this task. In the meantime I have captured the current list into a file, and I am using that for intermediate testing.

As far as I can tell, should always work, which means until we have a better way you can just make your player consume the JSON file, then check for tag.genres :slight_smile:

1 Like

Thanks for that @reosarevok. As long as the github site is in-sync with MB database I’m happy with that.

@reosarevok - I have a skeletal prototype of my player running. I’m using the “” link as temporary mechanism to load the Genre Names List. If you could let me know when an alternative method is available, that would be great. Thanks.

1 Like

Will do! There’s as well right now but I suspect the JSON is still better for your purposes: easier to parse and it actually gets genres added even before the site itself does :slight_smile: