Announcements

Cannot set offset to above 50 for a user's favorite tracks

Solved!
Reply
Highlighted

Cannot set offset to above 50 for a user's favorite tracks

Visitor

Hey,

When i try to use the endpoint GET /v1/me/top/{type} with an offset of above 50, the result sent back from the endpoint is an empty list of 0 tracks.

 

I am trying to get a User's top 100 songs, and to do so I'm trying to call GET /v1/me/top/tracks?limit=50&offset=0 and then GET /v1/me/top/tracks?limit=50&offset=50. The second call returns an empty list.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution!

Re: Cannot set offset to above 50 for a user's favorite tracks

Rock Star 16
Rock Star 16

 Hey @MaximusMS, thanks for coming to the Community for help!

 

I might be able to shed a light here. I did some digging on the 'Get a User's Top Artists and Tracks'-endpoint and it seems that the API is only able to return the user's top 50. From the Web API reference: 'For each time range, the top 50 tracks and artists are available for each user. In the future, it is likely that this restriction will be relaxed. This data is typically updated once each day for each user.'

 

If this is something you'd like to see, I recommend creating a new idea on the Ideas board. That way, Spotify can keep track of it.

 

Let me know if you have any questions.

 

Happy coding,

Hubo

HuboRock Star 16
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.

View solution in original post

1 Reply
Highlighted
Solution!

Re: Cannot set offset to above 50 for a user's favorite tracks

Rock Star 16
Rock Star 16

 Hey @MaximusMS, thanks for coming to the Community for help!

 

I might be able to shed a light here. I did some digging on the 'Get a User's Top Artists and Tracks'-endpoint and it seems that the API is only able to return the user's top 50. From the Web API reference: 'For each time range, the top 50 tracks and artists are available for each user. In the future, it is likely that this restriction will be relaxed. This data is typically updated once each day for each user.'

 

If this is something you'd like to see, I recommend creating a new idea on the Ideas board. That way, Spotify can keep track of it.

 

Let me know if you have any questions.

 

Happy coding,

Hubo

HuboRock Star 16
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.

View solution in original post

SUGGESTED POSTS