<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API exploration - How to get model metadata in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2445842#M23650</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Report Server, i noticed using F12 Developer options that i could see something similar to report Layout (whem pbix decompressed) if i see the following link :&lt;/P&gt;&lt;P&gt;&lt;A href="https://server/powerbi/api/explore/reports/{report" target="_blank" rel="noopener"&gt;https://server/powerbi/api/explore/reports/{report&lt;/A&gt;&amp;nbsp;id}/modelsAndExploration?preferReadOnlySession=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is if there is an API GET (or POST method) where i can retrieve the metadata of model - Example : measures code, partitions, power query code, with the objective to build an automatic model documentation solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i would look is something like :&lt;/P&gt;&lt;P&gt;&lt;A href="https://server/powerbi/api/explore/reports/{report" target="_blank" rel="noopener"&gt;https://server/powerbi/api/explore/reports/{report&lt;/A&gt;&amp;nbsp;id}/measures or&amp;nbsp;&lt;A href="https://server/powerbi/api/explore/reports/{report" target="_blank" rel="noopener"&gt;https://server/powerbi/api/explore/reports/{report&lt;/A&gt;&amp;nbsp;id}/datamodel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 11:33:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-08T11:33:28Z</dc:date>
    <item>
      <title>API exploration - How to get model metadata</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2445842#M23650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Report Server, i noticed using F12 Developer options that i could see something similar to report Layout (whem pbix decompressed) if i see the following link :&lt;/P&gt;&lt;P&gt;&lt;A href="https://server/powerbi/api/explore/reports/{report" target="_blank" rel="noopener"&gt;https://server/powerbi/api/explore/reports/{report&lt;/A&gt;&amp;nbsp;id}/modelsAndExploration?preferReadOnlySession=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is if there is an API GET (or POST method) where i can retrieve the metadata of model - Example : measures code, partitions, power query code, with the objective to build an automatic model documentation solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i would look is something like :&lt;/P&gt;&lt;P&gt;&lt;A href="https://server/powerbi/api/explore/reports/{report" target="_blank" rel="noopener"&gt;https://server/powerbi/api/explore/reports/{report&lt;/A&gt;&amp;nbsp;id}/measures or&amp;nbsp;&lt;A href="https://server/powerbi/api/explore/reports/{report" target="_blank" rel="noopener"&gt;https://server/powerbi/api/explore/reports/{report&lt;/A&gt;&amp;nbsp;id}/datamodel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:33:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2445842#M23650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T11:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: API exploration - How to get model metadata</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2446967#M23661</link>
      <description>&lt;P&gt;The full public, documented API is published here&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/pbirs/2.0#" target="_blank"&gt;https://app.swaggerhub.com/apis/microsoft-rs/pbirs/2.0#&lt;/A&gt;&amp;nbsp;and there are no methods in there that return the model metadata. Although you will not find the modelsAndExploration endpoint in there either as this must be an internal, undocumented endpoint.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However becuase PBIRS does not offer a web editing experience I do not believe you will even find an undocumented API to get the model metadata&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2022 00:04:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2446967#M23661</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-04-09T00:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: API exploration - How to get model metadata</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2943541#M27856</link>
      <description>&lt;P&gt;How can I obtain token for these APIs? Im unable to access these APIs because of the tokens. Could anyone tell me something regarding this?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 05:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2943541#M27856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-02T05:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: API exploration - How to get model metadata</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2943807#M27859</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How can I obtain token for these APIs? Im unable to access these APIs because of the tokens. Could anyone tell me something regarding this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The on-prem report server does not require or support the use of tokens for authentication. They use NTLM/Kerberos auth by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just doing a quick google for "Power BI REST API authentication" turned up the following which may help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/REST-API-Get-Access-Token/m-p/1895937" target="_blank"&gt;https://community.powerbi.com/t5/Developer/REST-API-Get-Access-Token/m-p/1895937&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 07:25:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-exploration-How-to-get-model-metadata/m-p/2943807#M27859</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-12-02T07:25:41Z</dc:date>
    </item>
  </channel>
</rss>

