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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
pratheeban
Frequent Visitor

HOW to use REST API in Power BI Service

HI All,

 

I would like to know how to use REST API to retrieve the metadata of the reports, Dashboards from the Power BI Service. 

 

Steps I tried,

1) Created Workspace in Service

2) Created the reports in Desktop and Published it to the workspace Power BI Service

3) Created the dashboard from the Report

4) I have tried some sample REST calls to get the metadata of the reports and dashboard that are published there as per below link.

    https://msdn.microsoft.com/en-us/library/mt147898.aspx

    Example: https://api.powerbi.com/v1.0/myorg/reports (Tried using the browser)

 It is showing 404 FORBIDDEN message.

 

Not Sure what I'm missing here.... May I know how to learn about the REST calls in Power BI.

 

Thanks in Advance for your help!!!

5 REPLIES 5
pratheeban
Frequent Visitor

HI All,

 

I would like to know how to use REST API to retrieve the metadata of the reports, Dashboards from the Power BI Service.

 

Steps I tried,

1) Created Workspace in Service

2) Created the reports in Desktop and Published it to the workspace Power BI Service

3) Created the dashboard from the Report

4) I have tried some sample REST calls to get the metadata of the reports and dashboard that are published there as per below link.

https://msdn.microsoft.com/en-us/library/mt147898.aspx

Example: https://api.powerbi.com/v1.0/myorg/reports (Tried using the chrome & mozilla browser)

It is showing 404 FORBIDDEN message.

 

Thanks in advance for your help!!

Anonymous
Not applicable

Hi @pratheeban,

 

I check on REST API document but not found similar api which you mentioned, I think you're testing with wrong api url.

 

For REST API Report operations, you need to define the 'group id' in api.

 

Sample:

 

Get Report
https://api.powerbi.com/v1.0/myorg/groups/{group_id}/reports/{report_id}
Get Reports
https://api.powerbi.com/v1.0/myorg/groups/{group_id}/reports

 

Regards,

Xiaoxin Sheng

Hi,

 

Thanks for your reply!

 

What I'm trying to achieve is retrieving the detailed metadata of the reports and dashboard which is published in the workspace.

 

How to get the dashboard and report metadata(In JSON/XML) using REST API / Is there any other way to get it? The metadata retrieved is high level whereas I needed detailed one(column used in the visualization and dataset details) etc.

 

https://api.powerbi.com/v1.0/myorg/groups/XXXXXX/reports

 

{
"id": "cXXX",
"modelId": 0,
"name": "Second Report",
"webUrl": "https://app.powerbi.com/groups/XXX/reports/xxxx",
"embedUrl": "https://app.powerbi.com/reportEmbed?reportId=xxxxx&groupId=XXXXXX",
"isOwnedByMe": true,
"isOriginalPbixReport": false,
"datasetId": "XXXXX"
}

 

Any help is much appreciated! Thanks

Anonymous
Not applicable

Hi @pratheeban,

 

How about use power bi to invoke rest api and analyze these result data? Power query contains function to expand, merge and drill to detail metadata.

Using a REST API as a data source

 

Regards,

Xiaoxin Sheng

Hi,

Thanks for the Response.

I think you misunderstood my question. I was asking how to retrieve the metadata of the Power BI Reports in Power BI Service.

 

To find the below details,

What columns used in the reports?

What dashboards in my workspace?

Where the column sourced from?

DB Details etc.

 

 

 

Helpful resources

Announcements
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 Kudoed Authors