MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "general": {
            "mainpage": "Qiuwen:\u9996\u9875",
            "base": "https://www.qiuwenbaike.cn/wiki/Qiuwen:%E9%A6%96%E9%A1%B5",
            "sitename": "\u6c42\u95fb\u767e\u79d1",
            "logo": "https://www.qiuwenbaike.cn/resources/assets/qiuwen/square/blue.png",
            "generator": "MediaWiki 1.41.1",
            "phpversion": "8.1.28",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "11.3.2-MariaDB-1:11.3.2+maria~ubu2204-log",
            "langconversion": "",
            "linkconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:>=",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "git-hash": "7a58b2e0571bacf146def99bd980eb719b00761a",
            "git-branch": "REL1_41-qw",
            "case": "first-letter",
            "lang": "zh",
            "fallback": [
                {
                    "code": "zh-hans"
                },
                {
                    "code": "zh-hant"
                },
                {
                    "code": "zh-cn"
                },
                {
                    "code": "zh-tw"
                },
                {
                    "code": "zh-hk"
                },
                {
                    "code": "en"
                }
            ],
            "variants": [
                {
                    "code": "zh",
                    "name": "\u4e0d\u8f6c\u6362"
                },
                {
                    "code": "zh-hans",
                    "name": "\u7b80\u4f53"
                },
                {
                    "code": "zh-hant",
                    "name": "\u7e41\u9ad4"
                },
                {
                    "code": "zh-cn",
                    "name": "\u4e2d\u56fd\u5927\u9646\u7b80\u4f53"
                },
                {
                    "code": "zh-hk",
                    "name": "\u4e2d\u570b\u9999\u6e2f\u7e41\u9ad4"
                },
                {
                    "code": "zh-mo",
                    "name": "\u4e2d\u570b\u6fb3\u9580\u7e41\u9ad4"
                },
                {
                    "code": "zh-my",
                    "name": "\u9a6c\u6765\u897f\u4e9a\u7b80\u4f53"
                },
                {
                    "code": "zh-sg",
                    "name": "\u65b0\u52a0\u5761\u7b80\u4f53"
                },
                {
                    "code": "zh-tw",
                    "name": "\u4e2d\u570b\u81fa\u7063\u7e41\u9ad4"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "maxarticlesize": 4194304,
            "timezone": "Asia/Shanghai",
            "timeoffset": 480,
            "articlepath": "/wiki/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": "/$2/$1",
            "server": "https://www.qiuwenbaike.cn",
            "servername": "www.qiuwenbaike.cn",
            "wikiid": "zhqiuwenbaike",
            "time": "2024-04-26T08:35:52Z",
            "misermode": "",
            "uploadsenabled": "",
            "maxuploadsize": 2147483648,
            "minuploadchunksize": 1024,
            "galleryoptions": {
                "imagesPerRow": 0,
                "imageWidth": 120,
                "imageHeight": 120,
                "captionLength": "",
                "showBytes": "",
                "showDimensions": "",
                "mode": "traditional"
            },
            "thumblimits": [
                120,
                200,
                250,
                300,
                320
            ],
            "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://www.qiuwenbaike.cn/resources/assets/qiuwen/favicon/favicon.ico",
            "centralidlookupprovider": "CentralAuth",
            "allcentralidlookupproviders": [
                "CentralAuth",
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "pinyin-noprefix",
            "nofollowlinks": "",
            "nofollownsexceptions": [],
            "nofollowdomainexceptions": [
                "gongbiquanshu.cn",
                "qiuwenbaike.cn",
                "qiuwenbaike.wiki",
                "qiuwen.wiki",
                "qiuwen.net.cn",
                "qiuwen.org",
                "qwbk.cc",
                "qwbk.org",
                "zhongwen.wiki",
                "*.gongbiquanshu.cn",
                "*.qiuwenbaike.cn",
                "*.qiuwenbaike.wiki",
                "*.qiuwen.wiki",
                "*.qiuwen.net.cn",
                "*.qiuwen.org",
                "*.qwbk.cc",
                "*.qwbk.org",
                "*.zhongwen.wiki"
            ],
            "citeresponsivereferences": "",
            "linter": {
                "high": [
                    "deletable-table-tag",
                    "html5-misnesting",
                    "misc-tidy-replacement-issues",
                    "multiline-html-table-in-list",
                    "multiple-unclosed-formatting-tags",
                    "pwrap-bug-workaround",
                    "self-closed-tag",
                    "tidy-font-bug",
                    "tidy-whitespace-bug",
                    "unclosed-quotes-in-heading"
                ],
                "medium": [
                    "bogus-image-options",
                    "fostered",
                    "misnested-tag",
                    "multi-colon-escape",
                    "wikilink-in-extlink"
                ],
                "low": [
                    "missing-end-tag",
                    "obsolete-tag",
                    "stripped-tag"
                ],
                "none": [
                    "large-tables",
                    "missing-end-tag-in-heading"
                ]
            }
        }
    }
}