Announcements

Help Wizard

Step 1

NEXT STEP

Top Artists/Tracks API Returns Empty List

Top Artists/Tracks API Returns Empty List

Subject: Top Artists API Returns Empty List

Plan: Premium

Country: Spain

Device: N/A (Issue is API-related)

Operating System: N/A (Issue is API-related)

My Question or Issue:
I've been using the Spotify Web API to fetch my top artists using the /v1/me/top/artists endpoint with time_range=short_term. However, even after listening to music regularly for several days, the API still returns an empty list:

{  
"href": "https://api.spotify.com/v1/me/top/artists?time_range=long_term&locale=es-ES,es;q%3D0.9",

"limit": 0,
"next": null,
"offset": 0,
"previous": null,
"total": 0,

"items": []
}

 

I've tried the following troubleshooting steps:

  • Changing the time_range to medium_term and long_term
  • Waiting for a few days to see if the data updates

Despite these efforts, the API still returns an empty list. Is there a known delay or issue with how Spotify updates top artists/tracks? Or is there a minimum listening requirement before data appears? Must mention that it worked for a few hours the first day after the account creation, but then it stopped working.

Any help would be appreciated!

Reply
3 Replies

Works for me when trying it on developer portal, request looks alright to me. Are you still having an issue here, or did it start working for you eventually?

I tried building up listening time and followed several artists, but nothing changed. After a while, I gave up since the API (and developer portal) kept returning empty lists regardless of what I did. Not sure what went wrong, but I couldn’t get it to work.

Now I see it, there is no `long_term`, only `medium_term` or `short_term`. Try changing that and do the request again!

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