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

How to connect API to power-bi, can any one suggest me sample API to connect with power-bi.

Hi Folks, 

 

I want to take data from API and want to load into Power-Bi.

Can any one suggest me how to do this and also, how can i get sample API for practice.

 

Regards,

Pratik

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Test like the below:

Step 1:

Open the Power BI desktop. Click on the “Get Data” button and select the “Web” option as shown in the below screenshot.

vluwangmsft_0-1647505969663.png

 

Step 2:

Click on the “Connect” button. A new window will pop up and you will see two options. (Basic and Advanced)

vluwangmsft_1-1647505969106.png

 

Step 3:

You must enter the URL of API which returns the data you want to fetch. Fill in the URL and click on OK. 

Power BI will automatically arrange the results fetched by calling in a key-value pair in the form of rows. You can also use the advance option if you need.

 

And to learn more details ,refer:

Connect API Data in Power BI

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

5 REPLIES 5
BIBB
Helper II
Helper II

The web.contents function is your key to start interacting with APIs in Power BI, in the link below you will find an article on how to start using this. 

Web.Contents and APIs in Power BI


Web.Contents in Power BIWeb.Contents in Power BI

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Test like the below:

Step 1:

Open the Power BI desktop. Click on the “Get Data” button and select the “Web” option as shown in the below screenshot.

vluwangmsft_0-1647505969663.png

 

Step 2:

Click on the “Connect” button. A new window will pop up and you will see two options. (Basic and Advanced)

vluwangmsft_1-1647505969106.png

 

Step 3:

You must enter the URL of API which returns the data you want to fetch. Fill in the URL and click on OK. 

Power BI will automatically arrange the results fetched by calling in a key-value pair in the form of rows. You can also use the advance option if you need.

 

And to learn more details ,refer:

Connect API Data in Power BI

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

no help!!!   this does not work.

Greg_Deckler
Super User
Super User

@Anonymous So like a custom API? Sounds like you would be writing a custom connector at that point or using R or Python. Here's an example of essentially working with an API in R.

Visualizing and interacting with your Azure Machine Learning Studio experiments | Microsoft Power BI Blog | Microsoft Power BI



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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.