Artists

Artists

new Artists(spotify)

Creates a new artists instance
Source:
Parameters:
Name Type Description
spotify Spotify

Methods

getArtist(id)

Get Spotify catalog information for a single artist identified by their unique Spotify ID.
Source:
Parameters:
Name Type Description
id String artist id

getArtistAlbums(id)

Get Spotify catalog information about an artist’s albums. Optional parameters can be specified in the query string to filter and sort the response.
Source:
Parameters:
Name Type Description
id String artist id

getArtists(ids)

Get Spotify catalog information for several artists based on their Spotify IDs.
Source:
Parameters:
Name Type Description
ids Array array of artist ids

getArtistTopTracks(id, country)

Get Spotify catalog information about an artist’s top tracks by country.
Source:
Parameters:
Name Type Default Description
id String artist id
country String US An ISO 3166-1 alpha-2 country code

getRelatedArtists(id)

Get Spotify catalog information about artists similar to a given artist. Similarity is based on analysis of the Spotify community’s listening history.
Source:
Parameters:
Name Type Description
id String artist id