# Apple Music

> Search Apple Music beside iTunes, open its songs, albums, playlists and artists from a link, and find synced lyrics.

- Id: `songstress.apple-music`
- Publisher: songstress (Official)
- Version: 1.0.2, published 7 days ago
- Category: Sources
- Works in: Web, desktop, iPhone and Android
- Licence: LGPL-3.0-only
- Downloads: 5 this week, 39 all time
- Rating: No ratings yet
- Source: https://github.com/pacholoamit/songstress-extensions
- Help: https://github.com/pacholoamit/songstress-extensions/issues
- Page: https://songstress.app/extensions/songstress.apple-music/

## Install

Manage › Extensions › Browse › Apple Music

An admin installs it from your own Songstress server. It comes in switched off, and runs once they have reviewed what it asks for.

## Description

Apple Music adds Apple's catalogue to Songstress's search. Songs, albums, playlists and artists from Apple Music appear beside what your library and iTunes find, and a music.apple.com link opens as its page in Songstress.

With an Apple Music subscription it also brings **synced lyrics**, line by line, and can add Apple's translation or a romanised pronunciation under each line.

Search and links need no account. Only lyrics ask for your Media User Token.

## Use cases

- Find a release that isn't in your library yet, and add it.
- Open a music.apple.com link someone sent you.
- Sing along with synced lyrics, a translation under each line.
- Fill in a track's details from Apple's catalogue.

## How it works

Your server, never your phone or browser, asks music.apple.com for the token its web player uses, and keeps it until it expires. Searches, lookups and lyrics go from your server to Apple's catalogue with that token.

The **Storefront** setting picks the country whose catalogue is searched, and no VPN is needed. Lyrics use your *Media User Token*, kept as a secret on your server: on music.apple.com, the browser console's `MusicKit.getInstance().musicUserToken`.

Its results sit beside Songstress's own sources, never in their place.

## What it asks for

- Network (music.apple.com, amp-api.music.apple.com and *.mzstatic.com): “Reach music.apple.com for its token, and Apple's catalogue and lyrics.”
- Sources: “Add Apple Music's results and lyrics beside Songstress's own.”
- Storage: “Keep the token music.apple.com hands out until it expires.”

## What it adds

- Four settings: Storefront, Media User Token, Lyrics translation, Lyrics pronunciation
- A source of search, songs by id or link, links, metadata and lyrics
