Adding music to your app has never been so easy.

MusicKit on iOS lets users play Apple Music and their local music library natively from your apps and games. When a user provides permission to their Apple Music account, your app can 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 from within your app.

Watch "Introducing MusicKit"

From WWDC 2017

Get Started with MusicKit

Download the sample code and use the documentation below to see how easy it is to add Apple Music features in your iOS app.

Sample Code

This sample code demonstrates the capabilities of MusicKit, including accessing the Apple Music catalog and playing songs, albums, and playlists using Media Player.


Get details on how to build iOS apps that integrate with Apple Music using the Apple Music API, StoreKit, and Media Player frameworks.

Xcode 9 and iOS 11

Download iOS 11 beta and the latest beta of Xcode 9, which includes the iOS 11 SDK to build Apple Music features in your app today.

View beta downloads

Apple Music Affiliate Program

Earn affiliate commission on qualified memberships to Apple Music.

Learn more about the program

Discussion Forum

Ask questions and discuss MusicKit with Apple engineers and other developers.

View developer forum