# \[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:** 18

<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:** [November 12, 2023, 3:57pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/367 "2023-11-12T15:57:20Z")

</div>

> [@taggert](#):
>
> I was wondering if it is possible to pull a page per track and if so has anyone tried pulling this data yet?

It is the same data that is available from by 4.0 version. But to include it in the previous version requires a second load of a web page per track, which MP3Tag does not support.

---

<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:** [November 12, 2023, 5:22pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/368 "2023-11-12T17:22:58Z")

</div>

Awesome! I didn't realize the 4.0 script was already pulling it. I'll have to take a look. Thanks!.

---

<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:** [November 15, 2023, 6:21pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/369 "2023-11-15T18:21:11Z")

</div>

I uploaded a new version for the 4.0. I have added a certificate and key for use on your local machine, it is valid for a month. So it should be possible to run the python script.  
It is not CA signed, so you will likely have to authorize it in your OS.  
If you have an Apple Music media-user-token you can add it in the Python script, so you can get the lyrics as well.

---

<div class="post-metadata">

**Author:** ![Reaperabx](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reaperabx/32/12672_2.png) [@Reaperabx](https://community.mp3tag.de/u/Reaperabx)\
**Post date:** [November 17, 2023, 8:15am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/370 "2023-11-17T08:15:15Z")

</div>

@AreDigg we are using the script but most of them dont bother to post or reply here. If you are really leaving this api project ,would you mind giving us a detail steps on how to setup and update the api? i am learning react and i wish to contribute but its gona take some months to learn to do anything with react(since im a beginner) .

---

<div class="post-metadata">

**Author:** ![Zyntaxyz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/53a042/32.png) [@Zyntaxyz](https://community.mp3tag.de/u/Zyntaxyz)\
**Post date:** [November 18, 2023, 8:27pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/371 "2023-11-18T20:27:57Z")

</div>

i added my media user token to the python script but i don't see an option to download or get the lyrics, i'm missing something? and if it's possible download lyrics as lrc instead ttml

---

<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:** [November 19, 2023, 3:22pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/372 "2023-11-19T15:22:49Z")

</div>

> [@Zyntaxyz](#):
>
> i added my media user token to the python script but i don't see an option to download or get the lyrics, i'm missing something?

For now the script will copy the data received straight to the `UNSYNCEDLYRICS` tag. You will also have to edit line 6 to the local store that your account "belongs". So if your Apple Music was signed up in Germany, you will have to change `us` to `de`.

---

<div class="post-metadata">

**Author:** ![Zyntaxyz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/53a042/32.png) [@Zyntaxyz](https://community.mp3tag.de/u/Zyntaxyz)\
**Post date:** [November 19, 2023, 5:35pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/373 "2023-11-19T17:35:06Z")

</div>

Got it, thanks for your reply and for share a certificate, finally I can edit composer and production tags much quicker

---

<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:** [November 21, 2023, 8:57am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/374 "2023-11-21T08:57:01Z")

</div>

@AreDigg  
Apple Music v3.10  
I did not tag for some time and so not used your apple script for some time too..  
I notice now, that the script gives me no result for ALBUMARTIST anymore.  
The iTunes API script still delivers ALBUMARTIST

---

<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:** [November 21, 2023, 11:09am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/375 "2023-11-21T11:09:18Z")

</div>

It does if you don't check the use natural title in the settings. Apple removed the other tag I used for natural names, but I will make a change so it should still work.

---

<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:** [November 21, 2023, 8:33pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/376 "2023-11-21T20:33:19Z")

</div>

Updated the v3 script, with some prefs and fixes

---

<div class="post-metadata">

**Author:** ![djdizzle](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ed8c4c/32.png) [@djdizzle](https://community.mp3tag.de/u/djdizzle)\
**Post date:** [November 22, 2023, 3:47am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/377 "2023-11-22T03:47:34Z")

</div>

Using the iTunes API web source, is there a way to trim the RELEASETIME tag to YYYY-MM-DD directly in the script?

---

<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:** [November 22, 2023, 6:42am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/378 "2023-11-22T06:42:46Z")

</div>

I get a syntax error in the settings  
The log says:  
`ERROR(Settings): expected '"' in object, got '}' (125)`

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 22, 2023, 6:55am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/379 "2023-11-22T06:55:32Z")

</div>

I'm also receiving the same error message.

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 22, 2023, 7:05am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/380 "2023-11-22T07:05:23Z")

</div>

For whatever reason, this script just can't handle any albums whose `OutputTo "ALBUMARTIST"` is "Various Artists." I don't get an error message or anything. The script simply completely ignores it. This only occurs with "Various Artists"; explicitly identified artists go through as normal.  
Additionally, while it's very easy to create an `OutputTo "ARTISTSORT"` and `OutputTo "COMPOSERSORT"`, I have absolutely no clue how to get `OutputTo "ALBUMARTISTSORT"` to work. Can anyone help me with that?

---

<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:** [November 22, 2023, 9:40am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/381 "2023-11-22T09:40:21Z")

</div>

> [@poster](#):
>
> I get a syntax error in the settings

> [@mirogeorgiev97](#):
>
> I'm also receiving the same error message.

This is because of some small syntax errors in `&Apple Music#Settings….settings`. Please see a corrected version attached to this post with removed trailing comma at lines 142, 206, 270, 334, and 398.

[&Apple Music#Settings….settings.zip](https://community.mp3tag.de/uploads/short-url/h8CltBia3KgWdsWGg1rtv6mu66.zip) (3.4 KB)

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 22, 2023, 9:41am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/382 "2023-11-22T09:41:37Z")

</div>

Thank you so much! 🙏

---

<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:** [November 22, 2023, 11:02am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/383 "2023-11-22T11:02:47Z")

</div>

Thanks for spotting this, I have now uploaded a fixed version. Before it was easily to spot errors in the JSON (error message, or no settings at all), but now I got nothing. But I guess I will use a validator before uploading going forward.

---

<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:** [November 22, 2023, 11:06am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/384 "2023-11-22T11:06:09Z")

</div>

> [@djdizzle](#):
>
> Using the iTunes API web source, is there a way to trim the RELEASETIME tag to YYYY-MM-DD directly in the script?

You can where it is writing to the tag use `SayNChars 10` instead of `SayRest`.

---

<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:** [November 22, 2023, 11:09am UTC](https://community.mp3tag.de/t/ws-apple-music/51184/385 "2023-11-22T11:09:20Z")

</div>

> [@mirogeorgiev97](#):
>
> I have absolutely no clue how to get `OutputTo "ALBUMARTISTSORT"` to work.

What is the problem you have?

---

<div class="post-metadata">

**Author:** ![mirogeorgiev97](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mirogeorgiev97/32/9472_2.png) [@mirogeorgiev97](https://community.mp3tag.de/u/mirogeorgiev97)\
**Post date:** [November 22, 2023, 4:35pm UTC](https://community.mp3tag.de/t/ws-apple-music/51184/386 "2023-11-22T16:35:02Z")

</div>

All right: if all I want to do to get `OutputTo "COMPOSERSORT"` and `OutputTo "ARTISTSORT"` to work is simply to copy and paste like so:

```auto
> OutputTo "COMPOSER"
> json_select "composer"
> SayRest
> Say "|"
> 
> OutputTo "COMPOSERSORT"
> json_select "composer"
> SayRest
> Say "|"

```

and

```auto
> OutputTo "ARTIST"
> json_select "artistName"
> SayRest
> Say "|"
> 
> OutputTo "ARTISTSORT"
> json_select "artistName"
> SayRest
> Say "|"

```

What equivalent action do I take to get `OutputTo "ALBUMARTISTSORT"` to work?

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

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