Forum Discussion

natureorigin01's avatar
6 years ago
Solved

Help with looping through pages with JSON API

Hello,

 

I have the folling API with multiple pages:

 

let
Source = Json.Document(Web.Contents("https://dev.getflycrm.com/api/v3/accounts", [Headers=[#"X-API-KEY"="SIVnWouOVARaUuSoZPSvk89zf6uzmU"]]))
in
Source

 

I want to extract all the records but do not know how to create a loop to go through all the pages.

 

Please help me if you can, thank you!