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 gapcontinue="Tomasz_Spórna" />
  </query-continue>
  <query>
    <pages>
      <page pageid="337" ns="0" title="Tarnowskie Góry" contentmodel="wikitext" pagelanguage="pl" touched="2017-04-06T06:53:11Z" lastrevid="2920" counter="25068" length="25407" />
      <page pageid="1059" ns="0" title="Teatry dramatyczne na Górnym Śląsku" contentmodel="wikitext" pagelanguage="pl" touched="2019-03-13T09:21:56Z" lastrevid="7844" counter="265" length="46236" />
      <page pageid="1058" ns="0" title="Teatry niemieckojęzyczne na Górnym Śląsku" contentmodel="wikitext" pagelanguage="pl" touched="2019-03-13T09:18:12Z" lastrevid="7841" counter="389" length="44079" />
      <page pageid="359" ns="0" title="Telewizja" contentmodel="wikitext" pagelanguage="pl" touched="2014-12-23T09:00:55Z" lastrevid="2603" counter="4874" length="27423" />
    </pages>
  </query>
</api>