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="1944" 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="2930" length="0" />
      <page pageid="7429" ns="6" title="File:MarcoPaganSaxons Vol2.jpg" contentmodel="wikitext" pagelanguage="en" touched="2019-12-15T21:52:21Z" lastrevid="15584" counter="16" length="90" new="" />
      <page pageid="7507" ns="6" title="File:Prinz von Preu├čen Cuirassiers Squadron Standard.jpg" contentmodel="wikitext" pagelanguage="en" touched="2020-01-06T19:30:16Z" lastrevid="17433" counter="18" length="161" new="" />
      <page pageid="7508" ns="6" title="File:Progressbar 2020.png" contentmodel="wikitext" pagelanguage="en" touched="2020-01-29T11:44:16Z" lastrevid="17603" counter="108" length="830" />
    </pages>
  </query>
</api>