MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20200716100950|9859",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 9869,
                "ns": 6,
                "title": "File:DSC04534.jpg",
                "pageid": 7307,
                "logpage": 7307,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2020-12-11T05:37:27Z",
                "comment": ""
            },
            {
                "logid": 9868,
                "ns": 6,
                "title": "File:DSC04534.jpg",
                "pageid": 7307,
                "logpage": 7307,
                "params": {
                    "img_sha1": "b0gv94g81ocxmjru40oswutsztq7uju",
                    "img_timestamp": "2020-12-11T05:37:27Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Admin",
                "timestamp": "2020-12-11T05:37:27Z",
                "comment": ""
            },
            {
                "logid": 9867,
                "ns": 6,
                "title": "File:1x1.png",
                "pageid": 0,
                "logpage": 7306,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Admin",
                "timestamp": "2020-12-11T05:36:04Z",
                "comment": "Just for testing"
            },
            {
                "logid": 9866,
                "ns": 6,
                "title": "File:1x1.png",
                "pageid": 0,
                "logpage": 7306,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2020-12-11T05:35:49Z",
                "comment": ""
            },
            {
                "logid": 9865,
                "ns": 6,
                "title": "File:1x1.png",
                "pageid": 0,
                "logpage": 7306,
                "params": {
                    "img_sha1": "qcroj5xhcudx389y6g9jxl3q8l9vvc8",
                    "img_timestamp": "2020-12-11T05:35:49Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Admin",
                "timestamp": "2020-12-11T05:35:49Z",
                "comment": ""
            },
            {
                "logid": 9864,
                "ns": 8,
                "title": "MediaWiki:Mobile.css",
                "pageid": 7305,
                "logpage": 7305,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2020-07-22T11:04:43Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u653e\u7f6e\u7684CSS\u5c06\u5f71\u54cd\u4f7f\u7528\u79fb\u52a8\u7248\u7f51\u7ad9\u7684\u7528\u6237 */ .floatleft, .floatright { margin: 0; } .floatleft .image, .floatright .image { width: 100%; height: a\u2026\u201d"
            },
            {
                "logid": 9863,
                "ns": 6,
                "title": "File:1024.png",
                "pageid": 7304,
                "logpage": 7304,
                "params": {
                    "count": {
                        "revisions": 1,
                        "files": 1
                    }
                },
                "type": "delete",
                "action": "restore",
                "user": "Admin",
                "timestamp": "2020-07-21T10:14:03Z",
                "comment": ""
            },
            {
                "logid": 9862,
                "ns": 6,
                "title": "File:1024.png",
                "pageid": 7304,
                "logpage": 7304,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Admin",
                "timestamp": "2020-07-21T10:13:29Z",
                "comment": "test only"
            },
            {
                "logid": 9861,
                "ns": 6,
                "title": "File:1024.png",
                "pageid": 7304,
                "logpage": 7304,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2020-07-21T10:13:11Z",
                "comment": ""
            },
            {
                "logid": 9860,
                "ns": 6,
                "title": "File:1024.png",
                "pageid": 7304,
                "logpage": 7304,
                "params": {
                    "img_sha1": "f8kf6shktx68hmkxxl5t193y0dzeoku",
                    "img_timestamp": "2020-07-21T10:13:11Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Admin",
                "timestamp": "2020-07-21T10:13:11Z",
                "comment": ""
            }
        ]
    }
}