Apple has introduced a new Apple Music API, which allows developers to control Apple Music playback within their own apps. Developers can use the API to do things like queue up a new song, or create a new playlist with its own title and description.
According to Apple, the Apple Music API allows for the following:
- 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)
Apple has created a number of guidelines that developers should follow regarding intellectual property, in-app purchases, and more. For instance, apps using the new API will need to use the standard media controls. Additionally, you will not be able to monetize access to Apple Music, either through in-app purchase, advertising, or other means.