One Logo Pool Ball
MusicKit · IOS API REFERENCE

MusicPersonalRecommendationsRequest

struct · iOS 16.0+ · SDK 27.1

struct MusicPersonalRecommendationsRequest

A request that your app uses to fetch music recommendations based on the user’s library and listening history.

Members (7)

init · iOS 16.0+

init

TypeScript
static initRefreshing(recommendations: Array<MusicPersonalRecommendation>): MusicPersonalRecommendationsRequest
Swift declaration
init<S>(refreshing recommendations: S) where S : Sequence, S.Element == MusicPersonalRecommendation

Creates a request to fetch default personal recommendations for the user.

get · iOS 16.0+

limit

TypeScript
get limit(): (number) | null
Swift declaration
var limit: Int?

A limit for the number of recommendations to return in the personal recommendations response.

set · iOS 16.0+

limit

TypeScript
set limit(value: (number) | null)
Swift declaration
var limit: Int?

A limit for the number of recommendations to return in the personal recommendations response.

get · iOS 16.0+

offset

TypeScript
get offset(): (number) | null
Swift declaration
var offset: Int?

An offset for the request.

set · iOS 16.0+

offset

TypeScript
set offset(value: (number) | null)
Swift declaration
var offset: Int?

An offset for the request.

method · iOS 16.0+

response

TypeScript
response(): Promise<MusicPersonalRecommendationsResponse>
Swift declaration
func response() async throws -> MusicPersonalRecommendationsResponse

Fetches the music recommendations based on the user’s library and listening history.

init · iOS 16.0+

init

TypeScript
static init(): MusicPersonalRecommendationsRequest
Swift declaration
init()

Creates a request to fetch default personal recommendations for the user.

Skipped declarations

No declarations were skipped in this snapshot.

All MusicKit types →