Artist Api
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
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
abstract suspend fun getArtistTopTracks(id: String, market: String?): ApiResponse<GetArtistTopTracksResponse, ErrorBody>
Get artist top tracks API returns the top tracks of the artist.
Link copied to clipboard
abstract suspend fun getRelatedArtists(id: String): ApiResponse<GetRelatedArtistsResponse, ErrorBody>
Get related artists API returns the information about artists similar to the given artist.