Topic: xml web service

Is it possible to get tags of a song from xml web services?

Re: xml web service

Yes. Add "tags" to the inc options.

e.g. http://musicbrainz.org/ws/2/recording/0 … its%2Btags

Re: xml web service

Sorry, I didn't explain myself well.

I mean, I'd like to do a work like MB Picard.

Talking general, I wonder, is it possible to get all necessary tag for a song using MBrainz Web services ?

Re: xml web service

Well it depends what you mean by "all necessary tag", obviously.

Ignoring plugins, Picard gets all its data from MB's web services, so yes, it's possible to get everything that Picard gets from MB's web services (+ some more data that Picard doesn't currently use)

Re: xml web service

Let's make an example for usual tags for an mp3:

Artist
Album
Year
Pos (#)
Genre
Length

Making a call like this:

http://musicbrainz.org/ws/2/recording/b … s+releases

I get

Artist
Album (more releases)
Date (for the album)
Length

I miss position and genre.

Is there any way to achieve also these ?

Re: xml web service

To get the position of a track you have to query one specific release, as the position of a single song can be different on separate releases. So from the result of your query you have to pick one release and then perform a query on that release, e.g.

http://musicbrainz.org/ws/2/release/027 … dings+tags

Genre is not supported by MusicBrainz, but the above query will return the folksonomy tags. Picard can use those to fill the genre field.

Re: xml web service

I see querying the release is a good way.

About getting the cover, I saw the cover art is not always available, but MBrainz uses relationship whenever is needed.

Could you give me some suggestions for the best way to get the cover?

Thank you :-)

Re: xml web service

We are biased, but of course we believe the best way is to use http://coverartarchive.org/ :-)

You can query this directly via the MBID for a release which is quite convenient. However it's quite new, so the amount of artwork is only slowly growing. For a more complete interim solution you may want to consider following similar logic to Picard which also uses Amazon links and over "has cover art" relationships from the release itself: https://github.com/musicbrainz/picard/b … overart.py

Obviously when querying external services, you must be careful to adhere to their rate limiting and usage terms + conditions (similar to your responsibilities when using the MB web services)