getArtistAlbums

abstract suspend fun getArtistAlbums(id: String, includeGroups: List<String> = listOf("album"), market: String? = null, limit: Int = 20, offset: Int = 0): SpotifyApiResponse<Albums, ErrorBody>(source)

Get artist albums API returns all the albums of the artist. This is a paginated API.

offset is the page you are requesting for. Initially it will be 0.

You will have to increment it for subsequent pages.

You can know if there are more pages from Albums.isNext.

See the Spotify doc.

Return

Albums when success and ErrorBody when error.

Parameters

id
includeGroups
market
limit
offset