MusicKit

MusicKit lets users play Apple Music and their local music library from your app or website. When users provide permission to access their Apple Music account, they can use your app or website to create playlists, add songs to their library, and play any of the millions of songs in the Apple Music catalog. If your app detects that the user is not yet an Apple Music member, you can offer a trial membership from within your app.

An iPad and iPhone showing a music playlist within an app.

Apple Music API

The Apple Music API gives you full access to the Apple Music catalog. Search for songs, albums, artists, playlists, music videos, stations, and charts from a single API. Surface personalized recommendations, and retrieve a person's recently played content and latest Apple Music Replay summary, complete with top songs, albums, and artists.

With user authorization, you can go further: add songs to a person's favorites, filter their library by favorite artists, check whether an artist is already a favorite, and create or modify playlists. The API is available for Apple platforms, Android, and the web.

Get started. To communicate with the Apple Music service, visit Certificates, Identifiers & Profiles to create a media identifier and private key to sign your developer tokens.

Apple platforms

Get details on how to easily build apps for iOS, iPadOS, macOS, tvOS, visionOS, and watchOS that integrate Apple Music using the Swift-based MusicKit framework.

Find content in the Apple Music catalog or in the user’s music library, and control playback. Check if a user has an active Apple Music subscription before playing music or let them start a trial membership directly within your app. Find songs or add songs to the user’s music library with their permission.

Apple Music Feed

Use the Apple Music Feed to retrieve a rich set of metadata of the Apple Music catalog. It’s available via a new API endpoint to fully incorporate aspects of the catalog into your website or app.

Get started. To access the Apple Music Feed, visit Certificates, Identifiers & Profiles to create a media identifier and private key to sign your developer tokens.

Request the music catalog. Tap into rich information on millions of songs, artists, albums, and more.

Beta

Web

Apple Music content can play directly in the browser. With MusicKit on the Web, users can stream songs, music videos, and radio from Apple Music on your website using MusicKit Web Components or a player you’ve customized using JavaScript.

Android

MusicKit for Android lets you build native Apple Music features into your Android app. Libraries are available to let users sign in to their Apple Music account and play music directly from your app.

Authentication for Apple Music. The Authentication library provides a way to get access tokens to play music or make calls to the MusicKit Web APIs. This library prompts the user to sign in to Apple Music and, if Apple Music isn’t installed on the device, helps the user download it before returning to your app.

Media Playback for Apple Music. The Media Playback library can be used to play songs, albums, and playlists on Apple Music without leaving your app. Your app can also control music playback from the Lock screen or the background.