ascrookes
ascrookes

Reputation: 433

Spotify API track request with more artist details

Is it possible to make a request to get a spotify track and also request that the artist object contains their avatar? Sample request https://api.spotify.com/v1/tracks/60EtWSoDRJSFmg99MKZi0x Is it possible to get the artist's avatar url in the artist object?

Upvotes: 1

Views: 193

Answers (1)

jooon
jooon

Reputation: 2031

No. You need to make another request. Embedded artist objects (in tracks and albums) all seem to be of the simplified type, which do not include images of the artist. See: https://developer.spotify.com/web-api/object-model/

  1. Fetch https://api.spotify.com/v1/tracks/60EtWSoDRJSFmg99MKZi0x
  2. Parse response
  3. Fetch https://api.spotify.com/v1/artists/49gaZqfow2v8EEQmjGyEIw

Upvotes: 1

Related Questions