MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20220217072805|1",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 11,
                "ns": 6,
                "title": "\u6587\u4ef6:\u5fd7\u671b\u6821\u5408\u5426\u5224\u5b9a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3.png",
                "pageid": 0,
                "logpage": 5,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Admin",
                "timestamp": "2022-02-19T03:28:20Z",
                "comment": ""
            },
            {
                "logid": 10,
                "ns": 6,
                "title": "\u6587\u4ef6:\u5fd7\u671b\u6821\u5408\u5426\u5224\u5b9a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f322.PNG",
                "pageid": 0,
                "logpage": 6,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Admin",
                "timestamp": "2022-02-19T03:27:03Z",
                "comment": ""
            },
            {
                "logid": 9,
                "ns": 6,
                "title": "\u6587\u4ef6:\u5fd7\u671b\u6821\u5408\u5426\u5224\u5b9a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f322.PNG",
                "pageid": 0,
                "logpage": 6,
                "revid": 30,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2022-02-19T03:26:45Z",
                "comment": "655655"
            },
            {
                "logid": 8,
                "ns": 6,
                "title": "\u6587\u4ef6:\u5fd7\u671b\u6821\u5408\u5426\u5224\u5b9a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f322.PNG",
                "pageid": 0,
                "logpage": 6,
                "revid": 30,
                "params": {
                    "img_sha1": "kegthymh16fjbm7bwdws3r0gk2lbp0y",
                    "img_timestamp": "2022-02-19T03:26:45Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Admin",
                "timestamp": "2022-02-19T03:26:45Z",
                "comment": "655655"
            },
            {
                "logid": 7,
                "ns": 6,
                "title": "\u6587\u4ef6:\u5fd7\u671b\u6821\u5408\u5426\u5224\u5b9a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3.png",
                "pageid": 0,
                "logpage": 5,
                "revid": 28,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2022-02-19T03:22:34Z",
                "comment": ""
            },
            {
                "logid": 6,
                "ns": 6,
                "title": "\u6587\u4ef6:\u5fd7\u671b\u6821\u5408\u5426\u5224\u5b9a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3.png",
                "pageid": 0,
                "logpage": 5,
                "revid": 28,
                "params": {
                    "img_sha1": "kegthymh16fjbm7bwdws3r0gk2lbp0y",
                    "img_timestamp": "2022-02-19T03:22:34Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Admin",
                "timestamp": "2022-02-19T03:22:34Z",
                "comment": ""
            },
            {
                "logid": 5,
                "ns": 1,
                "title": "\u8ba8\u8bba:\u9996\u9875",
                "pageid": 4,
                "logpage": 4,
                "revid": 15,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "\u307e\u3060\u306f",
                "timestamp": "2022-02-18T01:22:09Z",
                "comment": "/* \u65e9\u7a32\u30a2\u30ab\u30fb\u56db\u8c37\u5927\u585a\u4e88\u7fd2\u30b7\u30ea\u30fc\u30ba\u7b97\u6570\u4e0b\u5bfe\u7b56\u30dd\u30a4\u30f3\u30c8 5\u5e74\u751f\uff08\u7b2c3\u56de\uff09 */ \u65b0\u7ae0\u8282"
            },
            {
                "logid": 4,
                "ns": 2,
                "title": "\u7528\u6237:\u307e\u3060\u306f",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 3
                },
                "type": "newusers",
                "action": "create",
                "user": "\u307e\u3060\u306f",
                "timestamp": "2022-02-18T01:09:19Z",
                "comment": ""
            },
            {
                "logid": 3,
                "ns": 10,
                "title": "\u6a21\u677f:Ll",
                "pageid": 3,
                "logpage": 3,
                "revid": 5,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "240D:1A:566:CE00:79C1:E809:3171:58B9",
                "anon": "",
                "timestamp": "2022-02-17T07:59:33Z",
                "comment": "\u91cd\u5b9a\u5411\u9875\u9762\u81f3[[\u6a21\u677f:Localized link]]"
            },
            {
                "logid": 2,
                "ns": 10,
                "title": "\u6a21\u677f:InfoCard",
                "pageid": 2,
                "logpage": 2,
                "revid": 3,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "240D:1A:566:CE00:79C1:E809:3171:58B9",
                "anon": "",
                "timestamp": "2022-02-17T07:58:18Z",
                "comment": "\u5efa\u7acb\u5185\u5bb9\u4e3a\u201c<templatestyles src=\"InfoCard/styles.css\" /> <div class=\"wiki-template-infocard {{{class|}}}\"> \t<h3 class=\"wiki-template-infocard-title\">{{{heading}}}</h3> \t<div\u2026\u201d\u7684\u65b0\u9875\u9762"
            }
        ]
    }
}