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

"/artists/id" endpoint ignores "limit" and "market" query values

"/artists/id" endpoint ignores "limit" and "market" query values

When trying to fetch artist's top track or albums I'm trying to use the /artists/id/albums and /artists/id/top-tracks endpoints.

 

In the documentation for /artists/id/albums it states that we can provide limit value so that only a number of albums will be returned. That is not working at all, here is an example URL I'm using to get the response from API:

 

 

https://api.spotify.com/v1/artists/6vWDO969PvNqNYHIOW5v0m/albums?include_groups=album,single,compilation,appears_on&limit=10&market=PL&offset=0

 

 

This should return 10 of Beyonce's albums which are available in Poland (the market parameter), but instead I get all of her albums, many of which are duplicates and most of them are not even available in Poland

The query I posted is built exactly how the docs say it should be so I suspect it's a bug in Spotify, although the official Spotify app's don't have this issue from what I can tell.

 

Link do docs:

https://developer.spotify.com/documentation/web-api/reference/#/operations/get-an-artists-albums

Reply
1 Reply

Suggested posts