Execute API call N times

Hello,

I'm fighting to try adapt this topic to my scenario but I think mine is easier:

What I need is to call N times until the response is empty, but I don't know if I can increment the page parameter and call it recursively N times

Thanks for any help!

I don't know if this is a way

Or better

I've just posted a new, simpler example for querying APIs with pagination. Check it out: API Pagination - Next Page - #4 by dgudkov

Let me know if you have questions.