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
FearDerBeard
Frequent Visitor

Get data from web error: A web API key can only be specified when a web API key name is provided

I'm having difficulty making Web.Contents work.  I think anyone can get a key here: https://api.data.gov/signup

 

Power BI keeps throwing this error.  Has anyone solved this?  I didn't find anything helpful in other posts. ty

 

 

let
    Source = Json.Document(Web.Contents("https://api.data.gov/ed/collegescorecard/v1/schools?id=100663&apikey=xxxxxxxxxxxxxxxxxxxxxx",
    [Query=[apikey=" xxxxxxxxxxxxxxxxxxxxxx"]]))
in
    Source

1 ACCEPTED SOLUTION
FearDerBeard
Frequent Visitor

Found the answer here:

 

https://dev.applicationinsights.io/documentation/Using-the-API/Power-BI

 

"In the Access web content dialog, select Basic, enter your app's API key as the Username, and press Connect"

 

Hope this helps.

View solution in original post

2 REPLIES 2
FearDerBeard
Frequent Visitor

Found the answer here:

 

https://dev.applicationinsights.io/documentation/Using-the-API/Power-BI

 

"In the Access web content dialog, select Basic, enter your app's API key as the Username, and press Connect"

 

Hope this helps.

This is no longer working, unfortunately.

I haven't found the solution yet...

The issue for me is that none of the authentication options provided correspond to "api key", as opposed to Power BI Desktop.

Helpful resources

Announcements
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.