Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Music API - How to get user identifier?

I am trying to retrieve the user's information after getting the Music Token from the Apple Music API. It seems that the /me endpoint is not available for queries other than the storefront (https://api.music.apple.com/v1/me/storefront).

Problem is, I need to identify each user with a unique ID, so I need to retrieve any good information to do that (for example, the email address could be a good starting point).

From the Apple Music API developer page, I can't find any endpoint to do so. Is there something I am missing?

Thank you :)

like image 873
Babbo Natale Avatar asked Dec 02 '19 14:12

Babbo Natale


People also ask

Does Apple Music have a public API?

Use Apple Music API to access information about media in the Apple Music Catalog and a user's personal iCloud Music Library. Apple Music Catalog includes all resources available in Apple Music.

How do I get Apple Music data?

To start, head over to privacy.apple.com in your mobile browser. Sign in with the Apple ID you use for Apple Music, and complete any authentication required to sign in. Once approved, tap "Request a copy of your data" under "Get a copy of your data," then tap the checkmark next to "Apple Media Services information."

Is Apple Music API free?

Price: The API is offered free to participants in the Apple's Affiliate Program, which allows them to earn commissions on any qualifying sales. Popularity: Apple Music is a popular service around the world, especially for iOS users.


1 Answers

No, you're not missing anything. It's really frustrating that you can't get any user data from the api, because it probably means you'll have to also provide another sign-on method like Google or email/password to get information. Apple has just released its own SSO here, but I think the user would still have to authenticate that and MusicKit.

like image 198
Logan George Avatar answered Nov 11 '22 00:11

Logan George