MediaWiki API 结果

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

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

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

{
    "parse": {
        "title": "Wikipedia:Sandbox",
        "pageid": 123008,
        "revid": 10968360,
        "text": {
            "*": "<div class=\"mw-content-ltr mw-parser-output\" lang=\"zh\" dir=\"ltr\"><div class=\"redirectMsg\"><p>\u91cd\u5b9a\u5411\u5230\uff1a</p><ul class=\"redirectText\"><li><a href=\"/wiki/Wikipedia:%E6%B2%99%E7%9B%92\" title=\"Wikipedia:\u6c99\u76d2\">Wikipedia:\u6c99\u76d2</a></li></ul></div><link rel=\"mw:PageProp/redirect\" href=\"/wiki/Wikipedia:%E6%B2%99%E7%9B%92\">\n<!-- \nNewPP limit report\nParsed by mw\u2010api\u2010ext.eqiad.main\u201057bf68f7fc\u2010dpb6z\nCached time: 20250717055246\nCache expiry: 2592000\nReduced expiry: false\nComplications: []\nDiscussionTools time usage: 0.040 seconds\nCPU time usage: 0.040 seconds\nReal time usage: 0.043 seconds\nPreprocessor visited node count: 0/1000000\nRevision size: 0/2097152 bytes\nPost\u2010expand include size: 0/2097152 bytes\nTemplate argument size: 0/2097152 bytes\nHighest expansion depth: 0/100\nExpensive parser function count: 0/500\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 0/5000000 bytes\nNumber of Wikibase entities loaded: 0/500\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00%    0.000      1 -total\n-->\n\n<!-- Saved in parser cache with key zhwiki:pcache:123008:|#|:idhash:canonical!zh and timestamp 20250717055246 and revision id 10968360. Rendering was triggered because: api-parse\n -->\n</div>"
        },
        "langlinks": [],
        "categories": [],
        "links": [
            {
                "ns": 4,
                "exists": "",
                "*": "Wikipedia:\u6c99\u76d2"
            }
        ],
        "templates": [],
        "images": [],
        "externallinks": [],
        "sections": [],
        "parsewarnings": [],
        "displaytitle": "<span class=\"mw-page-title-namespace\">\u7ef4\u57fa\u767e\u79d1</span><span class=\"mw-page-title-separator\">:</span><span class=\"mw-page-title-main\">Sandbox</span>",
        "iwlinks": [],
        "properties": []
    }
}