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 pageid="3885" ns="6" title="File:Icon 3ds.gif" contentmodel="wikitext" pagelanguage="en" touched="2014-11-26T17:07:36Z" lastrevid="48113" counter="497" length="0" new="" />
      <page pageid="5258" ns="6" title="File:Icon Switch.gif" contentmodel="wikitext" pagelanguage="en" touched="2018-09-29T11:05:08Z" lastrevid="69114" counter="66" length="0" new="" />
      <page pageid="808" ns="6" title="File:Icon ds.gif" contentmodel="wikitext" pagelanguage="en" touched="2007-03-10T10:02:54Z" lastrevid="2784" counter="2225" length="27" new="" />
      <page pageid="810" ns="6" title="File:Icon wii.gif" contentmodel="wikitext" pagelanguage="en" touched="2007-03-10T10:02:54Z" lastrevid="2786" counter="11951" length="28" new="" />
      <page pageid="3886" ns="6" title="File:Icon wiiu.gif" contentmodel="wikitext" pagelanguage="en" touched="2015-10-11T22:27:50Z" lastrevid="48115" counter="224" length="0" />
    </pages>
  </query>
</api>