Artist

data class Artist(externalUrlsString: Map<String, String>, href: String, id: String, uri: ArtistUri, followers: Followers, genres: List<String>, images: List<SpotifyImage>, name: String, popularity: Int, type: String) : CoreObject

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

Artist
Link copied to clipboard
common
fun Artist(externalUrlsString: Map<String, String>, href: String, id: String, uri: ArtistUri, followers: Followers, genres: List<String>, images: List<SpotifyImage>, name: String, popularity: Int, type: String)
Information about the followers of the artist.

Functions

getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>

Properties

api
Link copied to clipboard
common
lateinit var api: GenericSpotifyApi
The API client associated with the request
externalUrls
Link copied to clipboard
common
val externalUrls: List<ExternalUrl>
Known external URLs for this object
followers
Link copied to clipboard
common
val followers: Followers
Information about the followers of the artist.
genres
Link copied to clipboard
common
val genres: List<String>
A list of the genres the artist is associated with.
href
Link copied to clipboard
common
open override val href: String
A link to the Web API endpoint providing full details of the artist.
id
Link copied to clipboard
common
open override val id: String
The Spotify ID for the artist.
images
Link copied to clipboard
common
val images: List<SpotifyImage>
Images of the artist in various sizes, widest first.
name
Link copied to clipboard
common
val name: String
The name of the artist
popularity
Link copied to clipboard
common
val popularity: Int
The popularity of the artist.
type
Link copied to clipboard
common
val type: String
The object type: "artist"
uri
Link copied to clipboard
common
open override val uri: ArtistUri
The URI associated with the object

Sources

common source
Link copied to clipboard