MediaWiki API 結果

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

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

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

{
    "warnings": {
        "main": {
            "*": "Security Warning: \"$wgDebugAPI\" is enabled."
        }
    },
    "parse": {
        "title": "API",
        "pageid": 0,
        "text": {
            "*": "<div class=\"mw-parser-output\"><p><a href=\"/index.php?title=%E5%90%88%E7%9C%BE%E7%99%BE%E7%A7%91:Sandbox&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"\u5408\u773e\u767e\u79d1:Sandbox (\u9801\u9762\u4e0d\u5b58\u5728)\">\u5408\u773e\u767e\u79d1:Sandbox</a>\n</p>\n<!-- \nNewPP limit report\nCached time: 20250427180114\nCache expiry: 86400\nReduced expiry: false\nComplications: []\nCPU time usage: 0.012 seconds\nReal time usage: 0.014 seconds\nPreprocessor visited node count: 2/1000000\nPost\u2010expand include size: 25/2097152 bytes\nTemplate argument size: 0/2097152 bytes\nHighest expansion depth: 2/100\nExpensive parser function count: 0/100\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 0/5000000 bytes\nExtLoops count: 0/100\nNumber of Wikibase entities loaded: 0/250\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00%    1.072      1 \u5408\u773e\u767e\u79d1:Sandbox\n100.00%    1.072      1 -total\n-->\n</div>"
        },
        "langlinks": [],
        "categories": [],
        "links": [
            {
                "ns": 4,
                "*": "\u5408\u773e\u767e\u79d1:Sandbox"
            }
        ],
        "templates": [
            {
                "ns": 4,
                "*": "\u5408\u773e\u767e\u79d1:Sandbox"
            }
        ],
        "images": [],
        "externallinks": [],
        "sections": [],
        "parsewarnings": [],
        "displaytitle": "<span class=\"mw-page-title-main\">API</span>",
        "iwlinks": [],
        "properties": [
            {
                "name": "unexpectedUnconnectedPage",
                "*": 0
            }
        ]
    }
}