Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Get Recently Played Tracks and Get Track are missing UPC, Popularity, and other info from Get Album

Get Recently Played Tracks and Get Track are missing UPC, Popularity, and other info from Get Album

https://developer.spotify.com/documentation/web-api/reference/get-recently-played 
https://developer.spotify.com/documentation/web-api/reference/get-an-album 
https://developer.spotify.com/documentation/web-api/reference/get-track 

When using the get-recently-played endpoint the tracks returned also have a bunch of info for their associated albums. However they do not contain the UPC or popularity of the album. This is frustrating for a project I am working on as ideally we'd like to use the UPC without having to separately call the Get Album endpoint for every single album just to grab a single string.

 

I understand this is due to the "external_ids" being part of the track data returned and not the album data. But since so much album data is already returned, it would be beneficial to include.

When using Get Track, this is all the data return about the album:

ShadowMonkey105_2-1736112981093.png

Ignoring the list of total tracks within the album, this is all the info returned by Get Album:

ShadowMonkey105_3-1736113041070.pngShadowMonkey105_4-1736113050232.png

I decided to open both API responses for Get Album and Get Track for "Cut to the Feeling" by Carly Rae Jepsen. This is the only information Get Album has that isn't in the album response of Get Track:

ShadowMonkey105_5-1736114162168.png

I understand not returning a list of all tracks in the album for a track each time Get Track is called. However, the remaining missing information is only the album copyright data, UPC code, album genres, album record label, and album popularity.

I think adding just these 16 lines of JSON response to the album of Get Track and Recently Played endpoint responses would not only improve the work for developers, but also reduce unnecessary API calls saving on network traffic to Spotify.

Reply
1 Reply

Hi @ShadowMonkey105 

 

Thanks for asking in the Community!

 

The reason for this behaviour is to reduce bandwidth. Most users don't need the detailed album information, so by excluding it, it makes a big difference.

 

To get the detailed album information, you can use the Get Several Albums endpoint.

 

I hope this help. If you have any further questions, feel free to ask.

 

Cheers!

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts