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

Can I use cURL commands to connect to external APIs?

I'm trying to access the Reputation.com API in Power BI Desktop using Get Data>Web>Web API using the API endpoint and API key that they have provided me with, but I keep getting the error message "invalid credentials."

 

I was able to call the API successfully from Command Prompt using the following cURL command:

curl -X GET -H "X-API-KEY: {this is my API key} " https://api.reputation.com/2.0/business/location/61/summary

 

The issue seems to either be that Power BI's Web API connector doesn't have the proper functionality for me to accomplish this, or that the API call is being made from a Power BI IP address that has not been whitelisted by Reputation.com (I had to send Reputation.com my IP address to be able to access the API).

 

If anyone knows how I could go about calling this API from within Power BI Desktop or if there is another IP address that I need to whitelist, it would be much appreciated. Thanks!

1 REPLY 1
intrasight
Helper IV
Helper IV

You may have to run cURL in a process that send data to Power bI via the REST API

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