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>
    <allimages gaicontinue="Amarec_settings_preset.png" />
  </query-continue>
  <query>
    <pages>
      <page pageid="162" ns="6" title="File:1st.png" />
      <page pageid="163" ns="6" title="File:2nd.png" />
      <page pageid="164" ns="6" title="File:3rd.png" />
      <page pageid="165" ns="6" title="File:4th.png" />
      <page pageid="9" ns="6" title="File:Amarec settings advanced.png" />
      <page pageid="10" ns="6" title="File:Amarec settings general.png" />
      <page pageid="11" ns="6" title="File:Amarec settings graph1.png" />
      <page pageid="27" ns="6" title="File:Amarec settings graph1 wiiu.png" />
      <page pageid="12" ns="6" title="File:Amarec settings graph2.png" />
      <page pageid="13" ns="6" title="File:Amarec settings graph3.png" />
    </pages>
  </query>
</api>