Exploring Everything MusicKit and Apple Music API.

The only blog for posts on MusicKit and Apple Music API.

Book

Exploring MusicKit and Apple Music API

Unlock the full power of MusicKit & Apple Music APIs in your apps with the best guide! Use code musickit-blog for a limited-time 35% discount!

Exploring MusicKit: Adding Crossfade

Understanding how to use the new iOS 18 API for crossfading between music items.

Exploring MusicKit: Working with Nil Artworks

Understand how to workaround artworks with nil value

Exploring MusicKit: Adding Songs to Playlist

Understand how to add songs to a playlist using MusicLibrary class

Exploring MusicKit: User's Discovery Station

Understand how to fetch the user's Discovery Station with Apple Music API and MusicKit.

Exploring MusicKit: User's Personal Apple Music Station

Understand how to fetch a user's personal Apple Music station with Apple Music API and MusicKit.

Exploring MusicKit: Transient Item

Understanding the meaning of the transient item, errors related to it and using it correctly

Exploring MusicKit: Editing Playlists

Creating a custom `LibraryPlaylist` structure to edit user's playlists

Exploring MusicKit: Song Structure with Code Snippets

Understanding the fundamental music item that is present in almost every other music item.

Exploring MusicKit: Gradient Background

An attempt to add an animated gradient background similar to Apple Music

Exploring MusicKit: Audio Variants

Exploring the audio variants and how to show them in the app using MusicKit

Exploring MusicKit: Artist Artwork

Get the artist artwork from iTunes website using Open Graph meta tags

Exploring MusicKit: Permissions

Adding the required key for accessing Apple Music and asking the user to give access.