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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,215,459
Messages
6,124,945
Members
449,198
Latest member
MhammadishaqKhan

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