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="20130317054614|230" />
  </query-continue>
  <query>
    <logevents>
      <item logid="240" ns="0" title="Main Page" pageid="2" logpage="2" type="patrol" action="patrol" user="Head Monkey" timestamp="2016-02-04T06:47:17Z" comment="">
        <patrol cur="780" prev="777" auto="1" />
      </item>
      <item logid="239" ns="8" title="MediaWiki:Sidebar" pageid="291" logpage="291" type="patrol" action="patrol" user="Head Monkey" timestamp="2016-01-16T13:19:22Z" comment="">
        <patrol cur="779" prev="778" auto="1" />
      </item>
      <item logid="238" ns="8" title="MediaWiki:Sidebar" pageid="291" logpage="291" type="patrol" action="patrol" user="Head Monkey" timestamp="2016-01-16T13:18:05Z" comment="">
        <patrol cur="778" prev="0" auto="1" />
      </item>
      <item logid="237" ns="0" title="Main Page" pageid="2" logpage="2" type="patrol" action="patrol" user="Head Monkey" timestamp="2016-01-16T12:51:23Z" comment="">
        <patrol cur="777" prev="774" auto="1" />
      </item>
      <item logid="236" ns="0" title="MonkeyCAM" pageid="290" logpage="290" type="patrol" action="patrol" user="Head Monkey" timestamp="2014-10-13T02:33:05Z" comment="">
        <patrol cur="776" prev="775" auto="1" />
      </item>
      <item logid="235" ns="0" title="MonkeyCAM" pageid="290" logpage="290" type="patrol" action="patrol" user="Head Monkey" timestamp="2014-10-13T02:32:16Z" comment="">
        <patrol cur="775" prev="0" auto="1" />
      </item>
      <item logid="234" ns="2" title="User:Helen Todd" pageid="36" logpage="36" type="rights" action="rights" user="Head Monkey" timestamp="2013-03-17T07:37:53Z" comment="">
        <rights new="sysop, bureaucrat" old="" />
      </item>
      <item logid="233" ns="2" title="User:Helen Todd" pageid="36" logpage="36" type="newusers" action="create2" user="Head Monkey" timestamp="2013-03-17T07:36:45Z" comment="">
        <param>2</param>
      </item>
      <item logid="232" ns="0" title="Main Page" pageid="2" logpage="2" type="patrol" action="patrol" user="Head Monkey" timestamp="2013-03-17T06:07:20Z" comment="">
        <patrol cur="774" prev="772" auto="1" />
      </item>
      <item logid="231" ns="2" title="User:Head Monkey" pageid="22" logpage="22" type="patrol" action="patrol" user="Head Monkey" timestamp="2013-03-17T05:49:51Z" comment="">
        <patrol cur="773" prev="143" auto="1" />
      </item>
    </logevents>
  </query>
</api>