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>
    <allpages gapcontinue="Timedatectl" />
  </query-continue>
  <query>
    <pages>
      <page pageid="1733" ns="0" title="TAPI" contentmodel="wikitext" pagelanguage="en" touched="2011-10-12T02:01:55Z" lastrevid="2610" counter="10808" length="2736" />
      <page pageid="2049" ns="0" title="Tasmota Command Line Options" contentmodel="wikitext" pagelanguage="en" touched="2021-09-15T05:09:00Z" lastrevid="3533" counter="42777" length="2426" />
      <page pageid="2043" ns="0" title="Tasmota WEMOS D1 Mini Lite" contentmodel="wikitext" pagelanguage="en" touched="2019-01-12T20:34:33Z" lastrevid="3439" counter="7583" length="1359" />
      <page pageid="1854" ns="0" title="ThumbnailPhoto" contentmodel="wikitext" pagelanguage="en" touched="2013-08-19T18:13:10Z" lastrevid="2902" counter="2223" length="659" new="" />
    </pages>
  </query>
</api>