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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
UI
Frequent Visitor

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 @UI ,

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

4 REPLIES 4
BIBB
Helper I
Helper I

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 @UI ,

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

Greg_Deckler
Super User
Super User

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



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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.