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

Personalization endpoint returns no results when offset is greater than 49

Personalization endpoint returns no results when offset is greater than 49

This can be evidenced via the Web Console or elsewhere.

 

As the title suggests, when the personalization endpoint is sent a request for either artists or tracks with an offset set to 50 or greater:

  • Expected: the items starting at the offset index would be returned.
  • Actual: no items are returned.

See below the response to a request for top artists with limit=49 & offset=50

 

 

{
  "items": [],
  "total": 0,
  "limit": 0,
  "offset": 50,
  "previous": "https://api.spotify.com/v1/me/top/artists?limit=0&offset=50",
  "href": "https://api.spotify.com/v1/me/top/artists?limit=0&offset=50",
  "next": null
}

 

 

where it appears as if the limit has been set to 0.

 

Interestingly, if the endpoint is queried with offset=49 & limit=50 then it will return the expected data meaning that these items do exist but cannot be requested in the former way.

Reply
0 Replies

Suggested posts