ClientPersonalizationApi

Endpoints for retrieving information about the user’s listening habits.

Api Reference

Constructors

Link copied to clipboard
constructor(api: GenericSpotifyApi)

Types

Link copied to clipboard

The time frame for which attribute affinities are computed.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun getTopArtists(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, timeRange: ClientPersonalizationApi.TimeRange? = null): PagingObject<Artist>

Get the current user’s top artists based on calculated affinity.

Link copied to clipboard
suspend fun getTopTracks(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, timeRange: ClientPersonalizationApi.TimeRange? = null): PagingObject<Track>

Get the current user’s top tracks based on calculated affinity.