I am new to ADF and I am trying to call a Rest API that is paginated. I have my base url in my dataset as https://mydomain.syncromsp.com/api/v1/tickets?api_key=key_value.
I am able to return the first page as seen in the image below. In the meta portion of the JSON it shows "total_pages: 51" and "page:1"
How do I return the rest of the of the pages? I am not sure what Pagination rules to use in my Source settings.
2
Answers
Your API response should contain the property of the next page
URL
to use the pagination to return to the next page.You can follow this MS document for more information on supported patterns of pagination in Rest API with examples.
you would need to pass the page item as a parameter in a loop and loop until the page = total pages.