Hi @Cameron Smith ,
Thank you for posting query on Microsoft Q&A Platform.
REST connector in ADF supports the following pagination patterns:
- Next request’s absolute or relative URL = property value in current response body
- Next request’s absolute or relative URL = header value in current response headers
- Next request’s query parameter = property value in current response body
- Next request’s query parameter = header value in current response headers
- Next request’s header = property value in current response body
- Next request’s header = header value in current response headers
Click here for reference document.
I have gone through below link you shared. https://developer.cisco.com/meraki/api-v1/#!pagination/how-does-pagination-work-in-the-dashboard-api
It seems you need to compose your URL with parameters.
- perPage: The number of entries to be returned in the page (the current request)
- startingAfter: A token used by our server to indicate the starting "identifier" of the page (i.e. the data we return in this request will start immediately after the entry with this "identifier")
- endingBefore: A token used by our server to indicate the ending "identifier" of the page (i.e. the data we return in this request will end immediately before the entry with this "identifier")
You can compose your Pagination URL in loop fashion and use Copy activity inside loop to make API call to that particular page accordingly. Please refer below video where similar example defined. Copy data from REST API which sends response in Pages using Azure data factory
If your next page URLs are coming as part of Response Body then you need to have a key "AbsoluteUrl" and pass your URL from response body. An example is discussed at below link. https://learn.microsoft.com/en-us/answers/questions/236150/how-to-perform-pagination-in-azure-data-factory-us.html
REST connector pagination supports totally three Key types. Details of Keys which you can supply and Value you can supply are available in below screenshot.
Hope this will help. Please let us know if any further queries.
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators