How to get MusicBrainz ID album

I want to use CoverArtArchiveClient to download album images from MusicBrainz, but this requires the MusicBrainz identifier ( MBID ). Can someone provide information on how to get the MBID for a specific album? Code samples would be greatly appreciated.

thanks

+3
source share
1 answer

The details depend on what kind of presentation you have for a "specific album."

In general, MusicBrainz provides a web service (in XML and json format) where you can search for MusicBrainz objects, which also give an MBID. You want to get the MBID of the release objects.

Since you seem to be developing Android in Java, you might be interested in musicbrainzws2-java binding Java to a web service.

There are other language bindings / libraries available for the current version (WS / 2 = "NGS") of the web service, and you always have the opportunity to use the web service directly.

If you have an album available as tagged audio files, you should try to extract the tags, as sometimes MBIDs are already available in the files and you do not need to search MusicBrainz.

EDIT:

SO-as-get-album-image-using-musicbrainz has an answer that tells how to use the web service directly. The MusicBrainz web service can also return links / URLs directly (as described in this answer). This way you save another call to CoverArtArchive.

+1
source

Source: https://habr.com/ru/post/1446937/


All Articles