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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ghostrock37
New Member

API LIMITATION : how to get all the results ?

Hello,

 

We are new to powerbi. We managed to query an API and we got the data back.

On the other hand, there is a limitation on the data in response: we are limited to 100 lines.


I think this is a common issue, however we haven't found on the forum how to create a function that would retrieve ALL data.

 

We have seen that the API returns us a hasnext set to TRUE when other results are present but not returned. In addition, the API offers the possibility to skip the n first line. How to exploit this please? Is it about making a loop?

But do you have an example for powerbi? thank you

 

Here our request:

 

let
auth_key ="Token XXX",
base_url = "https://url_of_our_api/",
extension = "api/v1/alerts/",
url = base_url &extension,
header= [#"Authorization" = auth_key,
#"Content-Type" = "application/json"],
content1= "{
""filters"": {

""alertOpen"":{
""eq"": true
},

""severity"": {
""eq"": [0,1]
}
},
""skip"": 100, // skip n first lines
""limit"": 100 //by default

}",
webdata1 = Web.Contents(url, [Headers=[#"Authorization" = auth_key,
#"Content-Type" = "application/json"],Content = Text.ToBinary(content1)]),
response1 = Json.Document(webdata1),
data = response1[data]
in
data

 

Here our result :

 Capture.PNG

 

Thank a lot !

 

 

1 REPLY 1
avatorl
Impactful Individual
Impactful Individual

You can use List.Generate() function to create a loop.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.