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-continue>
    <templates gtlcontinue="647|828|Yesno" />
  </query-continue>
  <query>
    <pages>
      <page pageid="18" ns="10" title="Template:Ambox" contentmodel="wikitext" pagelanguage="en" touched="2015-01-18T11:58:45Z" lastrevid="75" counter="1346" length="146" />
      <page pageid="101" ns="10" title="Template:Mbox" contentmodel="wikitext" pagelanguage="en" touched="2015-01-18T21:16:12Z" lastrevid="884" counter="1947" length="707" />
      <page pageid="102" ns="10" title="Template:Namespace detect" contentmodel="wikitext" pagelanguage="en" touched="2015-01-18T21:21:33Z" lastrevid="317" counter="1149" length="146" />
      <page pageid="827" ns="10" title="Template:Tracking" contentmodel="wikitext" pagelanguage="en" touched="2014-04-30T04:44:59Z" lastrevid="2973" counter="1081" length="9" />
      <page pageid="41" ns="828" title="Module:Arguments" contentmodel="Scribunto" pagelanguage="en" touched="2014-04-04T06:40:21Z" lastrevid="119" counter="2861" length="5827" />
      <page pageid="42" ns="828" title="Module:Category handler" contentmodel="Scribunto" pagelanguage="en" touched="2014-04-04T06:40:21Z" lastrevid="121" counter="2222" length="13065" />
      <page pageid="47" ns="828" title="Module:HtmlBuilder" contentmodel="Scribunto" pagelanguage="en" touched="2014-04-04T06:40:21Z" lastrevid="131" counter="2154" length="4278" />
      <page pageid="50" ns="828" title="Module:Message box" contentmodel="Scribunto" pagelanguage="en" touched="2014-04-04T06:40:22Z" lastrevid="137" counter="1990" length="17456" />
      <page pageid="51" ns="828" title="Module:Message box/configuration" contentmodel="Scribunto" pagelanguage="en" touched="2014-04-04T06:40:22Z" lastrevid="1468" counter="5222" length="5586" />
      <page pageid="52" ns="828" title="Module:Namespace detect" contentmodel="Scribunto" pagelanguage="en" touched="2014-04-04T06:40:22Z" lastrevid="141" counter="1701" length="8303" />
    </pages>
  </query>
</api>