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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

1 REPLY 1
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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.