getArtistsAlbums

suspend fun getArtistsAlbums(id: String, includeGroups: List<IncludeGroup> = emptyList(), market: CountryCode? = null, pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<ArtistsAlbums>

Gets albums released by a Spotify artist.

Return

Wrapped Spotify API response with status code and parsed Spotify payload.

Parameters

id

Spotify ID of the target resource for this endpoint.

includeGroups

Album groups to include (album, single, appears_on, compilation).

market

Market (country) code used to localize and filter content.

pagingOptions

Paging options (limit, offset) used for paged endpoints.