You are looking at the HTML representation of the TXT 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 TXT format, set format=txt.
See the complete documentation, or API help for more information.
Array
(
    [query] => Array
        (
            [namespaces] => Array
                (
                    [-2] => Array
                        (
                            [id] => -2
                            [case] => first-letter
                            [*] => Medium
                            [canonical] => Media
                        )

                    [-1] => Array
                        (
                            [id] => -1
                            [case] => first-letter
                            [*] => Spezial
                            [canonical] => Special
                        )

                    [0] => Array
                        (
                            [id] => 0
                            [case] => first-letter
                            [*] => 
                            [subpages] => 
                            [content] => 
                        )

                    [1] => Array
                        (
                            [id] => 1
                            [case] => first-letter
                            [*] => Diskussion
                            [subpages] => 
                            [canonical] => Talk
                        )

                    [2] => Array
                        (
                            [id] => 2
                            [case] => first-letter
                            [*] => Benutzer
                            [subpages] => 
                            [canonical] => User
                        )

                    [3] => Array
                        (
                            [id] => 3
                            [case] => first-letter
                            [*] => Benutzer Diskussion
                            [subpages] => 
                            [canonical] => User talk
                        )

                    [4] => Array
                        (
                            [id] => 4
                            [case] => first-letter
                            [*] => Medienvielfalt-Wiki
                            [subpages] => 
                            [canonical] => Project
                        )

                    [5] => Array
                        (
                            [id] => 5
                            [case] => first-letter
                            [*] => Medienvielfalt-Wiki Diskussion
                            [subpages] => 
                            [canonical] => Project talk
                        )

                    [6] => Array
                        (
                            [id] => 6
                            [case] => first-letter
                            [*] => Datei
                            [canonical] => File
                        )

                    [7] => Array
                        (
                            [id] => 7
                            [case] => first-letter
                            [*] => Datei Diskussion
                            [subpages] => 
                            [canonical] => File talk
                        )

                    [8] => Array
                        (
                            [id] => 8
                            [case] => first-letter
                            [*] => MediaWiki
                            [subpages] => 
                            [canonical] => MediaWiki
                        )

                    [9] => Array
                        (
                            [id] => 9
                            [case] => first-letter
                            [*] => MediaWiki Diskussion
                            [subpages] => 
                            [canonical] => MediaWiki talk
                        )

                    [10] => Array
                        (
                            [id] => 10
                            [case] => first-letter
                            [*] => Vorlage
                            [canonical] => Template
                        )

                    [11] => Array
                        (
                            [id] => 11
                            [case] => first-letter
                            [*] => Vorlage Diskussion
                            [subpages] => 
                            [canonical] => Template talk
                        )

                    [12] => Array
                        (
                            [id] => 12
                            [case] => first-letter
                            [*] => Hilfe
                            [subpages] => 
                            [canonical] => Help
                        )

                    [13] => Array
                        (
                            [id] => 13
                            [case] => first-letter
                            [*] => Hilfe Diskussion
                            [subpages] => 
                            [canonical] => Help talk
                        )

                    [14] => Array
                        (
                            [id] => 14
                            [case] => first-letter
                            [*] => Kategorie
                            [canonical] => Category
                        )

                    [15] => Array
                        (
                            [id] => 15
                            [case] => first-letter
                            [*] => Kategorie Diskussion
                            [subpages] => 
                            [canonical] => Category talk
                        )

                    [274] => Array
                        (
                            [id] => 274
                            [case] => first-letter
                            [*] => Widget
                            [canonical] => Widget
                        )

                    [275] => Array
                        (
                            [id] => 275
                            [case] => first-letter
                            [*] => Widget Diskussion
                            [subpages] => 
                            [canonical] => Widget talk
                        )

                    [310] => Array
                        (
                            [id] => 310
                            [case] => first-letter
                            [*] => Group
                            [canonical] => Group
                        )

                    [311] => Array
                        (
                            [id] => 311
                            [case] => first-letter
                            [*] => Group talk
                            [canonical] => Group talk
                        )

                    [420] => Array
                        (
                            [id] => 420
                            [case] => first-letter
                            [*] => Layer
                            [canonical] => Layer
                        )

                    [421] => Array
                        (
                            [id] => 421
                            [case] => first-letter
                            [*] => Layer Diskussion
                            [canonical] => Layer talk
                        )

                    [460] => Array
                        (
                            [id] => 460
                            [case] => case-sensitive
                            [*] => Campaign
                            [canonical] => Campaign
                            [defaultcontentmodel] => Campaign
                        )

                    [461] => Array
                        (
                            [id] => 461
                            [case] => case-sensitive
                            [*] => Campaign talk
                            [canonical] => Campaign talk
                        )

                    [710] => Array
                        (
                            [id] => 710
                            [case] => first-letter
                            [*] => TimedText
                            [canonical] => TimedText
                        )

                    [711] => Array
                        (
                            [id] => 711
                            [case] => first-letter
                            [*] => TimedText talk
                            [canonical] => TimedText talk
                        )

                )

        )

)