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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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 ...

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.