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>
    <allpages apcontinue="Baku_City_Circuit" />
  </query-continue>
  <query>
    <allpages>
      <p pageid="1544" ns="0" title="BA Racing" />
      <p pageid="1444" ns="0" title="BA Racing SL" />
      <p pageid="4227" ns="0" title="BMB" />
      <p pageid="3862" ns="0" title="BackMarker Brigade" />
      <p pageid="4063" ns="0" title="Bahrain" />
      <p pageid="3416" ns="0" title="Bahrain GT Cup" />
      <p pageid="803" ns="0" title="Bahrain Grand Prix" />
      <p pageid="1181" ns="0" title="Bahrain International Circuit" />
      <p pageid="3352" ns="0" title="Bahrain Sport Series" />
      <p pageid="3743" ns="0" title="Bahrain Touring Cup" />
    </allpages>
  </query>
</api>