Artist

@Serializable
data class Artist(externalUrlsString: Map<String, String>, val href: String, val id: String, val uri: ArtistUri, val followers: Followers, val genres: List<String>, val images: List<SpotifyImage>? = null, val name: String? = null, val popularity: Double, val type: String) : CoreObject(source)

Represents an Artist (distinct from a regular user) on Spotify

Parameters

followers

Information about the followers of the artist.

genres

A list of the genres the artist is associated with. For example: "Prog Rock" , "Post-Grunge". (If not yet classified, the array is empty.)

href

A link to the Web API endpoint providing full details of the artist.

id

The Spotify ID for the artist.

images

Images of the artist in various sizes, widest first.

name

The name of the artist

popularity

The popularity of the artist. The value will be between 0 and 100, with 100 being the most popular. The artist’s popularity is calculated from the popularity of all the artist’s tracks.

type

The object type: "artist"

Constructors

Link copied to clipboard
constructor(externalUrlsString: Map<String, String>, href: String, id: String, uri: ArtistUri, followers: Followers, genres: List<String>, images: List<SpotifyImage>? = null, name: String? = null, popularity: Double, type: String)

Properties

Link copied to clipboard
@Transient
lateinit var api: GenericSpotifyApi

The API client associated with the request

Link copied to clipboard

Known external URLs for this object

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val href: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
val images: List<SpotifyImage>? = null
Link copied to clipboard
val name: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val uri: ArtistUri

The URI associated with the object

Functions