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.
Offset query parameter not working. Getting a 503. How to paginate through results?
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.
Please Log In to post.
Log in to comment