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>
    <messagegroups>
      <group id="!sandbox" label="Sandbox messages" description="Suggests messages to translate for sandboxed users" class="SandboxMessageGroup" exists="" />
      <group id="wiki-sidebar" label="Sidebar" description="Messages used in the sidebar of this wiki" class="WikiMessageGroup" exists="" />
      <group id="page-Кафедра:История" label="Кафедра:История" description="Перевод вики-страницы [[:Кафедра:История|Кафедра:История]] с русский (ru)." class="WikiPageMessageGroup" exists="" />
      <group id="page-Кафедра:Контакты" label="Кафедра:Контакты" description="Перевод вики-страницы [[:Кафедра:Контакты|Кафедра:Контакты]] с русский (ru)." class="WikiPageMessageGroup" exists="" />
      <group id="!additions" label="Недавние дополнения" description="Эта группа показывает новые и изменённые сообщения." class="RecentAdditionsMessageGroup" exists="" />
      <group id="!recent" label="Недавние переводы" description="Эта группа сообщений отображает все недавние переводы на данный язык.&#10;Этот режим наиболее полезен для задач проверки." class="RecentMessageGroup" exists="" />
    </messagegroups>
  </query>
</api>