Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!:)
Hi @xhan ,
You can refer the following links to get it.
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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |