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="20191029212319|2689" />
  </query-continue>
  <query>
    <logevents>
      <item logid="2699" ns="8" title="MediaWiki:Sidebar" pageid="701" logpage="701" type="patrol" action="patrol" user="Bartbes" timestamp="2020-03-11T17:04:42Z" comment="">
        <patrol cur="25211" prev="21287" auto="1" />
      </item>
      <item logid="2698" ns="0" title="ImageFormat" pageid="7105" logpage="176" type="move" action="move" user="Slime" timestamp="2020-02-12T22:58:35Z" comment="">
        <move new_ns="0" new_title="ImageEncodeFormat" />
      </item>
      <item logid="2697" ns="3" title="User talk:Younyokel" pageid="7062" logpage="7061" type="move" action="move" user="Younyokel" timestamp="2020-01-26T14:18:00Z" comment="Oopsy">
        <move new_ns="2" new_title="User:Younyokel" />
      </item>
      <item logid="2696" ns="2" title="User:Building LÖVE/megasource (日本語)" pageid="6987" logpage="6131" type="move" action="move" user="Greenwing" timestamp="2019-12-10T04:17:55Z" comment="">
        <move new_ns="0" new_title="Building LÖVE/megasource 2019 (日本語)" />
      </item>
      <item logid="2695" ns="2" title="User:Greenwing/megasource (日本語)" pageid="6986" logpage="6985" type="move" action="move" user="Greenwing" timestamp="2019-12-10T04:11:51Z" comment="Move to relevant pages.">
        <move new_ns="0" new_title="Building LÖVE/megasource (日本語)" />
      </item>
      <item logid="2694" ns="2" title="User:Greenwing/megasource (日本語)" pageid="6986" logpage="6131" type="move" action="move" user="Greenwing" timestamp="2019-12-10T04:11:48Z" comment="Move to relevant pages.">
        <move new_ns="2" new_title="User:Building LÖVE/megasource (日本語)" />
      </item>
      <item logid="2693" ns="2" title="User:Greenwing/love (日本語)" pageid="6984" logpage="6135" type="move" action="move" user="Greenwing" timestamp="2019-12-10T04:09:41Z" comment="Move to relevant pages.">
        <move new_ns="0" new_title="Building LÖVE/love (日本語)" />
      </item>
      <item logid="2692" ns="0" title="PrismaticJoint:areLimitEnabled (日本語)" pageid="6924" logpage="6923" type="move" action="move" user="Greenwing" timestamp="2019-11-26T06:22:42Z" comment="">
        <move new_ns="0" new_title="PrismaticJoint:areLimitsEnabled (日本語)" />
      </item>
      <item logid="2691" ns="0" title="EffectWaveform (日本語)" pageid="6919" logpage="6918" type="move" action="move" user="Greenwing" timestamp="2019-11-25T10:30:21Z" comment="">
        <move new_ns="0" new_title="RecordingDevice:getBitDepth (日本語)" />
      </item>
      <item logid="2690" ns="10" title="Template:newobjectnotice (Français)/sandbox" pageid="6822" logpage="6821" type="move" action="move" user="Popolon" timestamp="2019-10-29T21:54:25Z" comment="">
        <move new_ns="10" new_title="Template:newobjectnotice (Français)/doc" />
      </item>
    </logevents>
  </query>
</api>