I have a web API with basic authorisation and username and password How do i connect to it in Power BI

0 votes
I have a web API which has basic authorisation. The username and password is available with me. How do I get data from this API in Power BI?
Oct 29, 2020 in Power BI by anonymous
• 120 points
3,922 views

1 answer to this question.

0 votes

Hey, @There,

I found your query is quite similar to the given link here https://www.edureka.co/community/26876/how-can-i-connect-my-web-api-with-power-bi-reports?show=26876#q26876

Have a look and let me know it worked or not!!

answered Oct 29, 2020 by Gitika
• 65,770 points
Hi Gitika,

Thanks for your response. I tried and it didn't work. It gave me

Web.Contents failed to get contents from 'my api url' (404): Not Found.

I have checked the API and it does work fine. What is it that I could be doing wrong? Also, where do I need to enter the basic auth credentials that I have for this API.

Also, I tried using the web connector in Power BI for connecting to this API, and it gives me the same error.

Regards.

Hey, @There,

To connect my web API with Power BI Reports, you can go through the following below:

Go to Home > Edit Queries > Advance Editor. Here is some Power Query code to query issue a GET request to an API endpoint.

let
    Source = Json.Document(Web.Contents("http://mywebapi"))
in
    Source

Related Questions In Power BI

0 votes
1 answer

Why am I unable to set refresh for a web-based anonymous connection in Power BI Server, and how can I resolve it?

Scheduled refresh for web-based data sources that ...READ MORE

answered Feb 28 in Power BI by anonymous
• 19,000 points
57 views
+1 vote
1 answer

How can you use Power Pivot in Excel to create a star schema model and integrate it with Power BI for reporting?

How Power Pivot gives optimal data models: ...READ MORE

answered Dec 2, 2024 in Power BI by pooja
• 16,780 points
128 views
0 votes
1 answer

how can I connect my web api with Power BI Reports?

Go to Home > Edit Queries > ...READ MORE

answered Oct 18, 2018 in Power BI by Annie97
• 2,160 points
9,761 views
+1 vote
1 answer
0 votes
1 answer

Is it possible to design a scheduler UI in Power BI, and if so, how?

Development of a personalized scheduler UI within ...READ MORE

answered Dec 13, 2024 in Power BI by pooja
• 16,780 points
133 views
0 votes
1 answer

Is it possible to use both R and Python scripts in the same Power BI report? If so, how do they interact?

It has already been established that one ...READ MORE

answered Jan 13 in Power BI by pooja
• 16,780 points
75 views
0 votes
1 answer

Why am I getting a 401 Unauthorized error when renaming a Power BI dataflow using the Power BI REST API, and how can I fix it?

A 401 Unauthorized error when renaming a ...READ MORE

answered Feb 27 in Power BI by anonymous
• 19,000 points
114 views
0 votes
1 answer

How to Toggle Between Two Option and Make it Interact with the rest of the Visualizations in a Report?

Toggling is an action that is achieved ...READ MORE

answered Oct 20, 2020 in Power BI by anonymous
• 65,770 points
1,186 views
0 votes
1 answer

How do you Hide and Unhide a Specific Report in Power BI?

In the menu bar, choose the Selection ...READ MORE

answered Oct 20, 2020 in Power BI by Gitika
• 65,770 points
11,056 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP