Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

how to connect with web sites that require login and password?

I need to get data from several web sites that require login and password. Once I connect to them, Power BI will retrieve data from html tables on a daily basis to generate a consolidated report. I tried Web connect using the "Get Data" feature, but does not work with a login and password.

Can you please provide some guidelines?


Regular Visitor

I too have a similar problem.

I'm trying to login to a webserver - providing userid + password.


I've tried "windows logon" option as well as "basic" - same result.

I've also setup a trace on the webserver and NOTHING gets to the server. i.e - no validations takes place.


However if I choose the edit option available at the failure pop-up and change the "open file as" to e.g "CSV" or "TEXT" then

logon works and I get data .. ( in html format - but nevertheles data ).


But I have to get through the stage of being denied access and then retry changing the filetype.


It works perfectly in other microsoft products like IE & Excel. - I'm being prompted for userid/password and then everything works fine. 


I could change the source data to csv to circumvent the problem - but I haven't been able to find anythning about controlling which filetype to use "up front" ( html - csv or other )


Any help will be mucg appreciated





Community Support
Community Support

Hi @manuelescalona,


I think you need to investigate the web site itself firstly, whether this site supports OData or which kind of API does it support. Then you can decide which data source you can use in Power BI desktop to retrieve data.


For OData feed, you can check its syntax from here. If the web site expose the REST API, you can refer to this blog to call it in desktop: How to call REST APIs and parse JSON with Power BI.


Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Helper III
Helper III

Have you tried OData Feed option? 

Yes, I did try, but getting an error: "Unable to connect"

Details: "OData: The given URL neither points to an OData service or a feed: 'https://mywebsite/login'."

Helpful resources

collabdays lisbon

CollabDays Lisbon - 26 November 2022

Sessions include practical, hands-on experience that will help you take the next step in your career and know-how.

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.