MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "-1": {
                "ns": 0,
                "title": "Main Page",
                "missing": ""
            }
        },
        "general": {
            "mainpage": "\u9996\u9875",
            "base": "https://wiki.life100.live/index.php?title=%E9%A6%96%E9%A1%B5",
            "sitename": "\u7ef4\u57fa\u751f\u6d3b-\u4e13\u6ce8\u4e2a\u4eba\u5065\u5eb7\u7ba1\u7406\u7684\u767e\u79d1\u5168\u4e66",
            "logo": "https://wiki.life100.live/resources/assets/wiki-160.png",
            "generator": "MediaWiki 1.36.0-alpha",
            "phpversion": "7.3.24-3+ubuntu18.04.1+deb.sury.org+1",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "5.7.28-0ubuntu0.18.04.4",
            "langconversion": "",
            "linkconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "git-hash": "ccca045af4ef91dbb9f2cc634728891ce24b197d",
            "git-branch": "master",
            "case": "first-letter",
            "lang": "zh-cn",
            "fallback": [
                {
                    "code": "zh-hans"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "maxarticlesize": 10485760,
            "timezone": "Asia/Chongqing",
            "timeoffset": 480,
            "articlepath": "/index.php?title=$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://wiki.life100.live",
            "servername": "wiki.life100.live",
            "wikiid": "my_wiki",
            "time": "2024-11-10T18:18:36Z",
            "uploadsenabled": "",
            "maxuploadsize": 52428800,
            "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
                }
            ],
            "favicon": "https://wiki.life100.live/resources/assets/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "uppercase",
            "citeresponsivereferences": "",
            "mobileserver": "https://wiki.life100.live"
        }
    }
}