Apple Introduces Apple Music API in iOS 9.3 for Developers

Apple’s Affiliate Program Newsletter has started promoting a new Apple Music API, which the Cupertino company introduced alongside iOS 9.3. With it, third-party developers can implement in their apps interesting functionality for Apple Music subscribers, including playing tracks, adding songs to a user’s music library and queuing up songs based on a song ID for playback.

The new API was initially introduced in iOS 9.3, and it’s already been built into some third-party music apps, like Shazam.

Here’s what Apple says developers can expect:
  • Developers can see if a user is currently a member
  • Developers can see which country the users account is based
  • Developers can queue up the next song or songs based on a song ID for playback
  • Developers can inspect playlists already in My Music or create a new playlists with a title and description (see App Store Review Guidelines for limitation)
“We are excited to announce that Apple Music API is now available on iOS 9.3,” writes Apple. The API lets developers directly control Apple Music playback for paying members,"

The company argues that integrating these features in third-party apps provides “a superior user experience”. Certain limitations apply.

For instance, apps using the Apple Music API that trigger playback without explicit user action will be rejected, as will be those who do not expose and respect iOS’s standard media controls such as play, pause and skip.

Shazam, for instance, pushed an update to its iOS app last month which brought out the ability to add songs to an Apple Music playlist. As depicted on the screenshots below courtesy of MacRumors, after connecting your Apple Music account in Shazam’s settings, any song identified on the service can be added to your Apple Music playlist by tapping the plus icon in the upper right of the app.


blog comments powered by Disqus
Octofinder Blog Catalog