Class

MusicKit.API

This class represents the Apple Music API.

Declaration

interface MusicKit.API

Topics

Instance Properties

library

An instance of the Cloud library.

storefrontId

The storefront used for making calls to the API.

Instance Methods

activities

Fetch one or more activites using their identifiers.

activity

Fetch an activity using its identifier.

addToLibrary

Add a catalog resource to a user's library.

album

Fetch an album using its identifier.

albums

Fetch one or more albums using their identifiers.

appleCurator

Fetch an Apple curator using its identifier.

appleCurators

Fetch one or more Apple curators using their identifiers.

artist

Fetch an artist using its identifier.

artists

Fetch one or more artists using their identifiers.

charts

Fetch one or more charts.

curator

Fetch a curator using its identifier.

curators

Fetch one or more curators using their identifiers.

genre

Fetch a genre using its identifier.

genres

Fetch one or more genres using their identifiers.

historyHeavyRotation

Fetch the resources in heavy rotation for the user.

musicVideo

Fetch a music video using its identifier.

musicVideos

Fetch one or more music videos using their identifiers.

playlist

Fetch a playlist using its identifier.

playlists

Fetch one or more playlists using their identifiers.

recentPlayed

Fetch the recently played resources for the user.

recommendation

Fetch a recommendation using its identifier.

recommendations

Fetch one or more recommendations using their identifiers.

search

Search the catalog using a query.

searchHints

Fetch the search term results for a hint.

song

Fetch a song using its identifier.

songs

Fetch one or more songs using their identifiers.

station

Fetch a station using its identifier.

stations

Fetch one or more stations using their identifiers.

storefront

Fetch a storefront using its identifier.

storefronts

Fetch one or more storefronts using their identifiers.