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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
PowerBI4Life
Frequent Visitor

Power BI REST API Connection - Python Syntax

Hi!

 

I went through the process of registering an app in in Azure AD.  I now have an Application (client) ID, Directory (tenant) ID, etc. 

 

The next step I would like to do is connect to the Power BI REST API.

 

Does anyone know what the python syntax would be to do this?  Or, have an example I could  use as a reference? 

Thank you in advance!

1 ACCEPTED SOLUTION
ichavarria
Solution Specialist
Solution Specialist

Hi @PowerBI4Life,

 

I thinks this blog might help you: Monitoring Power BI using REST APIs from Python — DATA GOBLINS (data-goblins.com).

 

 

Best regards, 

Isaac Chavarria

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

View solution in original post

3 REPLIES 3
ichavarria
Solution Specialist
Solution Specialist

Hi @PowerBI4Life,

 

I thinks this blog might help you: Monitoring Power BI using REST APIs from Python — DATA GOBLINS (data-goblins.com).

 

 

Best regards, 

Isaac Chavarria

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

@ichavarria thank you for this article!  This is very helpful. 
...do you know if you have to be a global PBI admin for this to work?  Or, maybe the global PBI Admin could add the permissions to the Azure Security Group?

Hi @PowerBI4Life,

 

When authenticating with Service Principal, you are not using your user permissions, but the ones from the Service Principal. Therefore, you just need to configure the API permissions in the App Registration you create in Azure. Make sure to select the "Application permissions" (Delegated will only work if you are authenticating via a Master User. In the API Permissions (Application Permissions) you will see two, one who can read and write and another just for reading content, select the one that suits you better, usually the best option is tenant.read.writeall as it will also allow you to make POST and PUSH operations. 

 

Hope this helps!

 

Isaac Chavarria

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors