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>
    <logevents lecontinue="20220314181517|2351" />
  </query-continue>
  <query>
    <logevents>
      <item logid="2361" ns="0" title="Varanda" pageid="0" logpage="735" type="delete" action="delete" user="Luke" timestamp="2022-03-14T18:51:19Z" comment="Author request: content was: &quot;[[File:FlagOfVaranda.png|thumb|Flag of Varanda]]   [[Category:Nation]] [[Category:City]]&quot; (and the only contributor was &quot;[[Special:Contributions/Luke|Luke]]&quot;)" />
      <item logid="2360" ns="0" title="Act 4" pageid="887" logpage="887" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:41:29Z" comment="">
        <patrol cur="2818" prev="2817" auto="1" />
      </item>
      <item logid="2359" ns="0" title="Act 4" pageid="887" logpage="887" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:40:37Z" comment="">
        <patrol cur="2817" prev="2783" auto="1" />
      </item>
      <item logid="2358" ns="6" title="File:TheEnd.jpg" pageid="905" logpage="905" img_sha1="905dzp362834vlxxk6croll7dezp7dc" img_timestamp="2022-03-14T18:37:48Z" type="upload" action="upload" user="Luke" timestamp="2022-03-14T18:37:48Z" comment="" />
      <item logid="2357" ns="0" title="Darkcrest Village" pageid="904" logpage="904" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:35:26Z" comment="">
        <patrol cur="2815" prev="0" auto="1" />
      </item>
      <item logid="2356" ns="0" title="Rogue" pageid="6" logpage="6" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:34:04Z" comment="">
        <patrol cur="2814" prev="2509" auto="1" />
      </item>
      <item logid="2355" ns="0" title="History of Eoran" pageid="432" logpage="432" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:23:43Z" comment="">
        <patrol cur="2813" prev="2784" auto="1" />
      </item>
      <item logid="2354" ns="0" title="Westmarch" pageid="319" logpage="319" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:20:53Z" comment="">
        <patrol cur="2812" prev="2768" auto="1" />
      </item>
      <item logid="2353" ns="0" title="Orle" pageid="903" logpage="903" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:20:24Z" comment="">
        <patrol cur="2811" prev="0" auto="1" />
      </item>
      <item logid="2352" ns="0" title="Fairmount" pageid="902" logpage="902" type="patrol" action="patrol" user="Luke" timestamp="2022-03-14T18:17:08Z" comment="">
        <patrol cur="2810" prev="0" auto="1" />
      </item>
    </logevents>
  </query>
</api>