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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
karl184
Frequent Visitor

Post Api Call in Power Qwery

Hello All ,

I need to get data from this web call :

karl184_0-1688716065198.png

the blank space are names of company .

The Headers are :

#"Accept" = "application/json",
#"connector-name" = "sql",
#"Content-Type" = "application/json"

 

The Body :

{ "parameters": [ { "LIMIT": "55" }, { "OFFSET": "0" } ] }

 

Furthermore I have an Authorization Key .

I wrote this in advance editor :

let

Key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",

URL = "karl184_1-1688716096524.png",

headers=
[
#"Authorization" = Key,
#"Accept" = "application/json",
#"connector-name" = "sql",
#"Content-Type" = "application/json"
],

Body=
"{""parameters"": [{""LIMIT"": ""55""},{""OFFSET"": ""0""}]}",

source = Json.Document(Web.Contents(URL, [Headers = headers,Content = Text.ToBinary(Body)]))

in
source

 

But it doesnt work : "name could not be resolved" 

 

 

Whereas when I test this api call online works :

Body :

karl184_4-1688715564743.png

 

Key :

karl184_1-1688714908743.png

 

Headers :

karl184_3-1688715513697.png

 

Works :

karl184_5-1688715662725.png

 

Could someone help me ? 

Thank you 

 

2 REPLIES 2
karl184
Frequent Visitor

I tried as well in Postman :

karl184_0-1688718936834.png

In Api Key Value I pasted the key .

Here the headers :

karl184_1-1688718990536.png

Then the body :

karl184_2-1688719033094.png

 

When I send the call is working :

karl184_3-1688719079060.png

Could someone help me ? 

Thank you 

Hello , any help ? 😭

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.