MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20190804121113|3493",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 3503,
                "ns": 2,
                "title": "\u7528\u6237:Hxgdzyuyi",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "oldgroups": [],
                    "newgroups": [
                        "sysop",
                        "interface-admin"
                    ],
                    "oldmetadata": [],
                    "newmetadata": [
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        },
                        {
                            "group": "interface-admin",
                            "expiry": "infinity"
                        }
                    ]
                },
                "type": "rights",
                "action": "rights",
                "user": "Root",
                "timestamp": "2021-04-28T08:13:03Z",
                "comment": ""
            },
            {
                "logid": 3502,
                "ns": 2,
                "title": "\u7528\u6237:Hxgdzyuyi",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 5
                },
                "type": "newusers",
                "action": "create",
                "user": "Hxgdzyuyi",
                "timestamp": "2021-04-28T08:08:30Z",
                "comment": ""
            },
            {
                "logid": 3501,
                "ns": 0,
                "title": "\u51c9\u978b",
                "pageid": 2049,
                "logpage": 2049,
                "revid": 2575,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Root",
                "timestamp": "2019-08-05T15:21:40Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c[[\u6587\u4ef6:\u51c9\u978b-1.jpeg]]  [[\u6587\u4ef6:\u51c9\u978b-2.jpg]]  [[\u6587\u4ef6:\u51c9\u978b-3.jpeg]]\u201d"
            },
            {
                "logid": 3500,
                "ns": 6,
                "title": "\u6587\u4ef6:\u51c9\u978b-3.jpeg",
                "pageid": 2048,
                "logpage": 2048,
                "revid": 2574,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Root",
                "timestamp": "2019-08-05T15:20:36Z",
                "comment": "Uploaded with [[mw:Extension:SimpleBatchUpload|SimpleBatchUpload]]"
            },
            {
                "logid": 3499,
                "ns": 6,
                "title": "\u6587\u4ef6:\u51c9\u978b-3.jpeg",
                "pageid": 2048,
                "logpage": 2048,
                "revid": 2574,
                "params": {
                    "img_sha1": "8a1k8ekzut6ayfrw0w0ukqnz9e41vlp",
                    "img_timestamp": "2019-08-05T15:20:36Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Root",
                "timestamp": "2019-08-05T15:20:36Z",
                "comment": "Uploaded with [[mw:Extension:SimpleBatchUpload|SimpleBatchUpload]]"
            },
            {
                "logid": 3498,
                "ns": 6,
                "title": "\u6587\u4ef6:\u51c9\u978b-2.jpg",
                "pageid": 2047,
                "logpage": 2047,
                "revid": 2573,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Root",
                "timestamp": "2019-08-05T15:20:36Z",
                "comment": "Uploaded with [[mw:Extension:SimpleBatchUpload|SimpleBatchUpload]]"
            },
            {
                "logid": 3497,
                "ns": 6,
                "title": "\u6587\u4ef6:\u51c9\u978b-2.jpg",
                "pageid": 2047,
                "logpage": 2047,
                "revid": 2573,
                "params": {
                    "img_sha1": "k55i6nsgq6gbd61c57aaz5n84oy1vyl",
                    "img_timestamp": "2019-08-05T15:20:36Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Root",
                "timestamp": "2019-08-05T15:20:36Z",
                "comment": "Uploaded with [[mw:Extension:SimpleBatchUpload|SimpleBatchUpload]]"
            },
            {
                "logid": 3496,
                "ns": 6,
                "title": "\u6587\u4ef6:\u51c9\u978b-1.jpeg",
                "pageid": 2046,
                "logpage": 2046,
                "revid": 2572,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Root",
                "timestamp": "2019-08-05T15:20:35Z",
                "comment": "Uploaded with [[mw:Extension:SimpleBatchUpload|SimpleBatchUpload]]"
            },
            {
                "logid": 3495,
                "ns": 6,
                "title": "\u6587\u4ef6:\u51c9\u978b-1.jpeg",
                "pageid": 2046,
                "logpage": 2046,
                "revid": 2572,
                "params": {
                    "img_sha1": "ewhhehdsxrbtw8blamb9546jricprc8",
                    "img_timestamp": "2019-08-05T15:20:35Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Root",
                "timestamp": "2019-08-05T15:20:35Z",
                "comment": "Uploaded with [[mw:Extension:SimpleBatchUpload|SimpleBatchUpload]]"
            },
            {
                "logid": 3494,
                "ns": 0,
                "title": "\u6ce5\u5851",
                "pageid": 2045,
                "logpage": 2045,
                "revid": 2570,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Root",
                "timestamp": "2019-08-04T12:11:59Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c[[\u859b\u57ce\u533a\u91d1\u6cb3\u4e61\u6d1b\u623f\u6ce5\u5851]]\u201d"
            }
        ]
    }
}