Offset query parameter not working. Getting a 503. How to paginate through results?

Avatar image for SolidDBZ
SolidDBZ

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm trying to go beyond the first page of characters. Offset returns an error, and changing the "page" parameter to "2" returns the same results as without a page parameter.

Avatar image for SolidDBZ
SolidDBZ

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Can anyone just let me know if offset is working for them? Or how they go through pages of results?

Avatar image for kalel1938
kalel1938

12

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Haven't had any problems with offset. May want to check the value of your offset param. I'm not sure were page parameter came from.

Avatar image for oscmg
oscmg

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi, for you to use proper pagination, the offset would be the last number of your response result. For example: if the limit of pages you request is 50 per page, your offset would be result.count in this case 50, next query is going to be page:50 and offset:50, next page:50 and offset:100, and so on.

so you need to sum the limit pages per page to the offset on every successful response.