Question

if I try to get the streaming history of a user, e.g.

http://api.deezer.com/2.0/user/.../history?access_token=...

I get the first result page but I don't see any method/parameter (like next, page, ...) to see the rest of the results.

How can I get the following result pages?

Thanks.

Was it helpful?

Solution

There are two parameters available to control the paging of data:

  • limit: the number of individual track objects that are returned in the request.
  • index: the individual track objects at the specified index that is the first result of the request to be returned.

Please, compare these two requests to get a better understanding of the paging system:

For your information, you cannot return more than 50 individual objects per page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top