Bit of help please with a repeat when using an api

Hi guys,

So I have an api which returns a number of pages (page: 1) in a query as well as data.
I have the repeat for the products and inserts working well, but I want to somehow repeat the whole thing so when it finishes page one the it will start again and add www.url/api?page=2 and so on until it gets to the last page (for example 38)
What would be the best way to do this. Here is my action upto now

Any ideas or help would be appreciated.

Community Page
Last updated: