# \[WS\] Apple Music

**URL:** https://community.mp3tag.de/t/ws-apple-music/51184
**Category:** Web Sources Scripts
**Created:** [December 14, 2020, 12:58am UTC](https://community.mp3tag.de/t/ws-apple-music/51184 "2020-12-14T00:58:26Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [December 14, 2020, 12:58am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/1 "2020-12-14T00:58:26Z")

</div>

I was tired of the old iTunes scripts so I decided to make new. One for Apple Music, and another for iTunes.

Apple Music 3 (Web)

[Apple Music for MP3Tag (Web) 3.21.zip](https://community.mp3tag.de/uploads/short-url/oVLh9CJhYjYVNHjq7cOYKjJcfkv.zip) (25.7 KB) (13-02-2026)

Apple Music 4 (API)  
For advanced users [Note that this requires running of a Python script]

[Apple Music Web Source 4.0b4.zip](https://community.mp3tag.de/uploads/short-url/lndA4SNF6nMM36azgsAmhcQgjWm.zip) (7.3 KB) (21-07-2024)

Apple Music Classical (Web)

[Apple Music Classical for MP3Tag (Web) 1.01.zip](https://community.mp3tag.de/uploads/short-url/wMkMSbvF0pJGnB1Hy8c9JpZrh5D.zip) (45.8 KB) (22-04-2026)

iTunes (API)

[iTunes API for MP3Tag 2.2.zip](https://community.mp3tag.de/uploads/short-url/w8LkHG7A4BrEAVbGTHs6ldK8NCX.zip) (43.0 KB) (10-03-2025)

localhost certificate

[localhost.zip](https://community.mp3tag.de/uploads/short-url/2xavq6dlnPa44lI9YXqhS5Xl8DS.zip) (2.8 KB) (28-07-2025)

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [December 15, 2020, 12:24pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/2 "2020-12-15T12:24:45Z")

</div>

The difference from the old iTunes scripts are that this is including two scripts, one is for the official iTunes API, but using the JSON parser instead of text based as earlier. It should be pretty safe to use at any time. I have also added a "Apple Music" parser, but it is not using Apple API, but rather exploring that Apple is adding most data inside a JSON structure in their web pages. How stable that will be, is yet to be seen, but it has remained this way for quite some time. What you will receive in addition to the official API is composer(s), curator comments, ISRC, work name, more detailed genres and label information etc. It is also possible to make more adjustments to the script, so you can make separate entries for the artists and composers. As well you could add all the urls to Apples various pages for each of them.

---

<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: [December 16, 2020, 6:56am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/3 "2020-12-16T06:56:53Z")

</div>

@AreDigg  
Since today your Apple Music scripts don't work here anymore.  
Sometimes the list of search results appears and after selecting an album MP3Tag says:  
"Sorry, no entries are matching your search criteria".  
Sometimes its says this at once without showing the search results window.

The iTunes API v1.src still works.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [December 16, 2020, 1:04pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/4 "2020-12-16T13:04:54Z")

</div>

Yeah, I see that. Apple have changed the entire infrastructure of the Apple Music web now. I guess that is the price when using undocumented stuff.

I have made some changes and bugfixes on the iTunes script.  
[iTunes API for Mp3Tag 1.4.zip](https://community.mp3tag.de/uploads/short-url/pgCaoTPYvTEB69Ix2GfbMYiTjhY.zip) (32.4 KB)

---

<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: [December 16, 2020, 2:18pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/5 "2020-12-16T14:18:13Z")

</div>

> [@AreDigg](#):
>
> guess that is the price when using undocumented stuff.

So will you give up the Apple script because it may change too often?

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [December 16, 2020, 3:09pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/6 "2020-12-16T15:09:47Z")

</div>

> [@poster](#):
>
> So will you give up the Apple script because it may change too often?

No, but as it is now it require an access token to use the api. And that would require me to create my own app, as it will be linked to my Apple account. It look like they have made the same change for the web interface as well now. Not sure it is possible to get the data in a trivial way the limited script interface gives.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [December 18, 2020, 5:41pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/7 "2020-12-18T17:41:54Z")

</div>

New update; some language, bug fixes, etc.  
[iTunes API for Mp3Tag 1.5.zip](https://community.mp3tag.de/uploads/short-url/iNek56hiAxEtRXEAnxWmRy0563F.zip) (33.6 KB)

---

<div class="post-metadata">

### Author: ![taggert](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@taggert](https://community.mp3tag.de/u/taggert)
#### Post date: [January 2, 2021, 9:45pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/8 "2021-01-02T21:45:03Z")

</div>

Thanks for this Apple Music script! It meets my needs almost exactly! I have been able to tweak it a bit here and there to support my specific use cases.

A request - could you post a formatted example of the raw data, if you have one? I would like to see if there is any additional data available that might prove useful. Atom's json prettify doesn't seem to be able to handle the raw data, not matter how much I try to massage it.

Thanks again for a great script!

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [January 2, 2021, 10:52pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/9 "2021-01-02T22:52:59Z")

</div>

For some reason if i update the files with your ws and then update them again istead of the album it appears this :  
 ![](https://community.mp3tag.de/uploads/default/original/2X/8/8bd51408124812ead83b16b4348a9fd1cfabd5e1.png)

i think its the PLID tag.

Also something is wrong here:  
 ![](https://community.mp3tag.de/uploads/default/original/2X/5/52f4225f4bf4b20a9dd6ace3339c0627801b9d00.png)

thank you for your ws.

---

<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: [January 3, 2021, 6:38am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/10 "2021-01-03T06:38:09Z")

</div>

> [@poster](#):
>
> Since today your Apple Music scripts don't work here anymore.

> [@AreDigg](#):
>
> No, but as it is now it require an access token to use the api. And that would require me to create my own app, as it will be linked to my Apple account.

What happened in the meantime?  
I tried the **Apple** script today again and it micraculously works again.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [January 3, 2021, 6:29pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/12 "2021-01-03T18:29:27Z")

</div>

> [@poster](#):
>
> What happened in the meantime?  
> I tried the **Apple** script today again and it micraculously works again.

That is interesting, it means Apple changed its web interface back to the old one. Why is that is a good question, and if they will keep it going forward, or just temporary.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [January 3, 2021, 6:36pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/13 "2021-01-03T18:36:08Z")

</div>

> [@Romano](#):
>
> i think its the PLID tag.
> 
> thank you for your ws.

Yes it is by design about the plid, it should pull up the same album by searching on the playlist id.

The movement name and work are just more a hack for my classical albums, it just put the first part before a colon to the work, and the rest to the movement. 95% of classical music on iTunes is formatted like this. It will be a bit funky if there are ":" in normal track names, but not sure of a good solution.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [January 3, 2021, 6:42pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/14 "2021-01-03T18:42:33Z")

</div>

> [@taggert](#):
>
> A request - could you post a formatted example of the raw data, if you have one? I would like to see if there is any additional data available that might prove useful. Atom's json prettify doesn't seem to be able to handle the raw data, not matter how much I try to massage it.

I can post it when I get the time, it varies also a bit depending on type of album and genre. You can also look at the script what I did to get the json properly.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [January 5, 2021, 12:44pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/15 "2021-01-05T12:44:46Z")

</div>

> [@taggert](#):
>
> A request - could you post a formatted example of the raw data, if you have one? I would like to see if there is any additional data available that might prove useful. Atom's json prettify doesn't seem to be able to handle the raw data, not matter how much I try to massage it.

Here is one example

> **[AM Pretty](https://jsonformatter.org/json-pretty-print/c52060)**

Added new versions of the scripts, only minor changes.

[Apple Music for Mp3Tag 1.3.zip](https://community.mp3tag.de/uploads/short-url/4NOLymVWtG5UYlBNuYNT18VtWVY.zip) (32.8 KB) [iTunes API for Mp3Tag 1.6.zip](https://community.mp3tag.de/uploads/short-url/a8aUeX0KQ3W6iy8rlFHU1OnLt1y.zip) (33.6 KB)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 9, 2021, 7:25am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/17 "2021-01-09T07:25:17Z")

</div>

2 posts were split to a new topic: [How to use custom tag source](https://community.mp3tag.de/t/how-to-use-custom-tag-source/51517)

---

<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: [January 12, 2021, 8:04am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/18 "2021-01-12T08:04:19Z")

</div>

Here's an album that does not give complete results with the Apple Music Script:  
[https://music.apple.com/us/album/and-another-thing/125737874](https://music.apple.com/us/album/and-another-thing/125737874)  
Maybe you can find the reason and fix it.

Is is possible to add a total-disks feature,  
i.e 1/2, 2/3, 3/3 for the discnumer-field?

---

<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: [January 13, 2021, 5:52am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/19 "2021-01-13T05:52:08Z")

</div>

Till yesterday the Apple Music Script principally worked, since today it stopped working with all albums I tested.  
The search and the display works till the first window (list of albums), the second window (album contents) is empty.

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [January 13, 2021, 5:52pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/20 "2021-01-13T17:52:25Z")

</div>

New version out

[Apple Music for Mp3Tag 1.4.zip](https://community.mp3tag.de/uploads/short-url/eZc1pCMDs3JlQ3Q3XJfnuCmhhA3.zip) (35.0 KB)

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [January 13, 2021, 5:57pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/21 "2021-01-13T17:57:24Z")

</div>

> [@poster](#):
>
> Here's an album that does not give complete results with the Apple Music Script:  
> [https://music.apple.com/us/album/and-another-thing/125737874](https://music.apple.com/us/album/and-another-thing/125737874)  
> Maybe you can find the reason and fix it.
> 
> Is is possible to add a total-disks feature,  
> i.e 1/2, 2/3, 3/3 for the discnumer-field?

Check if it works for you now. For the other features, the script only takes the information that is available from Apple. But possibly can make another script to recalculate the data.

---

<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: [January 14, 2021, 9:13am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/22 "2021-01-14T09:13:35Z")

</div>

> [@AreDigg](#):
>
> Check if it works for you now.

Thanks AreDigg. The script works again.

There is something that maybe a general dilemma in getting composer and lyricist.  
I don't know how the information on the Apple-site is structured, i.e. if they distinguish between both, but I noticed that with your script both seem to be always combined in the field COMPOSER.

@vikaesar has made a Deezer script:  
[https://community.mp3tag.de/t/ws-deezer/45537](https://community.mp3tag.de/t/ws-deezer/45537)  
and distinguishes between COMPOSER and LYRICIST. Where the websource is maybe not so clear he seems to use INVOLVEDPEOPLE to combine these.

[Next page](https://community.mp3tag.de/t/ws-apple-music/51184.md?page=2)
