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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rajenderreddy
Regular Visitor

How to import data into Power BI Desktop using the Rest API using Basic Authentication

URL: https://apis.dev.********.com/app/v1/app

I have tried this URL using Basic Authentication in Postman app, it works fine and returns the JSON data. 

 

But when I try to connect in Power BI Desktop using Web - URL - Basic. I get an error. This URL is internal not able to access outside my organization. I have tried all authentications as Anonymours, Windows, Basic and Organizational account. None of them works.

Any help is appreciated!!

tempsnip.png

 

6 REPLIES 6
lbendlin
Super User
Super User

Needs more information. How do you actually authenticate against the API?  Usually you need to use anonymous here, and specify the authentication details in the request header.

Hi Ibendlin,

 

Thanks for replying on my problem. I just use the URL in the Basic and choose the Basic Authentication and enter my GUID in username and password.

How can I specify the authentication details in the request header? 
Can you please post an example.
Also I have tried same method in Microsoft Excel to get the data from API via Web option and entering the URL and basic authentication. But it didnt work for me.

 

Hi,

 

I have tried as you mentioned but still I get the error. Please see the attachments for error and how I am trying to connect.

rajenderreddy_0-1655759178765.pngrajenderreddy_1-1655759194250.png

 

you didn't specify anonymous auth.

I have tried as you mentioned, But didn't work for me still. Shows as "Couldn't authenticate with credentials provided".

rajenderreddy_0-1655823045857.pngrajenderreddy_1-1655823105169.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.