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
xhan
Helper I
Helper I

Power BI Rest APIs to get report's source tables and fields

Hi friends,

I'm trying to use the Power BI Rest API to fetch report's source tables (tables in sqlserver or other storage), and the fields from those tables used in the reports. What would be the best APIs for getting these info?

 

I was looking at the dataset, dataflows APIs, but seem not containing the detailed info, or I missed something?

 

Thanks in advance!:)

2 REPLIES 2
Anonymous
Not applicable

Hi @xhan ,

You can refer the following links to get it.

Announcing new Admin APIs and Service Principal authentication to make for better tenant metadata sc...

Admin - WorkspaceInfo GetScanResult

GET https://api.powerbi.com/v1.0/myorg/admin/workspaces/scanResult/{scanId}

Getting Power BI Measures and Columns via REST API

The Power BI API returns admin info on the state of a dataset, but not the data structure.

If the dataset is compatible and the XMLA endpoint for the workspace is open, you can connect to that and use it like you would an Analysis Services database, including getting the measures and columns. You can use any tool or custom code that implements the MSOLAP or AMODB libraries. DAX Studio is just one of these options. The url of a workspace will be powerbi://api.powerbi.com/v1.0/[tenant name]/[workspace name]


Best Regards

Thanks a lot @Anonymous ! I'm now able to use the metadata API to get the scan result. The result returns reports, and datasets. But I wonder if it's possible to get the pages and the visuals on the pages? For a visual, I'd like to get which columns, measures it's using.
We are not using sql server or other MS data storage at this point.

 

Thank you!

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.