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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.