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="20160217204353|2220" />
  </query-continue>
  <query>
    <logevents>
      <item logid="2230" ns="2" title="User:Banjotan" pageid="0" logpage="0" userid="297" type="newusers" action="create" user="Banjotan" timestamp="2018-04-05T05:40:25Z" comment="" />
      <item logid="2229" ns="6" title="File:Really free market economy CAT.JPG" pageid="820" logpage="820" img_sha1="qn4b8xhf1vcfxnfa3htoecmrkt0x1s3" img_timestamp="2018-01-17T20:38:39Z" type="upload" action="upload" user="Frank" timestamp="2018-01-17T20:38:39Z" comment="" />
      <item logid="2228" ns="2" title="User:Frank" pageid="0" logpage="0" userid="296" type="newusers" action="create" user="Frank" timestamp="2018-01-17T10:57:00Z" comment="" />
      <item logid="2227" ns="2" title="User:KazukoTreloar1" pageid="0" logpage="0" userid="295" type="newusers" action="create" user="KazukoTreloar1" timestamp="2017-09-17T21:11:45Z" comment="" />
      <item logid="2226" ns="2" title="User:Arnology" pageid="0" logpage="0" userid="294" type="newusers" action="create" user="Arnology" timestamp="2016-11-30T00:03:06Z" comment="" />
      <item logid="2225" ns="2" title="User:John" pageid="810" logpage="810" type="delete" action="restore" user="Admin" timestamp="2016-05-14T13:22:46Z" comment="4 revisions restored" />
      <item logid="2224" ns="2" title="User:John" pageid="810" logpage="809" type="delete" action="delete" user="Admin" timestamp="2016-05-14T13:22:03Z" comment="content was: &quot;Really informative article post.Really thank you! Much obliged. Farag&quot; (and the only contributor was &quot;[[Special:Contributions/185.14.194.46|185.14.194.46]]&quot;)" />
      <item logid="2223" ns="2" title="User:RolandNorthfield" pageid="0" logpage="0" type="block" action="block" user="Admin" timestamp="2016-02-18T13:04:21Z" comment="Failing to prove humanness within 24 hours">
        <block duration="infinite" flags="nocreate" />
      </item>
      <item logid="2222" ns="2" title="User:JaredPhan558350" pageid="0" logpage="0" type="block" action="block" user="Admin" timestamp="2016-02-18T13:04:07Z" comment="Failing to prove humanness within 24 hours">
        <block duration="infinite" flags="nocreate" />
      </item>
      <item logid="2221" ns="2" title="User:JaredPhan558350" pageid="0" logpage="0" userid="293" type="newusers" action="create" user="JaredPhan558350" timestamp="2016-02-18T07:42:13Z" comment="" />
    </logevents>
  </query>
</api>