Genre: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
Genres are currently supported in MusicBrainz as part of the [[Folksonomy Tagging|tag system]].
Genres are currently supported in MusicBrainz as part of the [[Folksonomy Tagging|tag system]].


Some tags (the ones in the [https://musicbrainz.org/genres genre list]) are automatically read and presented as genres. The list is expanded according to user requests, so if you feel a genre is missing, request it by [https://tickets.metabrainz.org/secure/CreateIssueDetails!init.jspa?pid=10032&issuetype=2&summary=Enter%20the%20genre%20name%20here! adding a style ticket] with the "Genres" component.
Some tags (the ones in the [[mb:genres|genre list]]) are automatically read and presented as genres. The list is expanded according to user requests, so if you feel a genre is missing, request it by [https://tickets.metabrainz.org/secure/CreateIssueDetails!init.jspa?pid=10032&issuetype=2&summary=Enter%20the%20genre%20name%20here! adding a style ticket] with the "Genres" component.


Genres are subjective, so just like with any other tags, you can upvote and downvote genres you agree or disagree with on any given entity, and you can also submit genre(s) for the entity that no one has added yet.
Genres are subjective, so just like with any other tags, you can upvote and downvote genres you agree or disagree with on any given entity, and you can also submit genre(s) for the entity that no one has added yet.
Line 8: Line 8:
The method to request genres mirrors that of tags: you can use inc=genres to get all the genres everyone has proposed for the entity, or inc=user-genres to get all the genres you have proposed yourself (or both!). For example, to get the genres for the release group for [[releasegroup:3bd76d40-7f0e-36b7-9348-91a33afee20e|Nine Inch Nails' Year Zero]] you’d want '''<nowiki>https://musicbrainz.org/ws/2/release-group/3bd76d40-7f0e-36b7-9348-91a33afee20e?inc=genres+user-genres</nowiki>''' for the XML API and '''<nowiki>https://musicbrainz.org/ws/2/release-group/3bd76d40-7f0e-36b7-9348-91a33afee20e?inc=genres+user-genres&fmt=json</nowiki>''' for the JSON API.
The method to request genres mirrors that of tags: you can use inc=genres to get all the genres everyone has proposed for the entity, or inc=user-genres to get all the genres you have proposed yourself (or both!). For example, to get the genres for the release group for [[releasegroup:3bd76d40-7f0e-36b7-9348-91a33afee20e|Nine Inch Nails' Year Zero]] you’d want '''<nowiki>https://musicbrainz.org/ws/2/release-group/3bd76d40-7f0e-36b7-9348-91a33afee20e?inc=genres+user-genres</nowiki>''' for the XML API and '''<nowiki>https://musicbrainz.org/ws/2/release-group/3bd76d40-7f0e-36b7-9348-91a33afee20e?inc=genres+user-genres&fmt=json</nowiki>''' for the JSON API.


Since genres are tags, all the genres are also served with inc=tags with all the other tags. As such, you can always use the tag endpoint if you would rather filter the tags by your own genre list rather than follow the MusicBrainz one, or if you want to also get other non-genre tags (maybe you want moods, or maybe you’re really interested in finding artists who perform hip hop music and [https://musicbrainz.org/tag/death%20by%20murder were murdered] – we won’t stop you!).
Since genres are tags, all the genres are also served with inc=tags with all the other tags. As such, you can always use the tag endpoint if you would rather filter the tags by your own genre list rather than follow the MusicBrainz one, or if you want to also get other non-genre tags (maybe you want moods, or maybe you’re really interested in finding artists who perform hip hop music and [[mb:tag/death%20by%20murder|were murdered]] – we won’t stop you!).

Revision as of 21:57, 29 April 2020

Genres are currently supported in MusicBrainz as part of the tag system.

Some tags (the ones in the genre list) are automatically read and presented as genres. The list is expanded according to user requests, so if you feel a genre is missing, request it by adding a style ticket with the "Genres" component.

Genres are subjective, so just like with any other tags, you can upvote and downvote genres you agree or disagree with on any given entity, and you can also submit genre(s) for the entity that no one has added yet.

API

The method to request genres mirrors that of tags: you can use inc=genres to get all the genres everyone has proposed for the entity, or inc=user-genres to get all the genres you have proposed yourself (or both!). For example, to get the genres for the release group for Nine Inch Nails' Year Zero you’d want https://musicbrainz.org/ws/2/release-group/3bd76d40-7f0e-36b7-9348-91a33afee20e?inc=genres+user-genres for the XML API and https://musicbrainz.org/ws/2/release-group/3bd76d40-7f0e-36b7-9348-91a33afee20e?inc=genres+user-genres&fmt=json for the JSON API.

Since genres are tags, all the genres are also served with inc=tags with all the other tags. As such, you can always use the tag endpoint if you would rather filter the tags by your own genre list rather than follow the MusicBrainz one, or if you want to also get other non-genre tags (maybe you want moods, or maybe you’re really interested in finding artists who perform hip hop music and were murdered – we won’t stop you!).