Http Request Pagination - Support

I´ m trying to use the pagination in http request, but fail to get through items.
I get the offset from $response.body.request
pagination ending when $response.body.content.isEmpty

But I fail to get all 950 items

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.101.0
  • **Database (default: SQLite):Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):NPM
  • **Operating system:AWS Linux AMI

Hey @Kool_Baudrillard hope all is well.

Would you like to provide more details on how exactly do you “fail to get all 950 items”? An error message or the server rans out of items to return?.. Maybe some screenshots, outputs or any other details you think could help to understand the issue?

Hi

it fails to loop until the end. If I remember correctly, setting up pagination and starting the http request it loops through the pagination until all items are fetched and returns the whole “inventory”.

I am able to fetch the first 100 offset 0 limit 100. No error, just not getting all 950 items

Now you need to provide pagination with the formula for how to iterate and the condition for stopping.

Yes,

that´s the case :slight_smile:

Unfortunately, without seeing what’s happening and reproducing the behaviour, it’s hard to say what happens with your execution. I was helping someone with a similar requirement just yesterday, take a look at this post and see if it helps.

Hi, thanks. Got if figured out.