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

Join 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.

Reply

Power BI REST API to get datasource information?

Hi Develpoers,

I looking for any REST API or any script that can give me Power BI Dataset's datasource related all information like how many tables used, table name, source type: SQL or Web, like whatever information I can fetch.

 

I tried 1 REST API:

Datasets - Get Datasources

https://api.powerbi.com/v1.0/myorg/admin/datasets/{dataset ID}/datasources

but this is giving me very high level information like-

 

"value": [
        {
            "datasourceType": "Web",
            "connectionDetails": {
                "url": "https://SourcePath.com"
            },
            "datasourceId": "xxxxxxxxxxxxxxxxxxxxxxxxx",
            "gatewayId": "xxxxxxxxxxxxxxxxxxxxxxxxx"
        }
 
I need more information of the with the dataset ID. Kindly suggest me if there's any way to fetch more information.
 
Thanks.
2 REPLIES 2
Mmahachi
Advocate I
Advocate I

I am also looking for more information about all the field name and definitions, I cannot find this basic information anywhere. For example what is the datasourceinstanceid??

Anonymous
Not applicable

Hi @LakshtSharma99,

I'd like to suggest you take a look at power bi metadata scanning API if helps with your scenario:

Metadata scanning - Power BI | Microsoft Learn

Admin - WorkspaceInfo GetScanResult - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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