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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mike12345262262
Frequent Visitor

Report on PBI Service using api.powerbi.com

I need to create a PowerBI report that lets us know who is viewing which PBI reports, how many views to they get a day, which reports are not used etc.  I would like to use the PowerBI API as a datasource.  I found a good artilce about a month ago, but now I can not find.

 

If I browse to https://api.powerbi.com/v1.0/myorg/reports I get "Access to api.powerbi.com was denied".  If I use Web datasource in PBI and try to connect, I get "Access to the resource is forbiden".

I would like to see what data the API exposes and write a report, so we know which reports are being used (usage metrics) and which are not.

Any help appreciated.

1 ACCEPTED SOLUTION
v-jtian-msft
Community Support
Community Support

Hello,Gabry ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hi,@mike12345262262 .I am glad to help you.
1. Regarding the 403 error you encountered when accessing the web site. Usually this is due to unauthorized access, you need an access token.
I hope the following issue can help you
URL:
https://community.fabric.microsoft.com/t5/Developer/Error-403-Access-to-api-powerbi-com-was-denied/m...

2. About using Power BI API to get usage metric details

I hope the following issue will help you, here are some suggestions on how to use the API to get usage metric details.
You need to ensure that the amount can get the relevant access rights, otherwise you may be mentioned HTTP ERROR 403.

URL:
Solved: Re: How to fetch usage metric details through Powe... - Microsoft Fabric Community
Solved: How to get Power Bi report usage metrices and perf... - Microsoft Fabric Community
Solved: Monitoring usage for shared reports via Public Web... - Microsoft Fabric Community

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
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

2 REPLIES 2
v-jtian-msft
Community Support
Community Support

Hello,Gabry ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hi,@mike12345262262 .I am glad to help you.
1. Regarding the 403 error you encountered when accessing the web site. Usually this is due to unauthorized access, you need an access token.
I hope the following issue can help you
URL:
https://community.fabric.microsoft.com/t5/Developer/Error-403-Access-to-api-powerbi-com-was-denied/m...

2. About using Power BI API to get usage metric details

I hope the following issue will help you, here are some suggestions on how to use the API to get usage metric details.
You need to ensure that the amount can get the relevant access rights, otherwise you may be mentioned HTTP ERROR 403.

URL:
Solved: Re: How to fetch usage metric details through Powe... - Microsoft Fabric Community
Solved: How to get Power Bi report usage metrices and perf... - Microsoft Fabric Community
Solved: Monitoring usage for shared reports via Public Web... - Microsoft Fabric Community

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Gabry
Super User
Super User

Hello,

Are you aware of the automatically generated report on the service when you click on the semantic model?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.