getArtistTopTracks

suspend fun getArtistTopTracks(artist: String, market: Market = Market.US): List<Track>(source)

Get Spotify catalog information about an artist’s top tracks by country.

Contains only up to 10 tracks with no CursorBasedPagingObject to go between top track pages. Thus, only the top 10 are exposed

Api Reference

Return

List of the top Tracks of an artist in the given market

Parameters

artist

The id or uri for the artist.

market

The country (Market) to search. Unlike endpoints with optional Track Relinking, the Market is not optional.

Throws

if tracks are not available in the specified Market or the artist is not found