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>
    <allfileusages gafcontinue="Bahri-profile.png" />
  </query-continue>
  <query>
    <pages>
      <page pageid="3631" ns="6" title="File:BAMF-HQ 1.jpg" />
      <page pageid="3632" ns="6" title="File:BAMF-HQ 2.jpg" />
      <page pageid="3694" ns="6" title="File:BAMF-Headquarter 1.jpg" />
      <page pageid="3695" ns="6" title="File:BAMF-Headquarter 2.jpg" />
      <page pageid="6382" ns="6" title="File:Background-digital-studios.png" />
      <page pageid="5870" ns="6" title="File:Bad news I&#039;m back 02.jpg" />
      <page pageid="5873" ns="6" title="File:Bad news I&#039;m back After Completion.jpg" />
      <page pageid="5871" ns="6" title="File:Bad news I&#039;m back Completion.jpg" />
      <page pageid="5874" ns="6" title="File:Bad news I&#039;m back How to get there.jpg" />
      <page pageid="5869" ns="6" title="File:Bad news I&#039;m back Start 01.jpg" />
    </pages>
  </query>
</api>