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="18" ns="6" title="File:Frederick II.jpg" contentmodel="wikitext" pagelanguage="en" touched="2014-09-15T18:26:48Z" lastrevid="21" counter="1846" length="434" new="" />
      <page pageid="5" ns="6" title="File:Header.gif" contentmodel="wikitext" pagelanguage="en" touched="2014-09-19T17:13:50Z" lastrevid="357" counter="2779" length="0" />
      <page pageid="7078" ns="6" title="File:MarcoPaganSaxons Vol1.jpg" contentmodel="wikitext" pagelanguage="en" touched="2018-06-26T13:22:13Z" lastrevid="12727" counter="35" length="90" new="" />
      <page pageid="7216" ns="6" title="File:Progressbar 2019.png" contentmodel="wikitext" pagelanguage="en" touched="2019-09-12T11:23:59Z" lastrevid="15436" counter="1102" length="1626" />
    </pages>
  </query>
</api>