ArtistApi

class ArtistApi(api: GenericSpotifyApi) : SpotifyEndpoint

Endpoints for retrieving information about one or more artists from the Spotify catalog.

Api Reference

Constructors

ArtistApi
Link copied to clipboard
common
fun ArtistApi(api: GenericSpotifyApi)

Types

AlbumInclusionStrategy
Link copied to clipboard
common
Describes object types to include when finding albumsApi Reference

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getArtist
Link copied to clipboard
common
suspend fun getArtist(artist: String): Artist?
Get Spotify catalog information for a single artist identified by their unique Spotify ID.
getArtistAlbums
Link copied to clipboard
common
suspend fun getArtistAlbums(artist: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null, vararg include: ArtistApi.AlbumInclusionStrategy): PagingObject<SimpleAlbum>
Get Spotify catalog information about an artist’s albums.
getArtists
Link copied to clipboard
common
suspend fun getArtists(vararg artists: String): List<Artist?>
Get Spotify catalog information for several artists based on their Spotify IDs.
getArtistTopTracks
Link copied to clipboard
common
suspend fun getArtistTopTracks(artist: String, market: Market = Market.US): List<Track>
Get Spotify catalog information about an artist’s top tracks by country.
getRelatedArtists
Link copied to clipboard
common
suspend fun getRelatedArtists(artist: String): List<Artist>
Get Spotify catalog information about artists similar to a given artist.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

api
Link copied to clipboard
common
val api: GenericSpotifyApi
cache
Link copied to clipboard
common
val cache: SpotifyCache

Sources

(source)
Link copied to clipboard