MusicBrainz IDs/enums

When creating an entry, e.g. via the form at https://musicbrainz.org/work/create, many fields are submitted as enum values.

For instance:

  • edit-work.type_id=17 corresponds to “Song”
  • work.rel.0.link_type_id=165 corresponds to “Lyricist”

etc.

Is there a place where I can take a look at a list of all the enums and their values?

can be found here: Relationship type / Lyricist - MusicBrainz

Unfortunately, I can’t tell you a complete overview for such IDs.

2 Likes

A copy of the database would have all of them, and you can download it for free :slight_smile: (the sample database, which is a lot smaller, would still have all the relationships and entity types, so it’s probably good enough for your case).

If you’re thinking about writing a bot or any sort of automated editing, please talk to us about it first though :slight_smile:

3 Likes

I’ve extracted enums that are useful for seeding:

I think I last updated it from the 20240701-000001 dump.

3 Likes

Thank you everyone!

@reosarevok, yes I’m interested in doing automated editing. I’d like to import songs/recordings from data sources like JASRAC’s J-WID and YouTube, up to dozens of entries at a time.

Please use song names found on releases rather than the full uppercase (and sometimes wrong) titles you can find in JASRAC DB, though.

5 Likes