SpotifyApiSpotify LogoJS

Artist src/structures/Artist.ts#L65

Spotify api's user object.


Properties:

externalURL genres id images name popularity totalFollowers type uri

Methods:

makeCodeImage

constructor(data) src/structures/Artist.ts#L65

No documentation found.

NameTypeDescription
dataArtist | SimplifiedArtistThe raw data received from the api.

.externalURL src/structures/Artist.ts#L18

Type:

ExternalUrl

Known external URLs for this artist.

.genres src/structures/Artist.ts#L47
OPTIONAL

Type:

string[]

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

.id src/structures/Artist.ts#L23

Type:

string

The Spotify ID for the artist.

.images src/structures/Artist.ts#L52
OPTIONAL

Type:

Image[]

Images of the artist in various sizes, widest first.

.name src/structures/Artist.ts#L27

Type:

string

The name of the artist.

.popularity src/structures/Artist.ts#L57
OPTIONAL

Type:

number

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.

.totalFollowers src/structures/Artist.ts#L42
OPTIONAL

Type:

number

Total number of followers of the artist.

.type src/structures/Artist.ts#L32

Type:

SpotifyType

The object type: "artist".

.uri src/structures/Artist.ts#L37

Type:

string

The Spotify URI for the artist.

.makeCodeImage(color) src/structures/Artist.ts#L84

Returns a code image url from the spotify uri.

Returns:

string

Parameters:

NameTypeDescription
colorstringThe color code in hex.