You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <variables>
      <variables id="wgDefaultTheme" xml:space="preserve" />
      <variables id="wgArticlePath" xml:space="preserve">/wiki/$1</variables>
      <variables id="wgScriptPath" xml:space="preserve" />
      <variables id="wgScript" xml:space="preserve">/index.php</variables>
      <variables id="wgServer" xml:space="preserve">https://pocket-trains.fandom.com</variables>
      <variables id="wgLanguageCode" xml:space="preserve">en</variables>
      <variables id="wgCityId" xml:space="preserve">834720</variables>
      <variables id="wgContentNamespaces">
        <value0 id="0" xml:space="preserve">0</value0>
      </variables>
      <variables id="wgWikiaGlobalUserGroups">
        <value0 id="0" xml:space="preserve">authenticated</value0>
        <value1 id="1" xml:space="preserve">beta</value1>
        <value2 id="2" xml:space="preserve">bot-global</value2>
        <value3 id="3" xml:space="preserve">content-reviewer</value3>
        <value4 id="4" xml:space="preserve">content-volunteer</value4>
        <value5 id="5" xml:space="preserve">council</value5>
        <value6 id="6" xml:space="preserve">helper</value6>
        <value7 id="7" xml:space="preserve">restricted-login</value7>
        <value8 id="8" xml:space="preserve">restricted-login-exempt</value8>
        <value9 id="9" xml:space="preserve">reviewer</value9>
        <value10 id="10" xml:space="preserve">staff</value10>
        <value11 id="11" xml:space="preserve">translator</value11>
        <value12 id="12" xml:space="preserve">util</value12>
        <value13 id="13" xml:space="preserve">vanguard</value13>
        <value14 id="14" xml:space="preserve">voldev</value14>
        <value15 id="15" xml:space="preserve">vstf</value15>
        <value16 id="16" xml:space="preserve">fandom-editor</value16>
        <value17 id="17" xml:space="preserve">global-discussions-moderator</value17>
        <value18 id="18" xml:space="preserve">request-to-be-forgotten-admin</value18>
        <value19 id="19" xml:space="preserve">wiki-manager</value19>
      </variables>
    </variables>
    <category catid="2" catname="Gaming" />
    <wikidesc langid="75" id="834720" catid="2" pagetitle="$1 - Pocket Trains Wiki" flags="0" db="pockettrains" position="c5" />
    <general mainpage="Pocket Trains Wiki" base="https://pocket-trains.fandom.com/wiki/Pocket_Trains_Wiki" sitename="Pocket Trains Wiki" generator="MediaWiki 1.19.24" phpversion="7.0.30" phpsapi="fpm-fcgi" dbtype="mysql" dbversion="5.7.25-28-log" case="first-letter" rights="CC-BY-SA" lang="en" fallback8bitEncoding="windows-1252" writeapi="" timezone="UTC" timeoffset="0" articlepath="/wiki/$1" scriptpath="" script="/index.php" variantarticlepath="" server="https://pocket-trains.fandom.com" wikiid="pockettrains" time="2019-06-17T14:04:20Z" misermode="">
      <fallback />
    </general>
    <namespaces>
      <ns id="-2" case="first-letter" canonical="Media" xml:space="preserve">Media</ns>
      <ns id="-1" case="first-letter" canonical="Special" xml:space="preserve">Special</ns>
      <ns id="0" case="first-letter" subpages="" content="" xml:space="preserve" />
      <ns id="1" case="first-letter" subpages="" canonical="Talk" xml:space="preserve">Talk</ns>
      <ns id="2" case="first-letter" subpages="" canonical="User" xml:space="preserve">User</ns>
      <ns id="3" case="first-letter" subpages="" canonical="User talk" xml:space="preserve">User talk</ns>
      <ns id="4" case="first-letter" subpages="" canonical="Project" xml:space="preserve">Pocket Trains Wiki</ns>
      <ns id="5" case="first-letter" subpages="" canonical="Project talk" xml:space="preserve">Pocket Trains Wiki talk</ns>
      <ns id="6" case="first-letter" subpages="" canonical="File" xml:space="preserve">File</ns>
      <ns id="7" case="first-letter" subpages="" canonical="File talk" xml:space="preserve">File talk</ns>
      <ns id="8" case="first-letter" subpages="" canonical="MediaWiki" xml:space="preserve">MediaWiki</ns>
      <ns id="9" case="first-letter" subpages="" canonical="MediaWiki talk" xml:space="preserve">MediaWiki talk</ns>
      <ns id="10" case="first-letter" subpages="" canonical="Template" xml:space="preserve">Template</ns>
      <ns id="11" case="first-letter" subpages="" canonical="Template talk" xml:space="preserve">Template talk</ns>
      <ns id="12" case="first-letter" subpages="" canonical="Help" xml:space="preserve">Help</ns>
      <ns id="13" case="first-letter" subpages="" canonical="Help talk" xml:space="preserve">Help talk</ns>
      <ns id="14" case="first-letter" subpages="" canonical="Category" xml:space="preserve">Category</ns>
      <ns id="15" case="first-letter" subpages="" canonical="Category talk" xml:space="preserve">Category talk</ns>
      <ns id="110" case="first-letter" subpages="" canonical="Forum" xml:space="preserve">Forum</ns>
      <ns id="111" case="first-letter" subpages="" canonical="Forum talk" xml:space="preserve">Forum talk</ns>
      <ns id="500" case="first-letter" subpages="" canonical="User blog" xml:space="preserve">User blog</ns>
      <ns id="501" case="first-letter" subpages="" canonical="User blog comment" xml:space="preserve">User blog comment</ns>
      <ns id="502" case="first-letter" subpages="" canonical="Blog" xml:space="preserve">Blog</ns>
      <ns id="503" case="first-letter" subpages="" canonical="Blog talk" xml:space="preserve">Blog talk</ns>
      <ns id="828" case="first-letter" subpages="" canonical="Module" xml:space="preserve">Module</ns>
      <ns id="829" case="first-letter" subpages="" canonical="Module talk" xml:space="preserve">Module talk</ns>
      <ns id="1200" case="first-letter" subpages="" canonical="Message Wall" xml:space="preserve">Message Wall</ns>
      <ns id="1201" case="first-letter" subpages="" canonical="Thread" xml:space="preserve">Thread</ns>
      <ns id="1202" case="first-letter" canonical="Message Wall Greeting" xml:space="preserve">Message Wall Greeting</ns>
    </namespaces>
    <statistics pages="1462" articles="79" edits="2430" images="360" users="20464051" activeusers="-1" admins="2" jobs="0" />
  </query>
</api>