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 lestart="2025-04-28T17:20:15Z" />
  </query-continue>
  <query>
    <logevents>
      <item logid="958" ns="0" title="get system serial number" pageid="83" type="patrol" action="patrol" user="Nighthawk" timestamp="2026-06-25T15:27:33Z" comment="">
        <patrol cur="946" prev="944" auto="1" />
      </item>
      <item logid="957" ns="0" title="nokia - get serial number" pageid="275" type="move" action="move" user="Nighthawk" timestamp="2026-06-25T15:26:49Z" comment="">
        <move new_ns="0" new_title="get system serial number" />
      </item>
      <item logid="956" ns="0" title="nokia - get serial number" pageid="275" type="patrol" action="patrol" user="Nighthawk" timestamp="2026-06-25T15:26:09Z" comment="">
        <patrol cur="943" prev="131" auto="1" />
      </item>
      <item logid="955" ns="0" title="cpuse deployment agent" pageid="206" type="patrol" action="patrol" user="Nighthawk" timestamp="2026-03-29T02:23:11Z" comment="">
        <patrol cur="942" prev="885" auto="1" />
      </item>
      <item logid="954" ns="0" title="growing root partition" pageid="187" type="patrol" action="patrol" user="Nighthawk" timestamp="2025-10-25T02:21:56Z" comment="">
        <patrol cur="941" prev="940" auto="1" />
      </item>
      <item logid="953" ns="0" title="growing root partition" pageid="187" type="patrol" action="patrol" user="Nighthawk" timestamp="2025-10-25T02:21:23Z" comment="">
        <patrol cur="940" prev="568" auto="1" />
      </item>
      <item logid="952" ns="0" title="First time config &quot;wizard&quot; via CLI mode" pageid="274" type="patrol" action="patrol" user="Nighthawk" timestamp="2025-10-24T14:26:11Z" comment="">
        <patrol cur="939" prev="0" auto="1" />
      </item>
      <item logid="951" ns="0" title="fortinet CLI notes" pageid="261" type="patrol" action="patrol" user="Nighthawk" timestamp="2025-10-14T15:17:36Z" comment="">
        <patrol cur="938" prev="937" auto="1" />
      </item>
      <item logid="950" ns="0" title="fortinet CLI notes" pageid="261" type="patrol" action="patrol" user="Nighthawk" timestamp="2025-08-13T17:29:21Z" comment="">
        <patrol cur="937" prev="933" auto="1" />
      </item>
      <item logid="949" ns="0" title="big-ip notes" pageid="271" type="patrol" action="patrol" user="Nighthawk" timestamp="2025-05-13T16:21:00Z" comment="">
        <patrol cur="936" prev="926" auto="1" />
      </item>
    </logevents>
  </query>
</api>