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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Can I integrate Power BI reports into my web application built with Laravel and React Js

I have built an application using Laravel and React Js and I have been looking into how I can integrate the Power BI reports into my web application. So far I don't have any insights show I can integrate them. Please give me some insights regarding this.

6 REPLIES 6
ranbeermakin
Resolver III
Resolver III

Hi @Anonymous 

 

Couple of things for Power BI Embedded.

 

1. You can setup code in your PHP to get tokens, query this code using JS and embed your Power BI report.

2. You can refer to this blog post: baby steps to embed Power BI reports. This uses master user account approach.

https://bigintsolutions.com/2018/08/02/baby-steps-to-embed-your-power-bi-reports/

3. This is critical: It's not free to use Power BI Embedded in production env. The cost is min USD 700 per month pay per hour basis. When you don't need it switch it off.

 

Let me know if this answers your question.

 

Ranbeer

Please accept the post if it solves your problem.

 

Greg_Deckler
Community Champion
Community Champion

Power BI Embedded, it is just javascript to embed. Or you can use Publish to Web and an iframe, but since you are a Web Artisan, you probably don't do iframes...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

So what you are suggesting is that I generate the iframe from inside my power BI save that in the database and then display them in the frontend???

No, I am recommending that you use Power BI Embedded: 

If you so choose, you can publish your Power BI report to the Service. You can then go to the Report in the Service, click the ellipses in the ribbon, choose Embed and then choose Publish to Web (public). It will present you with an embed url link as well as an iframe version of the same. It will look like:

<iframe width="800" height="600" src="https://app.powerbi.com/view?r=eyJrIjoiMTMwOTljMjEtMGUwYy00ZGNmLWEyMzktODdkZmQ0YzIyZmZkIiwidCI6IjRhM..." frameborder="0" allowFullScreen="true"></iframe>

 

Since Laravel is the PHP Framework for Web Artisans the framework might ban the use of iframes. Hard to know.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes, I have done that and I have that <iframe>...</iframe> to integrate to my front end HTML.

I was talking about https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getreportsingroup

Can't I use these Rest API endpoints to integrate the reports into my application?

Um, no, that would completely negate the purpose of Power BI Embedded. The REST API is really there for administration. You can get the embed url but unless you have used Publish to Web or you go through all the authentication token stuff for Power BI Embedded then it won't be there or won't do you much good. You cannot just use the REST API to embed reports. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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