MediaWiki API 結果

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

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

參見完整文件,或API說明以取得更多資訊。

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "7": {
                "pageid": 7,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Xiplus",
                        "comment": "\u5fa9\u539f\u7531[[Special:Contributions/Xiplus-bot|Xiplus-bot]] ([[User talk:Xiplus-bot|\u5c0d\u8a71]])\u7684\u7de8\u8f2f\uff1b\u66f4\u6539\u56de[[User:Xiplus|Xiplus]]\u7684\u6700\u5f8c\u4e00\u500b\u7248\u672c"
                    }
                ]
            }
        },
        "general": {
            "mainpage": "\u7af9\u5712Wiki:\u9996\u9801",
            "base": "https://tnfshwiki.tfcis.org/%E7%AB%B9%E5%9C%92Wiki:%E9%A6%96%E9%A0%81",
            "sitename": "\u7af9\u5712Wiki",
            "logo": "https://tnfshwiki.tfcis.org/images/wiki.png",
            "generator": "MediaWiki 1.39.2",
            "phpversion": "8.1.2-1ubuntu2.9",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "10.6.11-MariaDB-0ubuntu0.22.04.1-log",
            "langconversion": "",
            "linkconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:>",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "case": "first-letter",
            "lang": "zh-tw",
            "fallback": [
                {
                    "code": "zh-hant"
                },
                {
                    "code": "zh-hk"
                },
                {
                    "code": "zh"
                },
                {
                    "code": "zh-hans"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-950",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "Asia/Chongqing",
            "timeoffset": 480,
            "articlepath": "/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://tnfshwiki.tfcis.org",
            "servername": "tnfshwiki.tfcis.org",
            "wikiid": "tnfshwiki-tnfshwiki_",
            "time": "2024-05-24T00:17:13Z",
            "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://tnfshwiki.tfcis.org/images/Favicon.ico",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "categorycollation": "uppercase",
            "nofollowlinks": "",
            "nofollownsexceptions": [],
            "nofollowdomainexceptions": [
                "mediawiki.org"
            ],
            "mobileserver": "https://tnfshwiki.tfcis.org",
            "wikibase-propertytypes": {
                "commonsMedia": {
                    "valuetype": "string"
                },
                "geo-shape": {
                    "valuetype": "string"
                },
                "tabular-data": {
                    "valuetype": "string"
                },
                "entity-schema": {
                    "valuetype": "string"
                },
                "url": {
                    "valuetype": "string"
                },
                "external-id": {
                    "valuetype": "string"
                },
                "wikibase-item": {
                    "valuetype": "wikibase-entityid"
                },
                "wikibase-property": {
                    "valuetype": "wikibase-entityid"
                },
                "globe-coordinate": {
                    "valuetype": "globecoordinate"
                },
                "monolingualtext": {
                    "valuetype": "monolingualtext"
                },
                "quantity": {
                    "valuetype": "quantity"
                },
                "string": {
                    "valuetype": "string"
                },
                "time": {
                    "valuetype": "time"
                }
            },
            "wikibase-conceptbaseuri": "https://tnfshwiki.tfcis.org/entity/",
            "wikibase-geoshapestoragebaseurl": "https://commons.wikimedia.org/wiki/",
            "wikibase-tabulardatastoragebaseurl": "https://commons.wikimedia.org/wiki/",
            "citeresponsivereferences": ""
        }
    }
}