Forum Discussion

ghdunn's avatar
ghdunn
Icon for Helper III rankHelper III
5 years ago
Solved

Using the Power BI Rest API

Hi,

 

I have started experimenting with the Power BI Rest API.  I can (for example) use the 'Try It' function on this page:

 

Reports - Get Reports (Power BI Power BI REST APIs) | Microsoft Docs

 

..and bring back details of a report.

 

I have two questions:

 

1. if i wanted to make this call through Power BI itself, what would i use?  Would I use the OData feed?  Or Web?  How would i add the "Authorisation" Synax which is shown below.  Could anyone point me at a help resource for this?

 

GET https://api.powerbi.com/v1.0/myorg/reports
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIn etc etc

2. Is there any way of getting more metadata on each individual report...for example what Visualizations a report contains, and ideally what is the metadata of the visualisation?

 

Thanks!

 

 

 

 

5 Replies