Forum Discussion

CraigSchulz's avatar
CraigSchulz
Helper II
7 years ago
Solved

API calls with Pagination

Using the code below I am able to access data via an API and pull the first 100 records. My problem and my question is, how can I get this code to iterate through a series of offsets so that I can pull 2000 records instead of just 100?

 

let
Source = Json.Document(Web.Contents("https://api.recruiterbox.com/v2/candidates?limit=100&offset=0")),
objects = Source[objects],
expandrecords = Table.FromRecords(objects),