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.gslin.org/wiki/%E9%A6%96%E9%A1%B5",
            "sitename": "Gea-Suan Lin's Wiki",
            "logo": "https://wiki.gslin.org/resources/assets/sumikkogurashi-penguin.png",
            "generator": "MediaWiki 1.39.3",
            "phpversion": "8.3.6",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "10.6.17-MariaDB-1:10.6.17+maria~ubu2204",
            "externalimages": [
                ""
            ],
            "langconversion": "",
            "linkconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:>",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "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": "\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": "\u81fa\u7063\u6b63\u9ad4"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "UTC",
            "timeoffset": 0,
            "articlepath": "/wiki/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://wiki.gslin.org",
            "servername": "wiki.gslin.org",
            "wikiid": "mediawiki",
            "time": "2024-05-18T20:49:24Z",
            "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
                },
                {
                    "width": 2560,
                    "height": 2048
                }
            ],
            "favicon": "https://wiki.gslin.org/favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "uppercase",
            "nofollownsexceptions": [],
            "nofollowdomainexceptions": [
                "mediawiki.org"
            ],
            "citeresponsivereferences": ""
        }
    }
}