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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.