Assistance Needed with Iterating Through JSON Data for Multiple Pages

Hello Team,

I am currently working with JSON data that contains multiple pages. For each iteration, I need to provide a new base URL, calculated as follows: (startat + MaxResult + 1 = 51, 101, 151, 201) until the value is equal to “Total.”

I am seeking assistance with the logic for this task and would like to know which loop would be best suited for this exercise.

Please refer to the attached image for better clarity:

Your support and guidance on this matter would be greatly appreciated.

Thank you.