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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
phydeauxman
New Member

Connecting to Azure Search index via REST API

Is this even possible?  Would like to be able to connect to an index to query its data.  Reading the article below it seems it should be possible:

 

https://docs.microsoft.com/en-us/rest/api/searchservice/

 

But each time I attempt to connect to one of our indexes, and authenticate using "Web API", I get an error telling me "A web API key can only be specified when a web API key name is provided.  I tried entering the key itself in the Key window and I have also tried entering the key name in the Key window but each time the same message appears.

3 REPLIES 3
Anonymous
Not applicable

@phydeauxman,

You can specify an API key name in the hearers area of Web.Contents using Advanced Editor. Please review the example in the similar thread below:

https://community.powerbi.com/t5/Desktop/Get-data-from-web-error-A-web-API-key-can-only-be-specified...

Regards,
Lydia

@Anonymous appreciate the response.  I read the thread you linked and still don't really understand how to make this work.

Anonymous
Not applicable

@phydeauxman

Add a blank query in Power BI Desktop, then paste your M scripts into the Advanced Editor of the query. There is also a similar thread for your reference. 

https://jessedotnet.com/2016/06/24/power-bi-connect-to-your-secure-api/

Regards,
Lydia

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.