Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I am trying to connect Power BI to a web api using this URL (https://api.10000ft.com/api/v1/), but when I enter the API key, I get this message:
A web API key can only be specified when a web API key name is provided.
Unsure what I need to do so any help would be appreciated!
Thanks,
Dean
Solved! Go to Solution.
Hi @deanbland ,
Please review the content in the following links, hope they can help you resolve the problem.
1. Get data from web error: A web API key can only be specified when a web API key name is provided
Solution:
Solution: Add ApiKeyName = "ApiKey" as part of the 3 parameter of using OData.Feed
let
Source = OData.Feed("https://localhost/odata", null, [Implementation="2.0", ApiKeyName = "ApiKey"]),
Table_table = Source{[Name="Table",Signature="table"]}[Data]
in
Table_table
3. A web API key can only be specified when a web API key name is provided
Best Regards
i had to connect to my data using the web connector without authenticating, knowing that it would fail, so Power BI would build the shell of the query. then i went into the advanced editor to updated Web.BrowserContents() to Web.Contents() which allowed me to pass the key name and value through the headers with:
let
Source = Web.Contents("https://{uri removed intentionally}", [Headers = [#"Authorization" = "Bearer {key removed intentionally}"]]),
then Power BI pulled in my data
Hi @deanbland ,
Please review the content in the following links, hope they can help you resolve the problem.
1. Get data from web error: A web API key can only be specified when a web API key name is provided
Solution:
Solution: Add ApiKeyName = "ApiKey" as part of the 3 parameter of using OData.Feed
let
Source = OData.Feed("https://localhost/odata", null, [Implementation="2.0", ApiKeyName = "ApiKey"]),
Table_table = Source{[Name="Table",Signature="table"]}[Data]
in
Table_table
3. A web API key can only be specified when a web API key name is provided
Best Regards
Here's the relevant documentation:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 109 | |
| 40 | |
| 33 | |
| 27 |