MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "general": {
            "mainpage": "\u9996\u9875",
            "base": "http://leybreeze.com/wiki/index.php/%E9%A6%96%E9%A1%B5",
            "sitename": "\u5fae\u98ce\u7684\u7ef4\u57fa",
            "logo": "http://leybreeze.com/wiki/wikilogo.png",
            "generator": "MediaWiki 1.28.0",
            "phpversion": "7.1.33-50+ubuntu20.04.1+deb.sury.org+2",
            "phpsapi": "apache2handler",
            "dbtype": "mysql",
            "dbversion": "8.0.36-0ubuntu0.20.04.1",
            "imagewhitelistenabled": "",
            "langconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "case": "first-letter",
            "lang": "zh-cn",
            "fallback": [
                {
                    "code": "zh-hans"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "Asia/Chongqing",
            "timeoffset": 480,
            "articlepath": "/wiki/index.php/$1",
            "scriptpath": "/wiki",
            "script": "/wiki/index.php",
            "variantarticlepath": false,
            "server": "http://leybreeze.com",
            "servername": "leybreeze.com",
            "wikiid": "leyswiki",
            "time": "2024-11-25T16:45:18Z",
            "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": "http://leybreeze.com/blog/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": []
        },
        "namespaces": {
            "-2": {
                "id": -2,
                "case": "first-letter",
                "canonical": "Media",
                "*": "\u5a92\u4f53\u6587\u4ef6"
            },
            "-1": {
                "id": -1,
                "case": "first-letter",
                "canonical": "Special",
                "*": "\u7279\u6b8a"
            },
            "0": {
                "id": 0,
                "case": "first-letter",
                "content": "",
                "*": ""
            },
            "1": {
                "id": 1,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Talk",
                "*": "\u8ba8\u8bba"
            },
            "2": {
                "id": 2,
                "case": "first-letter",
                "subpages": "",
                "canonical": "User",
                "*": "\u7528\u6237"
            },
            "3": {
                "id": 3,
                "case": "first-letter",
                "subpages": "",
                "canonical": "User talk",
                "*": "\u7528\u6237\u8ba8\u8bba"
            },
            "4": {
                "id": 4,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Project",
                "*": "\u5fae\u98ce\u7684\u7ef4\u57fa"
            },
            "5": {
                "id": 5,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Project talk",
                "*": "\u5fae\u98ce\u7684\u7ef4\u57fa\u8ba8\u8bba"
            },
            "6": {
                "id": 6,
                "case": "first-letter",
                "canonical": "File",
                "*": "\u6587\u4ef6"
            },
            "7": {
                "id": 7,
                "case": "first-letter",
                "subpages": "",
                "canonical": "File talk",
                "*": "\u6587\u4ef6\u8ba8\u8bba"
            },
            "8": {
                "id": 8,
                "case": "first-letter",
                "subpages": "",
                "canonical": "MediaWiki",
                "*": "MediaWiki"
            },
            "9": {
                "id": 9,
                "case": "first-letter",
                "subpages": "",
                "canonical": "MediaWiki talk",
                "*": "MediaWiki\u8ba8\u8bba"
            },
            "10": {
                "id": 10,
                "case": "first-letter",
                "canonical": "Template",
                "*": "\u6a21\u677f"
            },
            "11": {
                "id": 11,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Template talk",
                "*": "\u6a21\u677f\u8ba8\u8bba"
            },
            "12": {
                "id": 12,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Help",
                "*": "\u5e2e\u52a9"
            },
            "13": {
                "id": 13,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Help talk",
                "*": "\u5e2e\u52a9\u8ba8\u8bba"
            },
            "14": {
                "id": 14,
                "case": "first-letter",
                "canonical": "Category",
                "*": "\u5206\u7c7b"
            },
            "15": {
                "id": 15,
                "case": "first-letter",
                "subpages": "",
                "canonical": "Category talk",
                "*": "\u5206\u7c7b\u8ba8\u8bba"
            }
        },
        "namespacealiases": [
            {
                "id": -2,
                "*": "\u5a92\u4f53"
            },
            {
                "id": 1,
                "*": "\u5bf9\u8bdd"
            },
            {
                "id": 3,
                "*": "\u7528\u6237\u5bf9\u8bdd"
            },
            {
                "id": 6,
                "*": "Image"
            },
            {
                "id": 6,
                "*": "\u56fe\u50cf"
            },
            {
                "id": 6,
                "*": "\u6863\u6848"
            },
            {
                "id": 7,
                "*": "Image talk"
            },
            {
                "id": 7,
                "*": "\u56fe\u50cf\u5bf9\u8bdd"
            },
            {
                "id": 7,
                "*": "\u56fe\u50cf\u8ba8\u8bba"
            },
            {
                "id": 7,
                "*": "\u6587\u4ef6\u5bf9\u8bdd"
            },
            {
                "id": 7,
                "*": "\u6863\u6848\u5bf9\u8bdd"
            },
            {
                "id": 7,
                "*": "\u6863\u6848\u8ba8\u8bba"
            },
            {
                "id": 11,
                "*": "\u6a21\u677f\u5bf9\u8bdd"
            },
            {
                "id": 13,
                "*": "\u5e2e\u52a9\u5bf9\u8bdd"
            },
            {
                "id": 15,
                "*": "\u5206\u7c7b\u5bf9\u8bdd"
            }
        ],
        "statistics": {
            "pages": 138,
            "articles": 30,
            "edits": 1139,
            "images": 0,
            "users": 1,
            "activeusers": 1,
            "admins": 1,
            "jobs": 0
        }
    }
}