You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page ns="0" title="API" missing="" />
      <page pageid="9754" ns="0" title="Main Page">
        <revisions>
          <rev user="Sail-la-vie" timestamp="2015-03-10T14:26:12Z" comment="Protected &quot;[[Main Page]]&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))" contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">{{#widget:Main page}}

&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-md-6&quot;&gt;{{Template:Ask founding year}}&lt;/div&gt;
&lt;div class=&quot;col-md-6&quot;&gt;{{Template:Ask newest founding year}}&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-md-6&quot;&gt;{{Template:Ask Schools Style}}&lt;/div&gt;
&lt;div class=&quot;col-md-6&quot;&gt;{{Template:Ask Areas Style}}&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-md-6&quot;&gt;{{Template:Progress bars}}&lt;/div&gt;
&lt;div class=&quot;col-md-6&quot;&gt;&lt;/div&gt;
&lt;/div&gt;</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>