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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

fetch results from api and store in DB

i want to fetch power bi metadata in terms of number of reports, datasets and workspaces and store in Snowflake database. how to acheive this?

2 ACCEPTED SOLUTIONS
tharunkumarRTK
Super User
Super User

@powerbiexpert22 

Step 1: Extract Workspace metadata - 

I would suggest you to write a python script to run Power BI Scanner APIs. 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-status

 

Step 2: Load the data into Snowflake database - 

You can further leverage python script to load the medata data to snowflake. Here is article which might help you:

https://medium.com/snowflake/loading-f1-historical-data-into-snowflake-using-the-ergast-developer-ap...

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

View solution in original post

aj1973
Community Champion
Community Champion

Hi @powerbiexpert22 

With PowerShell you can write scripts to call Power BI Rest APIs 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin

Extract the logs in JSON or CSV formats then send the extracted files store them in Snowflake.

Finally connect Power BI desktop to build your report.

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

3 REPLIES 3
aj1973
Community Champion
Community Champion

Hi @powerbiexpert22 

With PowerShell you can write scripts to call Power BI Rest APIs 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin

Extract the logs in JSON or CSV formats then send the extracted files store them in Snowflake.

Finally connect Power BI desktop to build your report.

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

SaiTejaTalasila
Super User
Super User

Hi @powerbiexpert22 ,

 

You can use fabric notebooks and admin api and need create programs to extract data and insert into snowflake database.If required you need to stage the data in onelake.Even it's possible to do something using powershell and vs code.

 

I hope it will be helpful.

 

Thanks,

Sai Teja 

tharunkumarRTK
Super User
Super User

@powerbiexpert22 

Step 1: Extract Workspace metadata - 

I would suggest you to write a python script to run Power BI Scanner APIs. 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-post-workspace-info 

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-status

 

Step 2: Load the data into Snowflake database - 

You can further leverage python script to load the medata data to snowflake. Here is article which might help you:

https://medium.com/snowflake/loading-f1-historical-data-into-snowflake-using-the-ergast-developer-ap...

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors