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>
    <random>
      <page id="1432" ns="0" title="Payment gateway plugin working example" />
      <page id="1457" ns="0" title="Updating page editor hooks for v4.9.3" />
    </random>
  </query>
</api>