MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "logevents": [
            {
                "logid": 9,
                "ns": 0,
                "title": "\u7ad9\u70b9\u51db\u51ac",
                "pageid": 4,
                "logpage": 4,
                "revid": 11,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T14:53:30Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c[[\u6587\u4ef6:Game-icon.png|\u7f29\u7565\u56fe|\u7ad9\u70b9\u51db\u51ac1280px\u2122]]\u201d"
            },
            {
                "logid": 8,
                "ns": 6,
                "title": "\u6587\u4ef6:Game-icon.png",
                "pageid": 3,
                "logpage": 3,
                "params": {
                    "count": {
                        "revisions": 1,
                        "files": 1
                    }
                },
                "type": "delete",
                "action": "restore",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T14:38:17Z",
                "comment": ""
            },
            {
                "logid": 7,
                "ns": 6,
                "title": "\u6587\u4ef6:Game-icon.png",
                "pageid": 3,
                "logpage": 3,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T14:37:00Z",
                "comment": "\u5185\u5bb9\u4e3a\uff1a\u201c\u7ad9\u70b9\u51db\u51ac\u5b98\u65b9\u6e38\u620f1280px\u56fe\u6807\u201d\uff0c\u552f\u4e00\u8d21\u732e\u8005\u662f\u201c[[Special:Contributions/L.Lawliet|L.Lawliet]]\u201d\uff08[[User talk:L.Lawliet|\u8ba8\u8bba]]\uff09"
            },
            {
                "logid": 6,
                "ns": 6,
                "title": "\u6587\u4ef6:Game-icon.png",
                "pageid": 3,
                "logpage": 3,
                "revid": 8,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T14:33:55Z",
                "comment": ""
            },
            {
                "logid": 5,
                "ns": 6,
                "title": "\u6587\u4ef6:Game-icon.png",
                "pageid": 3,
                "logpage": 3,
                "revid": 8,
                "params": {
                    "img_sha1": "o1secbar1it1l7pe3ssm7120pv9jjkr",
                    "img_timestamp": "2026-08-22T14:33:55Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T14:33:55Z",
                "comment": ""
            },
            {
                "logid": 4,
                "ns": 2,
                "title": "\u7528\u6237:L.Lawliet",
                "pageid": 2,
                "logpage": 2,
                "revid": 2,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T13:40:14Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c\u7ad9\u70b9\uff1a\u51db\u51ac wiki\u4e2d\u6587\u5b98\u65b9\u884c\u653f\u5458\u201d"
            },
            {
                "logid": 3,
                "ns": 2,
                "title": "\u7528\u6237:L.Lawliet",
                "pageid": 2,
                "logpage": 0,
                "params": {
                    "oldgroups": [],
                    "newgroups": [
                        "bureaucrat",
                        "interface-admin",
                        "suppress",
                        "sysop"
                    ],
                    "oldmetadata": [],
                    "newmetadata": [
                        {
                            "group": "bureaucrat",
                            "expiry": "infinity"
                        },
                        {
                            "group": "interface-admin",
                            "expiry": "infinity"
                        },
                        {
                            "group": "suppress",
                            "expiry": "infinity"
                        },
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        }
                    ]
                },
                "type": "rights",
                "action": "rights",
                "user": "YongAn404",
                "timestamp": "2026-08-22T13:39:05Z",
                "comment": ""
            },
            {
                "logid": 2,
                "ns": 2,
                "title": "\u7528\u6237:L.Lawliet",
                "pageid": 2,
                "logpage": 0,
                "params": {
                    "userid": 3
                },
                "type": "newusers",
                "action": "create",
                "user": "L.Lawliet",
                "timestamp": "2026-08-22T13:36:54Z",
                "comment": ""
            },
            {
                "logid": 1,
                "ns": 0,
                "title": "\u9996\u9875",
                "pageid": 1,
                "logpage": 1,
                "revid": 1,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "MediaWiki default",
                "timestamp": "2026-08-22T13:18:05Z",
                "comment": ""
            }
        ]
    }
}