Sum in the same field

Ah, so you simply want to implement pagination @admdiegolima? The exact approach will depend on the API you are using but here’s a basic example workflow showing this for the https://reqres.in/api/users API:

The HTTP Request node uses an expression to check if we have a next_page value (and if we don’t have that value yet, simply use 1 instead):

image

The IF node then checks if there are more pages to process by comparing the current page number with the number of total pages received from the API. This is something you’d most likely need to adjust depending on how your API responds.

The Set node will then add 1 to the current page value whenever it runs using an expression like this:

image

Let me know if you have any questions on this.

1 Like