MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20160521150400|41",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 51,
                "ns": 0,
                "title": "\u6731\u4fca\u5cf0",
                "pageid": 7,
                "logpage": 7,
                "params": {
                    "curid": 65,
                    "previd": 64,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Jason",
                "timestamp": "2020-02-05T18:04:36Z",
                "comment": ""
            },
            {
                "logid": 50,
                "ns": 0,
                "title": "\u6731\u4fca\u5cf0",
                "pageid": 7,
                "logpage": 7,
                "params": {
                    "curid": 64,
                    "previd": 63,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Jason",
                "timestamp": "2020-02-05T17:55:34Z",
                "comment": ""
            },
            {
                "logid": 49,
                "ns": 0,
                "title": "\u6731\u4fca\u5cf0",
                "pageid": 7,
                "logpage": 7,
                "params": {
                    "curid": 63,
                    "previd": 62,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Jason",
                "timestamp": "2020-02-05T17:51:45Z",
                "comment": ""
            },
            {
                "logid": 48,
                "ns": 0,
                "title": "\u6731\u4fca\u5cf0",
                "pageid": 7,
                "logpage": 7,
                "params": {
                    "curid": 62,
                    "previd": 51,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Jason",
                "timestamp": "2020-02-05T17:49:20Z",
                "comment": ""
            },
            {
                "logid": 47,
                "ns": 0,
                "title": "\u514d\u8d23\u58f0\u660e",
                "pageid": 0,
                "logpage": 4,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Jason",
                "timestamp": "2020-02-05T17:01:57Z",
                "comment": "\u5185\u5bb9\u4e3a\uff1a\u201c\u4e00\u3001\u672c\u7ad9\u5185\u6536\u5f55\u7684\u6240\u6709\u6559\u7a0b\u4e0e\u8d44\u6e90\u5747\u6765\u81ea\u4e8e\u4e92\u8054\u7f51\uff0c\u5176\u7248\u6743\u5747\u5f52\u539f\u4f5c\u8005\u53ca\u5176\u7f51\u7ad9\u6240\u6709\uff0c\u672c\u7ad9\u867d\u529b\u6c42\u4fdd\u5b58\u539f...\u201d\uff0c\u552f\u4e00\u8d21\u732e\u8005\u662f\u201c[[Special:Contributions/Jason|Jason]]\u201d\uff08[[User talk:Jason|\u8ba8\u8bba]]\uff09"
            },
            {
                "logid": 46,
                "ns": 0,
                "title": "\u514d\u8d23\u58f0\u660e",
                "pageid": 0,
                "logpage": 4,
                "params": {
                    "curid": 61,
                    "previd": 6,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Jason",
                "timestamp": "2020-02-05T17:00:28Z",
                "comment": ""
            },
            {
                "logid": 45,
                "ns": 0,
                "title": "\u9996\u9875",
                "pageid": 1,
                "logpage": 1,
                "params": {
                    "curid": 60,
                    "previd": 56,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Jason",
                "timestamp": "2017-03-31T03:11:25Z",
                "comment": ""
            },
            {
                "logid": 44,
                "ns": 2,
                "title": "\u7528\u6237:295524423",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 3
                },
                "type": "newusers",
                "action": "create",
                "user": "295524423",
                "timestamp": "2017-03-09T00:44:07Z",
                "comment": ""
            },
            {
                "logid": 43,
                "ns": 0,
                "title": "\u91d1\u6b63\u6069",
                "pageid": 0,
                "logpage": 9,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Jason",
                "timestamp": "2016-05-21T15:05:54Z",
                "comment": "\u5185\u5bb9\uff1a\u201c{{noteTA |1=zh-cn:\u671d\u9c9c\u6c11\u4e3b\u4e3b\u4e49\u4eba\u6c11\u5171\u548c\u56fd; zh-tw:\u671d\u9bae\u6c11\u4e3b\u4e3b\u7fa9\u4eba\u6c11\u5171\u548c\u570b; zh-hk:\u671d\u9bae\u6c11\u4e3b\u4e3b\u7fa9\u4eba\u6c11\u5171\u548c\u570b; |2=zh-cn:\u671d\u9c9c; zh-tw:...\u201d\uff08\u552f\u4e00\u8d21\u732e\u8005\u4e3a\u201c[[Special:Contributions/Jason19659|Jason19659]]\u201d\uff09"
            },
            {
                "logid": 42,
                "ns": 4,
                "title": "Jason's wiki:\u5173\u4e8e",
                "pageid": 44,
                "logpage": 44,
                "params": {
                    "curid": 57,
                    "previd": 0,
                    "auto": ""
                },
                "type": "patrol",
                "action": "patrol",
                "user": "Jason",
                "timestamp": "2016-05-21T15:05:07Z",
                "comment": ""
            }
        ]
    }
}