Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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!
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.
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |