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>
    <allcategories accontinue="Apex_Legends_Mobile" />
  </query-continue>
  <query>
    <allcategories>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">2026 Gaming</c>
      <c size="1" pages="0" files="1" subcats="0" xml:space="preserve">8 Ball Pool Tips</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">AFK Arena</c>
      <c size="2" pages="2" files="0" subcats="0" xml:space="preserve">Account Security</c>
      <c size="2" pages="1" files="1" subcats="0" xml:space="preserve">Age of Apes</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Android</c>
      <c size="2" pages="2" files="0" subcats="0" xml:space="preserve">Android Games</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Android Games 2026</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Android Strategy</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Anti-Cheat Guides</c>
    </allcategories>
  </query>
</api>