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! Request now

Reply
arunkumarcg
Regular Visitor

Get Power BI Metadata like connections, workspace, views used

Hello all, I have a requirement to get Power BI cloud connections, views it is using, workspace details etc using PySpark notebook from Synapse. Currently i get report details using this API

YAMLCopy
 
https://api.powerbi.com/v1.0/myorg/admin/reports

and pass datasetid in below API to get the connection details

YAMLCopy
 
https://api.powerbi.com/v1.0/myorg/admin/datasets/'+ datasetId +'/datasources'

But i am getting error saying "you have reached maximum limit, try again after 3200 seconds'

I tried without admin in the API like below and it's throwing 400 unauthorized error. Any idea how to use API with admin and not having the limitation error? Or how to use below api without admins?Whats the config i need to do in Power BI for below API to work?

YAMLCopy
 
https://api.powerbi.com/v1.0/myorg/reports

 

3 REPLIES 3
lbendlin
Super User
Super User

Ask your tenant admin to run the audit and scanner api calls for you. They should do that anyway as part of the maintenance.

We are planning to have it run automatically through a Python script and display the same on dashboard.

Sorry to hear that.  Wrong tool, in my opinion. These scripts need to be run daily by the tenant admin and the results stored for eternity  (data disappears from the service after 30 days)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.