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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calling REST API with authentication

Hi there!


I'm trying to fetch data from REST API directly into Power BI, and faced some issues.

I have two links for API, one is to pass the authentication (using username and password) to get the token that I should paste it into another one (API) to fetch the data.
** I couldn't share the APIs here, it's not public**

I followed this video: https://www.youtube.com/watch?v=N8qYRSqRz84 , but got stuck after hitting (OK) in the form of getting data from web.

The API connection is working good, as I tested fetching data through postman. 

Any soultions for such an issue?

 

Thank you!

 

 

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

Did you get any error message after you clicked "OK"? If yes, could you please provide the related screenshot(mask the sensitive data) in order to make troubleshooting? In addition, please review the content in the following link and check whether that can help you connect REST API in Power BI Desktop successfully...

How to import REST API in Power BI

Best Regards

Anonymous
Not applicable

Thank you @Anonymous , yes sometimes I got an error as attached below: 
Inkederror1_LI.jpg

 

Anonymous
Not applicable

Hi @Anonymous ,

The following ones are the threads which have similar problem with yours, please check whether their solution can help you resolve the problem.

"Web.contents failed to get content from site URL" displayed after trying to establish a connection in Power BI to Assemble

Known Issues and Limitations with Power BI

Working with Web Services in Power Query

Best Regards

Anonymous
Not applicable

Thank you @yingyinr ! Now I got a successful connection to the first API (with autorization), but got confused where should I pass the other one that will retrive the data? (based on the authorization of the 1st one)

zappy1.png

 

Anonymous
Not applicable

I tried it but it won't work, still looking for a solution 

gooduling
Frequent Visitor

Hi, the video you reference to is about PoverBi API, right? Did you use your 3rd side API instead? Does it really work? I'm looking for way to request data from 3rd side API onto PowerBI. Thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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