MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "2776": {
                "pageid": 2776,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Guoyunhe",
                        "comment": "\u91cd\u5b9a\u5411\u9875\u9762\u81f3[[\u9996\u9875]]"
                    }
                ]
            }
        },
        "general": {
            "mainpage": "\u9996\u9875",
            "base": "https://zh.opensuse.org/%E9%A6%96%E9%A1%B5",
            "sitename": "openSUSE Wiki",
            "logo": "https://static.opensuse.org/favicon.svg",
            "generator": "MediaWiki 1.27.7",
            "phpversion": "7.4.33",
            "phpsapi": "apache2handler",
            "dbtype": "mysql",
            "dbversion": "11.2.3-MariaDB-log",
            "externalimages": [
                ""
            ],
            "langconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:",
            "case": "first-letter",
            "lang": "zh",
            "fallback": [
                {
                    "code": "zh-hans"
                },
                {
                    "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": "\u5927\u9646\u7b80\u4f53"
                },
                {
                    "code": "zh-hk",
                    "name": "\u9999\u6e2f\u7e41\u9ad4"
                },
                {
                    "code": "zh-mo",
                    "name": "\u6fb3\u9580\u7e41\u9ad4"
                },
                {
                    "code": "zh-my",
                    "name": "\u5927\u9a6c\u7b80\u4f53"
                },
                {
                    "code": "zh-sg",
                    "name": "\u65b0\u52a0\u5761\u7b80\u4f53"
                },
                {
                    "code": "zh-tw",
                    "name": "\u53f0\u7063\u6b63\u9ad4"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "timezone": "UTC",
            "timeoffset": 0,
            "articlepath": "/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://zh.opensuse.org",
            "servername": "zh.opensuse.org",
            "wikiid": "wiki_zh",
            "time": "2024-05-11T13:33:27Z",
            "uploadsenabled": "",
            "maxuploadsize": 104857600,
            "minuploadchunksize": 1024,
            "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://static.opensuse.org/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ]
        }
    }
}