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

component10
Link copied to clipboard
common
operator fun component10(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): ArtistUri
component5
Link copied to clipboard
common
operator fun component5(): Followers
component6
Link copied to clipboard
common
operator fun component6(): List<String>
component7
Link copied to clipboard
common
operator fun component7(): List<SpotifyImage>
component8
Link copied to clipboard
common
operator fun component8(): String
component9
Link copied to clipboard
common
operator fun component9(): Int
copy
Link copied to clipboard
common
fun copy(externalUrlsString: Map<String, String>, href: String, id: String, uri: ArtistUri, followers: Followers, genres: List<String>, images: List<SpotifyImage>, name: String, popularity: Int, type: String): Artist
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

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

(source)
Link copied to clipboard