Today Apple announced a new Apple Music API via its Affiliate Program Newsletter. According to Apple, the API:
…allows iOS apps to directly control Apple Music playback and more. We encourage affiliates to use the Apple Music API to provide a superior user experience by integrating music into their apps.
With the Apple Music API you can:
- See if a user is currently an Apple Music member
- See which country the user’s account is based in
- Queue up the next song or songs based on a song ID for playback
- Inspect playlists already in My Music or create a new playlist with a title and description (see App Store Review Guidelines for limitations).
The announcement coincides with the introduction of a new Apple Music Best Practices for Apple Developers page that serves as a hub for developer and affiliate program resources related to Apple Music. The page includes:
- App Review guidelines applicable to the Apple Music API, some of which are new.
- Links to developer documentation for the Apple Music APIs.
- A summary of Apple Music identity guidelines regarding the use of the Apple Music name, logos, and related matters, with a link to the more comprehensive Apple Music Identity Guidelines.
- Links to more information regarding the iTunes Affiliate Program.
- A link to the Apple Music Toolbox page for searching Apple Music in each of the 113 Apple Music countries by artist, song, album, playlist, Connect, curator, radio and music video, from which you can generate affiliate links.
One thing I’d like to see added to these tools is the ability to return search results for items like playlists using the iTunes Search API, which would allow developers to generate affiliate links to them programatically. Right now those links can only be generated from the web-based search tool in the Apple Music Toolbox. Nonetheless, it’s nice to see Apple Music being opened up to developers, and not surprising given the emphasis on services during Tuesday’s investor call.