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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Alexandra_B
Helper III
Helper III

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
v-yiruan-msft
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.