MediaWiki API 結果

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

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

參見完整文件,或API幫助以獲取更多信息。

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20121018204001|7369",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 7379,
                "ns": 6,
                "title": "\u6a94\u6848:\u563b\u563b\u563b.gif",
                "pageid": 0,
                "logpage": 8989,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Twhk2011",
                "timestamp": "2015-08-14T10:33:46Z",
                "comment": ""
            },
            {
                "logid": 7378,
                "ns": 6,
                "title": "\u6a94\u6848:\u563b\u563b\u563b.gif",
                "pageid": 0,
                "logpage": 8989,
                "params": {
                    "img_sha1": "7bj6pk1lf2cz2i8ekrn2ik6myziss4w",
                    "img_timestamp": "2015-08-14T10:31:51Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Twhk2011",
                "timestamp": "2015-08-14T10:31:51Z",
                "comment": ""
            },
            {
                "logid": 7377,
                "ns": 0,
                "title": "\u6240\u6709\u65b0\u805e",
                "pageid": 8988,
                "logpage": 8988,
                "params": {
                    "target_ns": 10,
                    "target_title": "\u6a21\u677f:\u6240\u6709\u65b0\u805e"
                },
                "type": "move",
                "action": "move",
                "user": "Wasami007",
                "timestamp": "2013-12-25T02:57:39Z",
                "comment": "\u4fbf\u65bc\u66f4\u65b0\u65b0\u805e\u63a1\u7528\u6a21\u677f\u65b9\u5f0f\u5448\u73fe"
            },
            {
                "logid": 7376,
                "ns": 2,
                "title": "\u4f7f\u7528\u8005:Orin",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "0": "5999"
                },
                "type": "newusers",
                "action": "create2",
                "user": "Irvin",
                "timestamp": "2013-01-25T13:14:36Z",
                "comment": ""
            },
            {
                "logid": 7375,
                "ns": 2,
                "title": "\u4f7f\u7528\u8005:Zxcvbnm",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "duration": "infinite",
                    "flags": [
                        "nocreate",
                        "noautoblock",
                        "noemail"
                    ]
                },
                "type": "block",
                "action": "reblock",
                "user": "Petercpg",
                "timestamp": "2012-11-07T13:45:04Z",
                "comment": "Spam"
            },
            {
                "logid": 7374,
                "ns": 2,
                "title": "\u4f7f\u7528\u8005:#166",
                "pageid": 0,
                "logpage": 0,
                "params": {},
                "type": "block",
                "action": "unblock",
                "user": "Petercpg",
                "timestamp": "2012-11-07T13:44:02Z",
                "comment": ""
            },
            {
                "logid": 7373,
                "ns": 2,
                "title": "\u4f7f\u7528\u8005:Zxcvbnm",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "duration": "infinite",
                    "flags": [
                        "nocreate",
                        "noemail"
                    ]
                },
                "type": "block",
                "action": "block",
                "user": "Petercpg",
                "timestamp": "2012-11-07T13:43:35Z",
                "comment": "Spam"
            },
            {
                "logid": 7372,
                "ns": 0,
                "title": "\u9999\u6e2f\u516d\u5408\u5f69\u5168\u5e74\u8d44\u6599-\u516d\u5408\u5f69 \u4e00\u7801\u4e2d\u7279-\u767e\u5ea6\u77e5\u9053www.738393.com",
                "pageid": 0,
                "logpage": 0,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Petercpg",
                "timestamp": "2012-11-07T13:43:09Z",
                "comment": "\u5927\u91cf\u522a\u9664\u7531 [[Special:Contributions/Zxcvbnm|Zxcvbnm]] \u6240\u5efa\u7acb\u7684\u9801\u9762"
            },
            {
                "logid": 7371,
                "ns": 0,
                "title": "\u9999\u6e2f\u516d\u5408\u5f69\u4e00\u7801\u4e2d\u7279\u4f1a\u5458\u6599738393.com",
                "pageid": 0,
                "logpage": 0,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Petercpg",
                "timestamp": "2012-11-07T13:43:09Z",
                "comment": "\u5927\u91cf\u522a\u9664\u7531 [[Special:Contributions/Zxcvbnm|Zxcvbnm]] \u6240\u5efa\u7acb\u7684\u9801\u9762"
            },
            {
                "logid": 7370,
                "ns": 14,
                "title": "\u5206\u985e:\u6469\u8332\u9023\u7e8c\u805a",
                "pageid": 3994,
                "logpage": 3994,
                "params": {
                    "curid": 26959,
                    "previd": 24510,
                    "auto": ""
                },
                "type": "patrol",
                "action": "patrol",
                "user": "Petercpg",
                "timestamp": "2012-11-07T13:40:41Z",
                "comment": ""
            }
        ]
    }
}