Reverse Engineering Apple Music API
As a part of Dynamic Island on the Web, I reverse-engineered Apple Music API to get the undocumented Personal Token. It doesn't mention how to get that token! Apple Music API DX is way worse than Spotify's.
Registering for Apple Developer Key
- Create an Identifier for your Service.
- Register a Key.
Creating Apple Music API Key
- Used pelauimagineering/apple-music-token-generator to get the token.
Using MusicKit to extract the User Token
- By creating a demo website, I could authenticate with my Apple ID and get the User Token.
Testing the API Key
Making it into a GitHub Actions
- anaclumos/now-playing
- This took me an hour to figure out...