Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LP2803
Responsive Resident
Responsive Resident

Issue - API calls with pagination

Hi Team,

 

I have created the below function in powerquery to fetch the data from an API

 

name of fx = getpage1

(page as text) =>
let
Source = Json.Document(Web.Contents("https://api.onguard.convergeone.com:8080/cc2076video/videoCDR/_search?q=@timestamp%3A[2019-01-01T00:...








 

and created a Query as below :  (this creates a list from 1 to 20 and these numbers are used a page ...

let

Source = List.Generate(()=>1, each _ <20, each _ +1),
#"Converted to Table" = Table.FromList(Source, ...




 

Issue :

I see that the same ID is queried multiple times as shown below: 

 

LP2803_0-1606058669470.png

 

Kindly help why is this fetching the same records instead of different ones. Am i missing anything here?

1 REPLY 1
amitchandak
Super User
Super User

@LP2803 , Not very clear to me.

Refer , if these two can help

https://datachant.com/2016/06/27/cursor-based-pagination-power-query/

https://medium.com/@marktiedemann/how-to-do-pagination-in-power-query-430460c17c78

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.