MediaWiki API 結果

這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。

指定format參數以更改輸出格式。要查看JSON格式的非HTML實現,設置format=json

參見完整文件,或API幫助以獲取更多信息。

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "1459": {
                "pageid": 1459,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Verosso",
                        "comment": ""
                    }
                ]
            }
        },
        "general": {
            "mainpage": "\u9996\u9801",
            "base": "https://wiki.moztw.org/%E9%A6%96%E9%A0%81",
            "sitename": "MozTW Wiki",
            "logo": "https://wiki.moztw.org/skins/MozTW/moztw_wiki.png",
            "generator": "MediaWiki 1.32.5",
            "phpversion": "7.3.4-1+ubuntu14.04.1+deb.sury.org+3",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "10.0.38-MariaDB-1~trusty",
            "langconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "git-hash": "30becb71b42c035b837d5fae4d0115d7aaf70579",
            "git-branch": "master",
            "case": "first-letter",
            "lang": "zh-tw",
            "fallback": [
                {
                    "code": "zh-hant"
                },
                {
                    "code": "zh-hans"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-950",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "Asia/Taipei",
            "timeoffset": 480,
            "articlepath": "/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://wiki.moztw.org",
            "servername": "wiki.moztw.org",
            "wikiid": "wikidb",
            "time": "2024-04-24T00:25:41Z",
            "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
                }
            ],
            "favicon": "https://wiki.moztw.org/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "uppercase"
        }
    }
}