Just discovered n8n (just last week!!) and I am trying to see if I can create few workflows to help automate and make my job easier. I have gone thru two other similar questions that came up in search results, but didnt seem to fit what I want. I wanted to check with you all on what the best approach would be. (Obviously a total noob to n8n, sorry if this is covered elsewhere).
I have a simple internal api that takes a “page” param as part of the url, and the json response has a “currentPage”, “totalPages” in the json response.
I would like to start with 0 as the initial page and based on the “currentPage”, “totalPages” , keep fetching data until “currentPage” == “totalPages”.
So far I am thinking if using a Set to keep track of pages is the best approach ? But I cant yet figure out how to keep incrementing page ?
Also would need to combine all the responses from all those pages.
Would appreciate a sample workflow so I can understand how Set / Loops / works. Also clueless about how to combine all the results.