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
Alexandra_B
Helper III
Helper III

How to automate API Data?

Hello.

 

My job is to create reports and dashboards for the company I work for and for some of our clients. We have data from API, but cannot be linked to Power BI through "Get data" - "Web" option. So what I have done so far was to call the API using Postman, save and update the results in JSON files by calling a JavaScript file in VS Code, then I use those JSON files as data to be added into Power BI.

 

I can only execute the code while at work in the office, I cannot do it if I`m away for example.
What is the best way to automate this process?

 

Thank you.

2 REPLIES 2
Hariharan_R
Solution Sage
Solution Sage

Hi @Alexandra_B 

Can you explain why you can't use Get Data option? is it because of authentication?

Ref - https://addendanalytics.com/blog/bring-data-in-power-bi-via-apis-using-basic-authentication/

You still can generate a token if needed for your API and then use it in Power Query.

 

Thanks

Hari

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.


My Blog :: YouTube Channel :: My Linkedin


Hello, @Hariharan_R . I can access the API fine via other methods (e.g. Postman), but unable to do the same via Power BI. I think it’s because the API requires both Basic Authentication and additional authentication parameters, which it appears is not supported currently in Power BI Desktop.

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 Fabric 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.

Top Solution Authors