# Feature Request - iTunes Tag Source?

**URL:** https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469
**Category:** Web Sources Discussion
**Created:** [May 23, 2012, 12:16am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469 "2012-05-23T00:16:30Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![peteyt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/779978/32.png) [@peteyt](https://community.mp3tag.de/u/peteyt)
#### Post date: [May 23, 2012, 12:16am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/1 "2012-05-23T00:16:30Z")

</div>

Hi there

I am new to Mp3tag and firstly would like to say what a great program this is. I run a licensed student radio and a while back a load of music was corrupt and many files lost their metadata - Mp3tag made it a lot easier with the use of it's tag sources to retrieve the correct tags and to fix the files.

I have noticed however a lot of tracks on iTunes that aren't on any of the other tag sources which means finding them can be tricky, usually need to manually add most of the data.

Would there be a way to include the iTunes database to retrieve the information or does Apple not allow for this?

Thanks

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 23, 2012, 6:09am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/2 "2012-05-23T06:09:27Z")

</div>

> [@peteyt](#):
>
> ...  
> Would there be a way to include the iTunes database to retrieve the information or does Apple not allow for this?
> 
> Thanks

Do you mean the local iTunes database? AFAIK it is possible to create an XML export. As this behaves like plain text you should be able to create a suitable text file to import with MP3tag.

...

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 23, 2012, 7:12am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/3 "2012-05-23T07:12:52Z")

</div>

itunes does provide an API (Application programming interface), so it should be possible.

[http://www.apple.com/itunes/affiliates/res...search-api.html](http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html)

Have a look at the search and lookup examples given there. These are the pages which must be parsed by Mp3tag.  
But it would be a little bit of work to get it going.

As for the legal aspects, i think it's ok. The preview button would provied a direct link to their store page as they demand.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 23, 2012, 10:01am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/4 "2012-05-23T10:01:43Z")

</div>

I'm working on it. Looks good!

😆

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 23, 2012, 12:44pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/5 "2012-05-23T12:44:25Z")

</div>

Here is the first version.  
Tested a few releases and artists, seems to work.

Written tag fields:  
COVER; ALBUMARTIST; ALBUM; YEAR; PUBLISHER; GENRE; ARTIST; TITLE; TRACK

The cover picture is always only 100x100 pixels.

The PUBLISHER tag field is not always written in as one company. Ofter there is additional information.

For the TITLE tag field I have picked "trackCensoredName" instead of "trackName". According to itunes' description, the the diference should be that rude words are replaced by \* (like "S\*\*t Happens"). But I have detected some examples, where the "trackCensoredName" has the version name of the title (like "Title (Club Mix)" or "Title (Trentemøller Remix)") and "trackName" has not.  
Example:  
[http://itunes.apple.com/us/album/reworked-...xed/id471858839](http://itunes.apple.com/us/album/reworked-remixed/id471858839)  
[http://itunes.apple.com/lookup?id=471858839&entity=song](http://itunes.apple.com/lookup?id=471858839&entity=song)

The GENRE tag field displays only one main genre (like "Electronic"). The HTML pages have the more than one genre and more defined genre names (like "Electronic, Music, Dance, Techno, Ambient, House") The API has not (at least I don't know how to display it).  
See the example above.

For the YEAR tag field, I was not able to get the original year when there are remastered versions on iTunes. The HTML pages have the original year. The API has not (at least I don't know how to display it).  
Example:  
[http://itunes.apple.com/us/album/hunky-dor...ered/id14684243](http://itunes.apple.com/us/album/hunky-dory-remastered/id14684243)  
[http://itunes.apple.com/lookup?id=14684243&entity=song](http://itunes.apple.com/lookup?id=14684243&entity=song)

Please give me feeback if you spot some problems.  
Everybody is invited to develop and modify this script.

**EDIT:**  
see web sources forum for the finished script

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 23, 2012, 12:50pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/6 "2012-05-23T12:50:26Z")

</div>

boah ey! 😲 Super

---

<div class="post-metadata">

### Author: ![peteyt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/779978/32.png) [@peteyt](https://community.mp3tag.de/u/peteyt)
#### Post date: [May 23, 2012, 1:58pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/7 "2012-05-23T13:58:46Z")

</div>

> [@pone](#):
>
> Here is the first version.  
> Tested a few releases and artists, seems to work.
> 
> Written tag fields:  
> COVER; ALBUMARTIST; ALBUM; YEAR; PUBLISHER; GENRE; ARTIST; TITLE; TRACK
> 
> The cover picture is always only 100x100 pixels.
> 
> The PUBLISHER tag field is not always written in as one company. Ofter there is additional information.
> 
> For the TITLE tag field I have picked "trackCensoredName" instead of "trackName". According to itunes' description, the the diference should be that rude words are replaced by \* (like "S\*\*t Happens"). But I have detected some examples, where the "trackCensoredName" has the version name of the title (like "Title (Club Mix)" or "Title (Trentemøller Remix)") and "trackName" has not.  
> Example:  
> [http://itunes.apple.com/us/album/reworked-...xed/id471858839](http://itunes.apple.com/us/album/reworked-remixed/id471858839)  
> [http://itunes.apple.com/lookup?id=471858839&entity=song](http://itunes.apple.com/lookup?id=471858839&entity=song)
> 
> The GENRE tag field displays only one main genre (like "Electronic"). The HTML pages have the more than one genre and more defined genre names (like "Electronic, Music, Dance, Techno, Ambient, House") The API has not (at least I don't know how to display it).  
> See the example above.
> 
> For the YEAR tag field, I was not able to get the original year when there are remastered versions on iTunes. The HTML pages have the original year. The API has not (at least I don't know how to display it).  
> Example:  
> [http://itunes.apple.com/us/album/hunky-dor...ered/id14684243](http://itunes.apple.com/us/album/hunky-dory-remastered/id14684243)  
> [http://itunes.apple.com/lookup?id=14684243&entity=song](http://itunes.apple.com/lookup?id=14684243&entity=song)
> 
> Please give me feeback if you spot some problems.  
> Everybody is invited to develop and modify this script.

Thanks for the reply. I'm new to the program - how would I use the script?

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 23, 2012, 2:15pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/8 "2012-05-23T14:15:38Z")

</div>

> [@peteyt](#):
>
> Thanks for the reply. I'm new to the program - how would I use the script?

**script installation & usage:**

1. download the .src file

2. move the file into this folder: **%appdata%\Mp3tag\data\sources** 

3. run the script from Mp3Tag with this button: ▼

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 24, 2012, 10:20am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/9 "2012-05-24T10:20:27Z")

</div>

I made a extra topic for the script for download and further discussion:  
[/t/13478/1](https://community.mp3tag.de/t/13478/1)

---

<div class="post-metadata">

### Author: ![peteyt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/779978/32.png) [@peteyt](https://community.mp3tag.de/u/peteyt)
#### Post date: [May 24, 2012, 1:16pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/10 "2012-05-24T13:16:14Z")

</div>

Do you think the developers would ever think of adding this as a default with all the other sources - would be handy.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [May 24, 2012, 3:13pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/11 "2012-05-24T15:13:02Z")

</div>

> [@peteyt](#):
>
> Do you think the developers would ever think of adding this as a default with all the other sources - would be handy.

I don't know. It doesn't matter, that's what the Web Sources Scripts forum is here for. Once you have downloaded the script from there and moved it into the correct folder, there is not difference to the ones that were there as default.

---

<div class="post-metadata">

### Author: ![Newyouth](https://community.mp3tag.de/user_avatar/community.mp3tag.de/newyouth/32/6778_2.png) [@Newyouth](https://community.mp3tag.de/u/Newyouth)
#### Post date: [March 28, 2014, 6:04am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/12 "2014-03-28T06:04:35Z")

</div>

> [@pone](#):
>
> **script installation & usage:**
> 
> 1. download the .src file
> 
> 2. move the file into this folder: **%appdata%\Mp3tag\data\sources** 
> 
> 3. run the script from Mp3Tag with this button: ▼

hi,  
at the first, very thanks you to made a itunes.src!  
I move the itunes.src to my \Mp3tag\data\sources, but re-run the Mp3tag I can't find this in source button, I don't why...  
please help me. thanks!

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 28, 2014, 6:40am UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/13 "2014-03-28T06:40:24Z")

</div>

> [@Newyouth](#):
>
> hi,  
> at the first, very thanks you to made a itunes.src!  
> I move the itunes.src to my \Mp3tag\data\sources, but re-run the Mp3tag I can't find this in source button, I don't why...  
> please help me. thanks!

see  
[/t/964/1](https://community.mp3tag.de/t/964/1)  
to check where to put the files.

---

<div class="post-metadata">

### Author: ![Newyouth](https://community.mp3tag.de/user_avatar/community.mp3tag.de/newyouth/32/6778_2.png) [@Newyouth](https://community.mp3tag.de/u/Newyouth)
#### Post date: [March 28, 2014, 3:21pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/14 "2014-03-28T15:21:43Z")

</div>

> [@ohrenkino](#):
>
> see  
> [/t/964/1](https://community.mp3tag.de/t/964/1)  
> to check where to put the files.

thank for you reply.  
I find the reason, because my Mp3tag folder isn't in C:\Program files, I try to reinstall Mp3tag, then OK.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [March 28, 2014, 5:17pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/15 "2014-03-28T17:17:04Z")

</div>

> [@Newyouth](#):
>
> thank for you reply.  
> I find the reason, because my Mp3tag folder isn't in C:\Program files, I try to reinstall Mp3tag, then OK.

Your MP3Tag-program-folder has nothing to do with the location of the sources-folder.  
Your personal settings, data and sources are located in your user-profile. The exact location depends an which windows-version you use.

---

<div class="post-metadata">

### Author: ![MrSinatra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mrsinatra/32/5574_2.png) [@MrSinatra](https://community.mp3tag.de/u/MrSinatra)
#### Post date: [April 20, 2014, 8:49pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/16 "2014-04-20T20:49:30Z")

</div>

is it possible to adjust this script so that users can get ratings out of the iTunes DB and into file tags?

if so, how?

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [April 22, 2014, 6:35pm UTC](https://community.mp3tag.de/t/feature-request-itunes-tag-source/13469/17 "2014-04-22T18:35:31Z")

</div>

I can't find album or track ratings in the iTunes API Database.  
If you can show me how to find that, I will build it in.

If you want to have a look, here is further reading:

itunes API documentation:  
[https://www.apple.com/itunes/affiliates/res...search-api.html](https://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html)

There is a mention of "ratingIndex" as an attribute. But as I understand it, I can use attributes only for search, not for look-up pages. That means I can search for albums with a certain rating, but I can't show the rating when I'm actually viewing the album.

example for a release with ratings (not all releases have ratings):  
HTML (with rating):  
[https://itunes.apple.com/de/album/sound-and...013/id696906075](https://itunes.apple.com/de/album/sound-and-vision-2013/id696906075)  
API (without rating:  
[itunes.apple.com/lookup?country=DE&id=696906075&entity=song&limit=200](http://itunes.apple.com/lookup?country=DE&id=696906075&entity=song&limit=200)
