MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "2026-07-16 10:24:26+00|43",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 53,
                "ns": 8,
                "title": "MediaWiki:Sidebar",
                "pageid": 38,
                "logpage": 38,
                "revid": 69,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-17T06:56:08Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** specialpages-url|specialpages ** commons:Special:UploadWizard?campaign=tswiki&uselang=zh|upload * SEARCH * LANGUAGES\u201d"
            },
            {
                "logid": 52,
                "ns": -1,
                "title": "Special:Interwiki",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "prefix": "commons",
                    "url": "https://common.anwiki.top/$1",
                    "trans": 0,
                    "local": 0
                },
                "type": "interwiki",
                "action": "iw_add",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-17T05:38:58Z",
                "comment": "AnWiki Commons"
            },
            {
                "logid": 51,
                "ns": -1,
                "title": "Special:Interwiki",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "prefix": "anwiki-com",
                    "url": "https://common.anwiki.top/$1",
                    "trans": 0,
                    "local": 0
                },
                "type": "interwiki",
                "action": "iw_edit",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-17T05:34:19Z",
                "comment": ""
            },
            {
                "logid": 50,
                "ns": -1,
                "title": "Special:Interwiki",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "prefix": "anwiki-com",
                    "url": "https://common.anwiki.top/",
                    "trans": 0,
                    "local": 0
                },
                "type": "interwiki",
                "action": "iw_add",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-17T05:33:53Z",
                "comment": "AnWiki Commons"
            },
            {
                "logid": 49,
                "ns": 2,
                "title": "User:Imxiaoanag",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "oldgroups": [
                        "sysop"
                    ],
                    "newgroups": [
                        "sysop",
                        "bureaucrat",
                        "interface-admin"
                    ],
                    "oldmetadata": [
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        }
                    ],
                    "newmetadata": [
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        },
                        {
                            "group": "bureaucrat",
                            "expiry": "infinity"
                        },
                        {
                            "group": "interface-admin",
                            "expiry": "infinity"
                        }
                    ]
                },
                "type": "rights",
                "action": "rights",
                "user": "Maintenance script",
                "timestamp": "2026-07-17T05:13:28Z",
                "comment": ""
            },
            {
                "logid": 48,
                "ns": 4,
                "title": "\u5361\u8f66\u6a21\u62df\u4e2d\u6587\u7ef4\u57fa:\u8457\u4f5c\u6743",
                "pageid": 37,
                "logpage": 37,
                "revid": 66,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-16T12:16:13Z",
                "comment": "Update Copyright"
            },
            {
                "logid": 47,
                "ns": 4,
                "title": "\u5361\u8f66\u6a21\u62df\u4e2d\u6587\u7ef4\u57fa:\u514d\u8d23\u58f0\u660e",
                "pageid": 36,
                "logpage": 36,
                "revid": 65,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-16T12:08:24Z",
                "comment": "Update managing details"
            },
            {
                "logid": 46,
                "ns": 4,
                "title": "\u5361\u8f66\u6a21\u62df\u4e2d\u6587\u7ef4\u57fa:\u9690\u79c1\u653f\u7b56",
                "pageid": 35,
                "logpage": 35,
                "revid": 64,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-16T12:04:47Z",
                "comment": "Update managing details"
            },
            {
                "logid": 45,
                "ns": 4,
                "title": "\u5361\u8f66\u6a21\u62df\u4e2d\u6587\u7ef4\u57fa:\u5173\u4e8e",
                "pageid": 34,
                "logpage": 34,
                "revid": 63,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-16T12:00:44Z",
                "comment": "Update managing details"
            },
            {
                "logid": 44,
                "ns": 4,
                "title": "\u5361\u8f66\u6a21\u62df\u4e2d\u6587\u7ef4\u57fa:\u7f16\u8f91",
                "pageid": 33,
                "logpage": 33,
                "revid": 62,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2026-07-16T11:42:57Z",
                "comment": "Create a new page"
            }
        ]
    }
}