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="20170828181901|38149" />
  </query-continue>
  <query>
    <logevents>
      <item logid="38159" ns="2" title="User:Bil bas" pageid="0" logpage="0" type="rights" action="rights" user="TBSliver" timestamp="2023-09-22T10:34:15Z" comment="">
        <rights new="sysop" old="" />
      </item>
      <item logid="38158" ns="2" title="User:Bil bas" pageid="0" logpage="0" userid="9148" type="newusers" action="byemail" user="TBSliver" timestamp="2023-09-22T10:33:47Z" comment="New admin" />
      <item logid="38157" ns="0" title="Funding/WalneyIslandJuly2019" pageid="101" logpage="101" type="patrol" action="patrol" user="TBSliver" timestamp="2019-04-01T18:45:16Z" comment="">
        <patrol cur="111901" prev="0" auto="1" />
      </item>
      <item logid="38156" ns="2" title="User:Druid8172" pageid="0" logpage="0" userid="9147" type="newusers" action="byemail" user="TBSliver" timestamp="2017-10-11T20:15:53Z" comment="LAMM Member" />
      <item logid="38155" ns="2" title="User:XUHSasha69964387" pageid="0" logpage="0" type="block" action="block" user="127.0.0.1" anon="" timestamp="2017-08-28T18:19:18Z" comment="Blocked through Special:BlockandNuke">
        <block flags="XUHSasha69964387" duration="infinite" />
      </item>
      <item logid="38154" ns="2" title="User:WaldoP4478002" pageid="0" logpage="0" type="block" action="block" user="127.0.0.1" anon="" timestamp="2017-08-28T18:19:18Z" comment="Blocked through Special:BlockandNuke">
        <block flags="WaldoP4478002" duration="infinite" />
      </item>
      <item logid="38153" ns="2" title="User:RamonaHoag90235" pageid="0" logpage="0" type="block" action="block" user="127.0.0.1" anon="" timestamp="2017-08-28T18:19:13Z" comment="Blocked through Special:BlockandNuke">
        <block flags="RamonaHoag90235" duration="infinite" />
      </item>
      <item logid="38152" ns="2" title="User:Kerstin7608" pageid="0" logpage="0" type="block" action="block" user="127.0.0.1" anon="" timestamp="2017-08-28T18:19:08Z" comment="Blocked through Special:BlockandNuke">
        <block flags="Kerstin7608" duration="infinite" />
      </item>
      <item logid="38151" ns="2" title="User:Jacquelyn09R" pageid="0" logpage="0" type="block" action="block" user="127.0.0.1" anon="" timestamp="2017-08-28T18:19:05Z" comment="Blocked through Special:BlockandNuke">
        <block flags="Jacquelyn09R" duration="infinite" />
      </item>
      <item logid="38150" ns="2" title="User:GladisKempton33" pageid="0" logpage="0" type="block" action="block" user="127.0.0.1" anon="" timestamp="2017-08-28T18:19:03Z" comment="Blocked through Special:BlockandNuke">
        <block flags="GladisKempton33" duration="infinite" />
      </item>
    </logevents>
  </query>
</api>