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>
    <blocks>
      <block id="5" user="Le Nain Ob$cur" by="Le nain ob$cur" timestamp="2018-03-08T09:43:58Z" expiry="infinity" reason="Doublon" nocreate="" autoblock="" />
      <block id="1" user="DanaGironinirbz" by="WikiSysop" timestamp="2013-08-12T21:20:08Z" expiry="infinity" reason="Insertion répétée de liens externes publicitaires (spam)" nocreate="" autoblock="" />
    </blocks>
  </query>
</api>