Announcements

Help Wizard

Step 1

NEXT STEP

api returns wrong total -value

api returns wrong total -value

 

My Question or Issue

Please check the following api. It returns "total": 349, i which is wrong in this case . The same error happens with most of the artists.

 

"href": "https://api.spotify.com/v1/artists/568ZhdwyaiCyOGJRtNYhWf/albums?offset=0&limit=20&market=FI&locale=...",
"limit": 20,
"next": "https://api.spotify.com/v1/artists/568ZhdwyaiCyOGJRtNYhWf/albums?offset=20&limit=20&market=FI&locale...",
"offset": 0,
"previous": null,
"total": 349,
"items": [
{
"album_type": "album",
"total_tracks": 13,
"is_playable": true,
"external_urls": {
"spotify": "https://open.spotify.com/album/4wSHMlOxOpLLs1boWeAteq"
},

 

I think that total value is for all album_types: "album", "single", "compilation"

but if request is limited to "album_type": "album" only, the total value should show the total number of albums.  

 

Previously this has worked correctly, but I noticed this issue two weeks ago  

 

 

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random