Warning: Invalid argument supplied for foreach() in /var/www/html/wiki/extensions/Gadgets/ApiQueryGadgets.php on line 55 MediaWiki API Result
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>
    <gadgets />
  </query>
</api>