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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to connect to an API?

Hello

 

Can you explain please how to connect PowerBI to a database/application via its REST API?

 

First, what would be the form of a REST API? Would it be a url and a port?

 

And how can I use that to connect PowerBI to the database/application?

 

Last, will this connection work as any other built in connection (e.g. connection to Salesforce) or it will need me to code specific stuff for each request?

 

Also will it be robust? And will it need any maintenance?

 

Thanks!

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Anonymous 

You can retrieve data from a REST API by issuing HTTP requests to it, usually just to a specific URL.  I've never had to specify a port.

You need to write a query that issues the request and the form of the query depends on the API.  Some are straightforward to connect to, others require a more complicated authentication process.

You will need to study the documentation of the API you want to connect to, to understand what is required.

Once the query is written it will work as any other query, hit refresh to get the next lot of data.  Depending on what you are trying to retrieve, you may need to write more than 1 query or you could just do somethign like use parameters to get the data you want.

Further reading 

https://www.myonlinetraininghub.com/tag/power-query-api

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.