getArtistAlbums

suspend fun getArtistAlbums(artist: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null, vararg include: ArtistApi.AlbumInclusionStrategy): PagingObject<SimpleAlbum>(source)

Get Spotify catalog information about an artist’s albums.

Api Reference

Return

PagingObject of SimpleAlbum objects

Parameters

artist

The artist id or uri

market

Supply this parameter to limit the response to one particular geographical market.

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

include

List of keywords that will be used to filter the response. If not supplied, all album groups will be returned.

Throws

if artist is not found, or filter parameters are illegal