Cannot Send API Call Using Advance Dialogue Box in Power Query

rkaczano

Board Regular
Joined
Jul 24, 2013
Messages
141
Office Version
  1. 365
Platform
  1. Windows
I am trying to run an Advance API Call From Web in Power Query. I know this works in PostMan but I cannot seem to get it to work in Power Query.

I press Advance and then fill out the form as follows below with the URL and the parameters

URL = https://api.aeso.ca/report/v1.1/price/poolprice/?startDate=2000-01-01&endDate=2000-01-02

I then press OK and go to Web API

I then put my "MyAPIKeyValues" in the "key" input box.

Then their is a "Select which level to apply these settings to " box which defaults to:
"https://api.someorganization.ca/"

When I hit Connect it says : "A web key can only be specified when a web API key name is provided"

I know that when I am in Postman I define the API Key Name as "X-API-Key" but it was not obvious to me where to do this here.

So started again and added "X-API-Key" and "MyAPIKeyValues" to the the HTTP request header parameters (optional) input boxes in the advanced tab.

When I chose Web API it prompts me again for a key which is confusing do I paste "MyAPIKeyValues" into the Key input box.

I get the following error "A web API key can only be specified when a web API key name is provided."

What am I doing wrong?

Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I have RARELY used an API in Power Query, but those few times the URL had a "field" for a key that needed to be part of the URL. There should be documentation that can help with that.
 
Upvote 0

Forum statistics

Threads
1,223,366
Messages
6,171,659
Members
452,416
Latest member
johnog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top