MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "batchcomplete": "",
    "query": {
        "general": {
            "mainpage": "\u9996\u9875",
            "base": "https://wiki.ubuntu.org.cn/%E9%A6%96%E9%A1%B5",
            "sitename": "Ubuntu\u4e2d\u6587",
            "logo": "https://wiki.ubuntu.org.cn/images/logo.png",
            "generator": "MediaWiki 1.42.1",
            "phpversion": "8.1.2-1ubuntu2.19",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "8.0.40-0ubuntu0.22.04.1",
            "externalimages": [
                ""
            ],
            "langconversion": "",
            "linkconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:>=",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "case": "first-letter",
            "lang": "zh-hans",
            "fallback": [
                {
                    "code": "zh-cn"
                },
                {
                    "code": "zh"
                },
                {
                    "code": "zh-hant"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "Asia/Shanghai",
            "timeoffset": 480,
            "articlepath": "/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://wiki.ubuntu.org.cn",
            "servername": "wiki.ubuntu.org.cn",
            "wikiid": "ubuntuwiki",
            "time": "2024-11-21T09:16:59Z",
            "uploadsenabled": "",
            "maxuploadsize": 104857600,
            "minuploadchunksize": 1024,
            "galleryoptions": {
                "imagesPerRow": 0,
                "imageWidth": 120,
                "imageHeight": 120,
                "captionLength": "",
                "showBytes": "",
                "showDimensions": "",
                "mode": "traditional"
            },
            "thumblimits": [
                120,
                150,
                180,
                200,
                250,
                300
            ],
            "imagelimits": [
                {
                    "width": 320,
                    "height": 240
                },
                {
                    "width": 640,
                    "height": 480
                },
                {
                    "width": 800,
                    "height": 600
                },
                {
                    "width": 1024,
                    "height": 768
                },
                {
                    "width": 1280,
                    "height": 1024
                },
                {
                    "width": 2560,
                    "height": 2048
                }
            ],
            "favicon": "https://wiki.ubuntu.org.cn/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "uppercase",
            "nofollowlinks": "",
            "nofollownsexceptions": [],
            "nofollowdomainexceptions": [
                "mediawiki.org"
            ]
        }
    }
}