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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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...
amitchandak
Super User
Super User

@UI , Rest API ?
https://community.powerbi.com/t5/Power-Query/Using-a-REST-API-as-a-data-source/td-p/50400
https://www.progress.com/tutorials/odbc/directquery-your-custom-rest-api-in-power-bi
https://zappysys.com/blog/howto-import-json-rest-api-power-bi/
https://www.youtube.com/watch?v=ipI6mrWLQKA

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.