Pagination of HTTP request + loop

Describe the problem/error/question

I have literally read through every post written by other members on this problem but havent been able to figure it out :confused:

I want to achieve the following:

  1. Loop through all pages of an HTTP request
  2. Each HTTP request will return multiple (e.g 2 items) - for each of these items, I also want to loop through and do some data processing

The issue I’m facing is that once I have looped through all the results from the first HTTP request, I want to come back to the HTTP, retrieve another set of results (step #1 above) that I do data processing on (#2)

However as soon as the loop is done processing the returned items it stops, even though I’ve tried to put an IF logic at the end to take it “out of the loop” and back to HTTP requst

any help would be highly appreicated!

Please share your workflow

Information on your n8n setup

  • **n8n version:**Version 1.38.1
    Runnong on cloud

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

A better way to do this is to use the built-in pagination feature of the HTTP node.

Sorry perhaps that wasn’t so clear

I’m using hte pagination feature of the HTTP node already
However I want to:

  1. Loop through all the pages
  2. Then within the results returned from every page, also loop through all the results

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.