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
GustavoSotoT
Frequent Visitor

Download images from powerbi report

Hi there! I am trying to download images from a powerbi report.
I already tried to use Powerbi API in Python but didn't get any results.
I need to obtain images of the graphs in this report, ideally using python or R, any help is appreciated
 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GustavoSotoT 

 

For direct image extraction using APIs, as of my last update, Power BI does not provide a direct API to extract images of visuals from reports. The Power BI REST API primarily focuses on operations such as pushing data into datasets, creating reports, and managing workspaces.

While not directly using Python or R, another workaround is to export your Power BI reports to PDF and then use Python libraries such as PyMuPDF or PyPDF2 to extract images from the PDF. This method is more of a workaround and might not yield the highest quality images as directly exporting them as images from Power BI.

Here for your reference:

How to extract images from PDF in Python? - GeeksforGeeks

Best Regards

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

View solution in original post

3 REPLIES 3
clausm73
Helper III
Helper III

It is quite possible to download report pages as images using Python and Semantic Link Labs library by Microsoft.

sempy_labs.report package — semantic-link-labs 0.7.3 documentation

clausm73_0-1726059860805.png

 

GustavoSotoT
Frequent Visitor

Hi Zhengdong, that was really useful.

 

Thanks you!

Anonymous
Not applicable

Hi @GustavoSotoT 

 

For direct image extraction using APIs, as of my last update, Power BI does not provide a direct API to extract images of visuals from reports. The Power BI REST API primarily focuses on operations such as pushing data into datasets, creating reports, and managing workspaces.

While not directly using Python or R, another workaround is to export your Power BI reports to PDF and then use Python libraries such as PyMuPDF or PyPDF2 to extract images from the PDF. This method is more of a workaround and might not yield the highest quality images as directly exporting them as images from Power BI.

Here for your reference:

How to extract images from PDF in Python? - GeeksforGeeks

Best Regards

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

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.