cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alexandra_B
Helper II
Helper II

Connect API Data to Power BI

Hello. I have an API key and access to connect to the data I need. 

I cannot get data into Power Bi using the Web option (to insert the API key), so what I`ve done so far was to create Python files in GitHub, then executed them with Visual Studio Code, and got the results in JSON files. I was able to get data from JSON files into Power Bi, scheduled a refresh, it says it has been successful, althought I have the same data since I called the API. How can I automate calling the API and having up to date data to be able to add it to Power BI? I will have around 500 files with different parameter to call, so that`s why I need to have it automatically updated. Please, please 🙂

1 REPLY 1
yingyinr
Community Support
Community Support

Hi @Alexandra_B,

Please review the following links, hope they can help you connect to REST API in Power BI successfully.

Use parameters and custom functions to call APIs in Power BI

To add data source parameter in your URL, please check my reply in the following similar threads.

http://community.powerbi.com/t5/Desktop/Dynamic-connection-to-Web-URL/m-p/346607#M155589
https://community.powerbi.com/t5/Integrations-with-Files-and/Parameters-for-JSON-API-data-Maintain-Q...

After create reports in Power BI Desktop, you may also need to create Power BI template file for user to instantiate.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors