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>
    <images gimcontinue="1|Flag_of_Croatia.svg" />
  </query-continue>
  <query>
    <pages>
      <page pageid="20958" ns="6" title="File:Flag of Albania.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-03-16T21:14:16Z" lastrevid="364005" counter="0" length="164" />
      <page pageid="351" ns="6" title="File:Flag of Argentina.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2522" counter="577" length="83" />
      <page pageid="352" ns="6" title="File:Flag of Australia.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2521" counter="528" length="83" />
      <page pageid="353" ns="6" title="File:Flag of Austria.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2524" counter="531" length="81" new="" />
      <page pageid="2154" ns="6" title="File:Flag of Belarus.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="7896" counter="0" length="103" new="" />
      <page pageid="354" ns="6" title="File:Flag of Belgium.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2527" counter="507" length="81" new="" />
      <page pageid="355" ns="6" title="File:Flag of Brazil.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2528" counter="520" length="80" new="" />
      <page pageid="383" ns="6" title="File:Flag of Bulgaria.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="3466" counter="461" length="67" />
      <page pageid="356" ns="6" title="File:Flag of Canada.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2529" counter="491" length="80" new="" />
      <page pageid="357" ns="6" title="File:Flag of Chile.svg" contentmodel="wikitext" pagelanguage="en" touched="2017-05-14T20:56:01Z" lastrevid="2530" counter="547" length="79" new="" />
    </pages>
  </query>
</api>