MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20260419081611|1222",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 1232,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 550,
                "params": {},
                "type": "profile",
                "action": "profile",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:28:54Z",
                "comment": "\u66f4\u6539\u4e86\u6bb5\u843d 'custom'"
            },
            {
                "logid": 1231,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 550,
                "params": {},
                "type": "profile",
                "action": "profile",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:27:59Z",
                "comment": "\u66f4\u6539\u4e86\u6bb5\u843d 'personal'"
            },
            {
                "logid": 1230,
                "ns": 200,
                "title": "UserWiki:Kandwiches",
                "pageid": 551,
                "logpage": 551,
                "revid": 1251,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:21:15Z",
                "comment": "import user wiki"
            },
            {
                "logid": 1229,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 550,
                "params": {},
                "type": "profile",
                "action": "profile",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:20:50Z",
                "comment": "\u66f4\u6539\u4e86\u6bb5\u843d 'basic'"
            },
            {
                "logid": 1228,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 550,
                "revid": 1250,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:20:31Z",
                "comment": "create user page"
            },
            {
                "logid": 1227,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 0,
                "params": {},
                "type": "profile",
                "action": "profile",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:20:31Z",
                "comment": "\u66f4\u6539\u4e86\u6bb5\u843d 'basic'"
            },
            {
                "logid": 1226,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 0,
                "params": {},
                "type": "avatar",
                "action": "avatar",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T10:16:33Z",
                "comment": "\u4e0a\u4f20\u4e86\u65b0\u5934\u50cf"
            },
            {
                "logid": 1225,
                "ns": 2,
                "title": "User:Kandwiches",
                "pageid": 550,
                "logpage": 0,
                "params": {
                    "userid": 79
                },
                "type": "newusers",
                "action": "create",
                "user": "Kandwiches",
                "timestamp": "2026-04-19T09:56:17Z",
                "comment": ""
            },
            {
                "logid": 1224,
                "ns": 0,
                "title": "Deleted:\u6d4b\u8bd5",
                "pageid": 0,
                "logpage": 549,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "IDOMOY",
                "timestamp": "2026-04-19T08:33:02Z",
                "comment": ""
            },
            {
                "logid": 1223,
                "ns": 0,
                "title": "Deleted:\u6d4b\u8bd5",
                "pageid": 0,
                "logpage": 549,
                "revid": 1249,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "IDOMOY",
                "timestamp": "2026-04-19T08:32:21Z",
                "comment": "\u5f52\u6863\u533a\u57df\u6d4b\u8bd5"
            }
        ]
    }
}