MediaWiki API 結果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "\u6230\u58eb",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "26": {
                "pageid": 26,
                "ns": 0,
                "title": "\u4e00\u822c\u526f\u672c",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "<\u672c\u689d\u76ee\u8207\u900f\u8996\u93e1\u4e0d\u540c\u8655\uff1a\u4ee5\u602a\u7269\u7b49\u7d1a\u505a\u70ba\u6a19\u8a18\uff0c\u4e26\u975e\u53ef\u9032\u5165\u4e4b\u7b49\u7d1a>\n{|style=\"width:100%;\"\n! style=\"padding:2px;\" |<div class=\"common-box mp-title left-title\">\u4e09\u4eba\u526f\u672c</div>\n|-\n|\n{| style=\"width:100%;\"\n| style=\"width:33%; font-size:100%;\" |\n*[[\u5b89\u5fb7\u9b6f\u6751\u5167\u7926\u5751]]\n*[[\u5357\u65b9\u820a\u7926\u53e3]](8)\n*[[\u8001\u9df9\u7889\u5821]](13)\n*[[\u5f69\u7011\u6c34\u6d1e]](18)\n*[[\u574d\u584c\u7684\u77f3\u5751]](21)\n*[[\u7378\u9aa8\u6d1e\u7a74]](23)\n| style=\"width:34%; font-size:100%;\" |\n*[[\u9ab7\u9acf\u4e4b\u7a74]](27)\n*[[\u5e03\u862d\u5fb7\u4e4b\u6839]](31)\n*[[\u5287\u6bd2\u87f2\u6d1e]](35)\n*[[\u5730\u71b1\u88c2\u7e2b]](39)\n*[[\u5e02\u9577\u7684\u5922\u5883]](43)\n*[[\u7121\u4e4b\u6df1\u6df5]](47)\n| style=\"width:33%; font-size:100%;\" |\n*[[\u5730\u71b1\u7378\u7a74]](49)\n*[[\u5fb7\u83f2\u723e\u795e\u6bbf]](51)\n*[[\u53f2\u7279\u62c9\u7926\u8108\u6838\u5fc3]](53)\n*[[\u90aa\u6559\u796d\u58c7]](54)\n*[[\u6e67\u7011\u5c71]](56)\n*[[\u5fff\u6012\u6f29\u6e26]](57)\n|}"
                    }
                ]
            },
            "25": {
                "pageid": 25,
                "ns": 0,
                "title": "\u4e00\u822c\u5730\u5716",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "\n{|style=\"width:100%;\"\n! style=\"padding:2px;\" |<div class=\"common-box mp-title left-title\">\u4e00\u822c\u5730\u5716</div>\n|-\n|\n{| style=\"width:100%;\"\n| style=\"width:20%; font-size:100%;\" |\n*[[\u7070\u5ca9\u5c71]]\n*[[\u5be7\u975c\u4e4b\u4e18]]\n*[[\u5f69\u7011\u68ee\u6797]]\n*[[\u6208\u5fb7\u5c71\u57df]]\n*[[\u51b7\u98a8\u6d77\u7063]]\n*[[\u53e4\u8001\u6ebc\u5730]]\n*[[\u5e1d\u738b\u8c37]]\n| style=\"width:20%; font-size:100%;\" |\n*[[\u963f\u7dad\u62c9\u706b\u5c71]]\n*[[\u5927\u8349\u539f]]\n*[[\u7121\u76e1\u6c99\u6f20]]\n*[[\u5fb7\u83f2\u723e\u4e4b\u68ee]]\n*[[\u9ed1\u708e\u5cf0]]\n*[[\u8150\u673d\u6cbc\u6fa4]]\n*[[\u69ae\u8b7d\u9ad8\u5730]]\n| style=\"width:20%; font-size:100%;\" |\n*[[\u718a\u638c\u5c71\u8108]]\n*[[\u8cbb\u683c\u9b6f\u5c71\u8c37]]\n*[[\u5915\u66ae\u6c99\u6f20]]\n*[[\u6728\u5076\u53e2\u6797]]\n*[[\u5967\u79d8\u6797\u5730]]\n*[[\u5e7d\u975c\u4e4b\u74b0]]\n*[[\u6b98\u9177\u51b0\u539f]]\n| style=\"width:20%; font-size:100%;\" |\n*[[\u6b7b\u4ea1\u8c37\u5730]]\n*[[\u6708\u82b1\u8349\u539f]]\n*[[\u6012\u6d6a\u89d2]]\n*[[\u6069\u60e0\u6cbc\u5730]]\n*[[\u98b6\u98a8\u76c6\u5730]]\n*[[\u876e\u86c7\u96e8\u6797]]\n*[[\u71b1\u98a8\u8c37]]\n| style=\"width:20%; font-size:100%;\" |\n*[[\u6668\u66e6\u9ad8\u539f]]\n*[[\u6bc0\u6ec5\u4e4b\u5883]]\n*[[\u963f\u6d1b\u65af\u5e73\u539f]]\n*[[\u6590\u5229\u6d77\u6c83\u57ce]]\n*[[\u591a\u502b\u7279\u53e4\u738b\u570b]]\n*\u3000\n*\u3000\n|}"
                    }
                ]
            }
        }
    }
}