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
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
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors
Top Kudoed Authors