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="20230207032112|3112" />
  </query-continue>
  <query>
    <logevents>
      <item logid="3122" ns="0" title="Timedatectl" pageid="2086" type="patrol" action="patrol" user="Ledhed" timestamp="2023-12-14T07:52:35Z" comment="">
        <patrol cur="3564" prev="3535" auto="1" />
      </item>
      <item logid="3121" ns="0" title="Raspberry Pi NUT Server" pageid="2075" type="patrol" action="patrol" user="Ledhed" timestamp="2023-10-19T10:50:11Z" comment="">
        <patrol cur="3563" prev="3562" auto="1" />
      </item>
      <item logid="3120" ns="0" title="Raspberry Pi NUT Server" pageid="2075" type="patrol" action="patrol" user="Ledhed" timestamp="2023-10-19T10:49:53Z" comment="">
        <patrol cur="3562" prev="3513" auto="1" />
      </item>
      <item logid="3119" ns="0" title="Kerberos and CNAMEs" pageid="2097" type="patrol" action="patrol" user="Ledhed" timestamp="2023-06-30T04:59:46Z" comment="">
        <patrol cur="3561" prev="3560" auto="1" />
      </item>
      <item logid="3118" ns="0" title="Kerberos and CNAMEs" pageid="2097" type="patrol" action="patrol" user="Ledhed" timestamp="2023-06-30T04:57:58Z" comment="">
        <patrol cur="3560" prev="0" auto="1" />
      </item>
      <item logid="3117" ns="0" title="Ecowitt GW1000" pageid="2063" type="patrol" action="patrol" user="Ledhed" timestamp="2023-04-10T08:57:25Z" comment="">
        <patrol cur="3559" prev="3558" auto="1" />
      </item>
      <item logid="3116" ns="0" title="Ecowitt GW1000" pageid="2063" type="patrol" action="patrol" user="Ledhed" timestamp="2023-04-06T08:29:26Z" comment="">
        <patrol cur="3558" prev="3557" auto="1" />
      </item>
      <item logid="3115" ns="0" title="Ecowitt GW1000" pageid="2063" type="patrol" action="patrol" user="Ledhed" timestamp="2023-04-06T08:27:21Z" comment="">
        <patrol cur="3557" prev="3556" auto="1" />
      </item>
      <item logid="3114" ns="0" title="Ecowitt GW1000" pageid="2063" type="patrol" action="patrol" user="Ledhed" timestamp="2023-04-06T08:27:00Z" comment="">
        <patrol cur="3556" prev="3483" auto="1" />
      </item>
      <item logid="3113" ns="0" title="Ubuntu Resize Disk" pageid="2096" type="patrol" action="patrol" user="Ledhed" timestamp="2023-02-14T09:11:11Z" comment="">
        <patrol cur="3555" prev="0" auto="1" />
      </item>
    </logevents>
  </query>
</api>