This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
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
Solved! Go to Solution.
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
How to do Pagination on a REST API in Power Query
Best Regards
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
How to do Pagination on a REST API in Power Query
Best Regards
@Anonymous this works perfectly.
Thank you so much
@kafreitass , Refer if this can help
https://medium.com/@marktiedemann/how-to-do-pagination-in-power-query-430460c17c78
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |