getSavedTracks

suspend fun getSavedTracks(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SavedTrack>

Get a list of the songs saved in the current Spotify user’s ‘Your Music’ library.

Requires the SpotifyScope.USER_LIBRARY_READ scope

Api Reference

Return

PagingObject of SavedTrack ordered by position in library

Parameters

limit

The number of objects to return. Default: 50 (or api limit). Minimum: 1. Maximum: 50.

offset

The index of the first item to return. Default: 0. Use with limit to get the next set of items

market

Provide this parameter if you want the list of returned items to be relevant to a particular country. If omitted, the returned items will be relevant to all countries.

Sources

common source
Link copied to clipboard