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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Get Datasources Power BI Rest API



I am struggling to figure out if it is possible to get knowledge about the storage type of a data source. I see it is possible with the Get Datasets API (ContentProviderType) but I cannot find it per data source instead of per dataset.


Did any of you succeed in that? please let me know



Frequent Visitor

Hi @v-rzhou-msft 


Thanks for replying my post. 


I have been looking into these API's although I cannot find a way to get the storage type for each datasource in these.


As I see it, I will get the storage mode for the dataset in whole, and not the datasource.

So what I will get is:

Dataset id 1 (Composite model)

Datasource1 - SQL

Datasource2 - Sharepoint

Datasource3 - Excel


But what I want to get is:

Dataset id 1 (Composite model)

Datasource1 - SQL (Direct Query)

Datasource2 - Sharepoint (Import)

Datasource3 - Excel (Import)


So I want to get the datasource and then the type from the api. And not the storage mode for the complete dataset.




Community Support
Community Support

Hi @mhani ,


I think you can try Power BI REST API as below.

For reference:

Datasets - Get Datasources

Datasets - Get Datasources In Group


Best Regards,
Rico Zhou


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.