# \[WS\] MusicBrainz XML Webservice

**URL:** <https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591>\
**Category:** Web Sources Scripts\
**Created:** [July 24, 2006, 3:01pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591 "2006-07-24T15:01:50Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![willmcelwain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/3e96dc/32.png) [@willmcelwain](https://community.mp3tag.de/u/willmcelwain)\
**Post date:** [March 7, 2008, 5:59am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/21 "2008-03-07T05:59:08Z")

</div>

I don't believe you can search for both at the same time, but I could be wrong. I originally wanted to search by Artist instead of album for exactly that reason. I guess for artists with lots of albums, it could return too many results (and not even show the album you're looking for), but just change the "limit" parameter like I described above to get around that. To sort by anything when you get the results, just click on the column name (year, album, etc.).

---

<div class="post-metadata">

**Author:** ![locutus](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@locutus](https://community.mp3tag.de/u/locutus)\
**Post date:** [March 7, 2008, 7:08am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/22 "2008-03-07T07:08:41Z")

</div>

True, but in the case you have only "greatest hits" as album, you must look first at MB, allmusic or LastFM for the right album, before quering MB. In this case i could also directly go to MB and look for the discID. Too much work. I thought it is probably possible to filter the result of the artist query.

In any query i did so far no year is shown!

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [March 7, 2008, 7:43am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/23 "2008-03-07T07:43:47Z")

</div>

I see my code to grab the year in the result window is broken that's why you don't see it. Gonna fix these..

I also have a script that searches for artist + title and tags only album and year, but it cannot show year and album type, they don't seem to be available.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [March 15, 2008, 12:41pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/24 "2008-03-15T12:41:53Z")

</div>

Thank you dano for this great websource!  
Is it possible to save the MusicBrainz-IDs (i.e. for the album, artist, track) in a id3tag?

You use one of this IDs already to click on the blue URL ('This album on Musicbrainz web source').  
Example: [http://musicbrainz.org/album/08e4f585-24ed...f3e88d5d01.html](http://musicbrainz.org/album/08e4f585-24ed-4d65-9402-1df3e88d5d01.html)

I would like to save the part '08e4f585-24ed-4d65-9402-1df3e88d5d01' in the Tag  
MUSICBRAINZ ALBUM ID  
(like the 'MusicBrainz-Piccard' does it)

If available, the content of  
MUSICBRAINZ ARTIST ID  
and/or  
MUSICBRAINZ\_TRACKID  
would be nice too! ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")

What do you think about?

**UPS: SORRY! Some minutes later I found your SEARCH BY ALBUM + ID TAGS Source!  
Everything solved!!**I just have to remove the id3tag PERFORMERSORTORDER and ALBUM TYPE, which I don't need.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [March 15, 2008, 2:31pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/25 "2008-03-15T14:31:35Z")

</div>

Dano: I have another little wish for your MusicBrainz-websource.

Is it possible to reduce the offered results of the search to the ones matching the number of selected tracks?

I look for an album called 'The Black Parade'. I get 3 entries back:

- Single Official with 2 tracks
- Ep Official with 2 tracks
- Album Official with 14 tracks

Since I have marked 14 tracks it should be obvious, that I'm looking for the third one.

What do you think?

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [July 12, 2009, 10:19am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/26 "2009-07-12T10:19:06Z")

</div>

I like this Musicbrainz-Websource very much and it works great!

Now I found something, that I can't explain:  
If I search for  
"ballad of sally rose" AND artist:"Emmylou Harris"  
I get exact the matching album with all the needed information.

If I search with  
"Ballad **O** f Sally Rose" AND artist:"Emmylou Harris"  
I don't get any result.

It seems, that the capitalized word "of" makes the difference.  
If I search with  
"Ballad **o** f Sally Rose" AND artist:"Emmylou Harris"  
I get exactly what I need.

Any idea, why it is important to write the search-word "of" in small letters?

BTW: MB has done some improvements in the XML Webservice. Mabye you could have a look to this informations:  
[http://wiki.musicbrainz.org/XMLWebService](http://wiki.musicbrainz.org/XMLWebService)  
and  
[http://wiki.musicbrainz.org/Text\_Search\_Syntax](http://wiki.musicbrainz.org/Text_Search_Syntax) 😉

Ich hab noch ein weiteres Muster gefunden:  
"Like Red On A Rose" von "Alan Jackson" wird nicht gefunden.  
"Like Red on a Rose" von "Alan Jackson" matcht wunderbar.

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [July 12, 2009, 6:10pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/27 "2009-07-12T18:10:22Z")

</div>

I don't use quotation marks in my scripts.  
Ballad Of Sally Rose AND artist:Emmylou Harris  
works fine.

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [September 23, 2009, 8:26am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/28 "2009-09-23T08:26:00Z")

</div>

Updates...

---

<div class="post-metadata">

**Author:** ![pandaking](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@pandaking](https://community.mp3tag.de/u/pandaking)\
**Post date:** [October 20, 2009, 2:25pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/29 "2009-10-20T14:25:12Z")

</div>

Found a little bug in this script, I only use the ID versions but it could be in all of them:

If an album is all one artist, but for example it has a few guest artists on a few tracks then it errors. It seems whatever is listed as "Band" will not also show in "Artist".

I've had this for loads of albums now, so it's definately not a one off.

An example album is:  
[http://musicbrainz.org/album/fb13dd43-3773...0d86a4446c.html](http://musicbrainz.org/album/fb13dd43-3773-40f4-a340-410d86a4446c.html)

See how the first track has two artists listed, and then the rest are all Dizzee Rascal but with your script it only sets the artist for the first track, and the rest are all blank while "band" is set to Dizzee Rascal.

So yea, in short it seems:  
If "Artist" is the same as "Band" then it's set as blank. It should however set both "Artist" and "Band" the same...

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [October 21, 2009, 7:20am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/30 "2009-10-21T07:20:42Z")

</div>

Thank you, I knew about this but didn' think I could fix it. Now I took a second try and it was pretty easy.  
You can try it in the ID scripts.

---

<div class="post-metadata">

**Author:** ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)\
**Post date:** [November 8, 2009, 6:38pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/31 "2009-11-08T18:38:34Z")

</div>

> [@dano](#):
>
> **MusicBrainz Web Service ID** (+ ID Tags)  
> _Imports:_ Artist, Album, Titles, Year, ASIN, Cover + several MusicBrainz ID Tags

Hi dano,

I like this script a lot since it brings in some new information that the discogs ones doesn't. What I'm wondering is if it would be possible for the script to grab a couple of more tags that are in the MB album (and 1 in the Artist page) page? In for instance [this page](http://musicbrainz.org/album/95f5a9bd-5493-4134-a8f3-5ed3752a7d0f.html) I would also like to get:

DISCOGS\_RELEASE\_ID - 814895  
WWW - [http://en.wikipedia.org/wiki/Riot\_on\_an\_Empty\_Street](http://en.wikipedia.org/wiki/Riot_on_an_Empty_Street)  
WWWARTIST - [http://en.wikipedia.org/wiki/Kings\_of\_Convenience](http://en.wikipedia.org/wiki/Kings_of_Convenience) (from the artist page)  
STYLES - downtempo, electronic, folk rock, lo-fi, rock  
MB\_TRACK\_CREDITS - has guest vocal performed by Feist (Leslie Feist of Broken Social Scene)  
LANGUAGE - English, Latin  
MEDIATYPE - CD

It never hurts to ask, right?

---

<div class="post-metadata">

**Author:** ![Akovia](https://community.mp3tag.de/user_avatar/community.mp3tag.de/akovia/32/5690_2.png) [@Akovia](https://community.mp3tag.de/u/Akovia)\
**Post date:** [August 17, 2010, 10:28am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/32 "2010-08-17T10:28:14Z")

</div>

Hi,  
I'm having a bit of trouble. I have a release that even though I can go to it on the MB website, It will not find it in any of the scripts. I have been trying to modify the script as per your instructions to lock in on the release MBID# taken right from the page and I think it's formatted correctly as I don't get an error other than it can't find it.

I formatted the IndexURL line to this:  
[IndexUrl]=http://musicbrainz.org/ws/1/release/%s?type=xml

Am I doing something wrong, or is this just some sort of bug on this particular release?

Here is the problem release:  
[http://musicbrainz.org/show/release/?releaseid=648616](http://musicbrainz.org/show/release/?releaseid=648616)

I've copied the name of the album directly from MB for a regular album search but get no results. This has happened on a few so far which is why I'd like some way to enter the release MBID into a script directly so if I can find it on the MB website, I can enter that number in a script and know I will get what I need.

Thanks for any help you can provide.

Akovia

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [August 17, 2010, 11:44am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/33 "2010-08-17T11:44:08Z")

</div>

I have updated the search scripts, now you should be able to find your album.

---

<div class="post-metadata">

**Author:** ![Akovia](https://community.mp3tag.de/user_avatar/community.mp3tag.de/akovia/32/5690_2.png) [@Akovia](https://community.mp3tag.de/u/Akovia)\
**Post date:** [August 17, 2010, 9:41pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/34 "2010-08-17T21:41:43Z")

</div>

My Hero!  
That was driving me insane. Worked first time.

Many, Many Thanks!

Ako

---

<div class="post-metadata">

**Author:** ![urgetopurge](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/6de8d8/32.png) [@urgetopurge](https://community.mp3tag.de/u/urgetopurge)\
**Post date:** [September 8, 2010, 1:17am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/35 "2010-09-08T01:17:18Z")

</div>

hi,

thanks for the great support

can i ask whats the difference between the two:

MusicBrainz Web Service  
and  
MusicBrainz Web Service ID (+ ID Tags)

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [September 8, 2010, 10:25am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/36 "2010-09-08T10:25:12Z")

</div>

It supports a few more tag fields and also the musicbrainz id tags.

---

<div class="post-metadata">

**Author:** ![brok3n](https://community.mp3tag.de/user_avatar/community.mp3tag.de/brok3n/32/284_2.png) [@brok3n](https://community.mp3tag.de/u/brok3n)\
**Post date:** [November 8, 2010, 9:08pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/37 "2010-11-08T21:08:57Z")

</div>

something wrong with VA releases

[![](http://img638.imageshack.us/img638/2286/20101109010600.th.jpg)](http://img638.imageshack.us/my.php?image=20101109010600.jpg)

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [November 8, 2010, 10:28pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/38 "2010-11-08T22:28:02Z")

</div>

Try the update from here:  
[/t/1681/1](https://community.mp3tag.de/t/1681/1)

---

<div class="post-metadata">

**Author:** ![KaoDome](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@KaoDome](https://community.mp3tag.de/u/KaoDome)\
**Post date:** [December 5, 2010, 2:19pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/39 "2010-12-05T14:19:35Z")

</div>

Hi, I have a problem similar to the one Akovia was having: there's a release I can find through the web search directly but I'm unable to find through Mp3tag.

I can't find the artist either and filtering by the tracks number throws way too much results as it only has 4 tracks.

So I was wondering if you could add a search script to retrieve the info directly from a disk ID (there seems to be a discid parameter when searching for releases). I'm always tagging my albums with ID tags but I'm finding it a nightmare to tag this one, and unfortunately I don't have quite the knowledge to write a script.

This one is the release anyway: [http://musicbrainz.org/release/b19b3a0a-2b...3ef3566958.html](http://musicbrainz.org/release/b19b3a0a-2be1-4f88-babd-283ef3566958.html)

Thank you very much for your time, and for writing these scripts; they're really useful.

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [December 5, 2010, 2:41pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/40 "2010-12-05T14:41:55Z")

</div>

I can do it but you can still find the album with the artist + album search:  
_Silence AND artist:silence_

or with album + tracks:  
_"Silence" AND tracks:4_

[Previous page](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591.md?page=1)

[Next page](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591.md?page=3)
