Apple Music API
Integrate streaming music with catalog and personal content.
Overview
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.
iCloud Music Library contains only those resources the user adds to their personal library. For example, it contains items from Apple Music, songs purchased from iTunes Store, and imports from discs and other apps. This library can include content that’s not in the Apple Music Catalog.
Use this API to retrieve information about albums, songs, artists, playlists, music videos, Apple Music stations, ratings, charts, recommendations, and the user’s most-recently played content. With proper authorization from the user, you can also create or modify playlists and apply ratings to the user’s content.
Topics
Essentials
Generating Developer TokensUser Authentication for MusicKitHandling Requests and ResponsesHandling Resource Representation and RelationshipsStorefronts and LocalizationCommon ObjectsManaging Content Ratings, Alternate Versions, and EquivalenciesFetching Resources by Page
Albums, Artists, Songs, and Videos
Playlists and Stations
Search
Ratings, Genres, and Charts
Activities, Curators, and Record Labels
Adding a resource to favorites
Getting a user’s replay data
Recommendations and history
Fetching Multiple Resource Types
Get Multiple Catalog Resources Using Resource-Typed ID ParametersGet Multiple Library Resources Using Resource-Typed ID Parameters