ArtistApi

internal interface ArtistApi(source)

Artist API interface provides methods using which one can get information about the artist. You can get an artists top tracks, albums and also other related artists.

Each API returns ApiResponse.

Functions

Link copied to clipboard
abstract suspend fun getArtist(id: String): ApiResponse<ArtistInfo, ErrorBody>

Get artist API returns the artist information from the given ID.

Link copied to clipboard
abstract suspend fun getArtistAlbums(id: String, includeGroups: List<String>, market: String?, limit: Int, offset: Int): ApiResponse<AlbumResponse, ErrorBody>

Get artist albums API returns the albums, single, features and compilations of the artist.

Link copied to clipboard

Get artist top tracks API returns the top tracks of the artist.

Link copied to clipboard

Get related artists API returns the information about artists similar to the given artist.