Exploring MusicKit and Apple Music API

Rudrank Riyam
5 ratings

During WWDC 2021, Apple announced MusicKit for Swift, which automatically generates the developer and user token for you and has most of the data models you used to create and decode yourself.

The framework makes it easier to work with Apple Music API and integrate it into your app.


There is hardly any content out there (read: none), and I am dependent on the information scattered around in Apple’s developer forum and the posts I write due to the lack of documentation.

I knew I wanted to have everything in one place to focus on working on my app Musadora, an Apple Music client, and you do not have to go around looking for answers.

The first part of the book has separate chapters to fill in the gap for the documentation, filled with examples so that you do not have to spend time experimenting with it yourself.

I hope this book provides value to you and your app, and you enjoy working with MusicKit and integrating Apple Music into your app!


"Thank you the documentation you give is so much more fruitful than Apple's documentation for MusicKit and it makes it a lot easier to integrate"

"Good luck with the Apple Music book, I hope it continues to go well for you. I have a project I’m working on now and it has really helped with that."

The book is divided into two parts where the first part acts as a reference guide filling the gap in the documentation and curating examples. This book currently consists of this reference guide only.

The second part will be an Apple Music clone app using the MusicKit for Swift. It will be available before WWDC free of cost to those who buy the book now.

This book contains 34 chapters divided into 7 sections.

These are:

Music Items

  • Introduction
  • Song
  • MusicVideo
  • Track
  • Album
  • Artist
  • Playlist
  • Curator
  • RecordLabel
  • RadioShow
  • Station
  • Genre
  • Chart

Music Item Attributes

  • ContentRating
  • EditorialNotes
  • PreviewAsset


  • Authorization
  • Requesting Authorization
  • Permission


  • Music Subscription
  • Subscription Offer
  • Subscription Offer Sheet

Requesting Data

  • MusicCatalogResourceRequest
  • MusicCatalogSearchRequest
  • MusicDataRequest


  • Artwork
  • ArtworkImage
  • Artist Artwork

Music Player

  • MusicPlayer
  • SystemMusicPlayer
  • ApplicationMusicPlayer
  • PlaybackStatus
  • RepeatMode
  • ShuffleMode

Coming Soon in Next Edition

  • Custom MusicLibraryResourceRequest
  • Custom MusicLibrarySearchRequest
  • Queue
60 sales
5 ratings
  • The book in PDF format

  • Size
    545 KB
  • Length
    140 pages
  • iOS
  • Swift
  • Xcode
  • The book in PDF format
  • Size545 KB
  • Length140 pages
  • iOS 15
  • Swift5.5
  • Xcode 13


(5 ratings)
5 stars
4 stars
3 stars
2 stars
1 star
Powered by


Exploring MusicKit and Apple Music API

Enter your info to complete your purchase


You'll be charged US$20.