Trouble connecting to Meraki API with Power BI

Solved
KJohnson
Conversationalist

Trouble connecting to Meraki API with Power BI

I've been trying to connect to the Meraki API using Power BI and haven't been able to get it to work. Everything works OK in Postman so at least the API key is correct.

 

here's what I've tried in Power BI

    Get data / From Web / Advanced

    filled in the URL and headers, the Authorization header has the API key

 

KJohnson_0-1747768682278.png

 

When I click OK I get the following error:

KJohnson_1-1747768754142.png

If I remove Authorization from the header I get different options to connect

 

Basic authentication.

KJohnson_2-1747768939049.png

 

I put the API key in the user name and the error is: "We couldn't authenticate with the credentials provided, please try again"

I also tried with the API key in both the user name and password fields, same error.

 

Web API authentication - API key is in the key field

 

KJohnson_3-1747769619269.png

 

On this attempt the error is: "A web API key can only be specified when a web API key name is provided"
I've googled the various errors, but still haven't been successful in getting a web API connection using Power BI.

 

 

1 Accepted Solution
Oren
Meraki Employee
Meraki Employee
3 Replies 3
Oren
Meraki Employee
Meraki Employee
KJohnson
Conversationalist

Thanks Oren, that was the problem. I had to set the authentication to Anonymous and add "Bearer" in front of the API key.

 

KJohnson_0-1747832846169.png

 

Oren
Meraki Employee
Meraki Employee

I’m glad to hear. Good luck!

Get notified when there are additional replies to this discussion.