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...