'loop through next url into api url in Azure data factory

I have a an api that contains some data and another api url named "nextapi" I want to loop through each api under api and store the data of each api page to azure sql database using ADF portal. Can anyone please help me with it? My goal is to copy data to azure sql from the api I have, and then go into the 'nextlink' key present in my api and copy that data too into same SQL table. Like this I want to keep loading data until the final api page does not contain any url to next api.

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source