A
Apple Music API
Details
- URL
-
https://api.music.apple.com/v1 - Docs
- https://developer.apple.com/documentation/applemusicapi/
Authentication
Authorization: Bearer <credential> Join the Apple Developer Program if needed, then in Certificates, Identifiers & Profiles create a Media Services identifier and private key as directed by MusicKit and Generating Developer Tokens. Use that private key to sign your own JWT developer token, then send it as Authorization: Bearer <token> to Apple Music API.
Apple Music developer token
Authorization: Bearer <credential> + Apple Music user token Music-User-Token: <credential> discovered First obtain a developer token, then use MusicKit's user auth flow described in User Authentication for MusicKit. MusicKit prompts the person to sign in to Apple Music and authorize access; your app or website then receives a Music User Token to send in Music-User-Token for user-library and personalized endpoints.