Pagination error while consuming the API: https://api.spotify.com/v1/artists/{spotifyId}/albums
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium
Country
Brazil
Device
DELL-G15
Operating System
Windows 11
My Question or Issue
When using the API responsible for searching for an artist's albums. Having the pathVariable spotfyId as a parameter. The pagination is not bringing all the items. Below is a request that was used as a base. Its return should be 10 items. However, it only brings 5 โโitems. Also passing the OFFSET equal to 40 based on the same request, it only brings 3 items instead of 10. You must insert the access token to complete the request.
Requests Examples:
curl --location 'https://api.spotify.com/v1/artists/2ye2Wgw4gimLv2eAKyk1NB/albums?limit=10&offset=40' \
--header 'Authorization: Bearer <TOKEN>
curl --location 'https://api.spotify.com/v1/artists/2ye2Wgw4gimLv2eAKyk1NB/albums?limit=10&offset=20' \
--header 'Authorization: Bearer <TOKEN>
- Labels:
-
Possible Bug
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page