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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
kafreitass
Helper I
Helper I

Implement paging in API

Hey guys!

hope everyone is well!
I'm trying to create a paginated API code below is ok, but it doesn't return all the records of the pages. How could I implement pagination in code?
I've already checked in other posts with solutions, but I couldn't implement it in my code.
Can anybody help me?

let
body =
Json.FromValue
([
call = "ListadeClientes",
appkey = appkey,
appsecret = appsecret,
param = {[
pagina = 1
registros_por_pagina = 100,
apenas_importado_api = "N"
]}
]),

header =
[
#"Content-Type" = "application/json"
],

request = Json.Document(
Web.Contents(
"https://app.fakedata.com/",
[
RelativePath = "api/v1/v2/v3/",
Headers = header,
Content = body
]
)
,
1252
)
in
request

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kafreitass ,

Please review the following links which has the same requirements, hope they can help you achieve it.

How to get paginated data from API in Power BI

Handling Paginated REST API Results with Power Query

yingyinr_0-1664266520344.png

How to do Pagination on a REST API in Power Query

Best Regards

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @kafreitass ,

Please review the following links which has the same requirements, hope they can help you achieve it.

How to get paginated data from API in Power BI

Handling Paginated REST API Results with Power Query

yingyinr_0-1664266520344.png

How to do Pagination on a REST API in Power Query

Best Regards

@Anonymous this works perfectly. 

Thank you so much

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

amitchandak
Super User
Super User

@kafreitass , Refer if this can help

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

hi @amitchandak 

I tried to implement using the tutorial but I couldn't 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.