MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20221113120928|17",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 27,
                "ns": 2,
                "title": "\u7528\u6237:MyName",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 13
                },
                "type": "newusers",
                "action": "create",
                "user": "MyName",
                "timestamp": "2025-03-30T06:11:14Z",
                "comment": ""
            },
            {
                "logid": 26,
                "ns": 2,
                "title": "\u7528\u6237:Hello",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 11
                },
                "type": "newusers",
                "action": "create",
                "user": "Hello",
                "timestamp": "2025-03-30T06:11:14Z",
                "comment": ""
            },
            {
                "logid": 25,
                "ns": 2,
                "title": "\u7528\u6237:Alice",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 12
                },
                "type": "newusers",
                "action": "create",
                "user": "Alice",
                "timestamp": "2025-03-30T06:11:14Z",
                "comment": ""
            },
            {
                "logid": 24,
                "ns": 2,
                "title": "\u7528\u6237:John",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 10
                },
                "type": "newusers",
                "action": "create",
                "user": "John",
                "timestamp": "2025-03-29T09:17:58Z",
                "comment": ""
            },
            {
                "logid": 23,
                "ns": 2,
                "title": "\u7528\u6237:\u67d0\u4e2a\u8def\u4eba",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 9
                },
                "type": "newusers",
                "action": "create",
                "user": "\u67d0\u4e2a\u8def\u4eba",
                "timestamp": "2023-04-13T20:14:52Z",
                "comment": ""
            },
            {
                "logid": 22,
                "ns": 2,
                "title": "\u7528\u6237:0",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 8
                },
                "type": "newusers",
                "action": "create",
                "user": "0",
                "timestamp": "2023-01-01T08:46:49Z",
                "comment": ""
            },
            {
                "logid": 21,
                "ns": 2,
                "title": "\u7528\u6237:Ethelchristinawalker",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 7
                },
                "type": "newusers",
                "action": "create",
                "user": "Ethelchristinawalker",
                "timestamp": "2022-12-21T09:46:32Z",
                "comment": ""
            },
            {
                "logid": 20,
                "ns": 0,
                "title": "\u5feb\u901f\u5347\u5929\u6307\u5357",
                "pageid": 13,
                "logpage": 13,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "SimpleAstronaut",
                "timestamp": "2022-11-13T12:13:02Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c== \u5e8f\u8a00 == === \u5f15\u8a00 === \u7b80\u5355\u706b\u7bad2\u662f\u4e00\u6b3e\u76f8\u5bf9\u5c0f\u4f17\u7684\u5f00\u653e\u4e16\u754c3D\u7684\u7a7a\u95f4\u6a21\u62df\u5668\uff0c\u5141\u8bb8\u4f60\u5efa\u9020\u706b\u7bad\u3001\u98de\u673a\u3001\u6f2b\u6e38\u8005\u6216\u8005\u4efb\u4f55\u4f60\u80fd\u60f3\u8c61\u5230\u7684\u4e1c\u897f\uff0c\u63a2\u7d22\u9ad8\u5ea6\u8be6\u7ec6\u76843D\u884c\u661f\u3002\u6e38\u620f\u8fd8\u5c06\u6559\u4f60\u5982\u4f55\u8d77\u98de\u3001\u5982\u4f55\u8fdb\u5165\u9884\u5b9a\u8f68\u9053\u548c\u7740\u9646\u7b49\u7b49\u3002\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4e0a\u4f20\u4f60\u7684\u521b\u9020\u54c1\u548c\u6c99\u76d2\uff0c\u4e0e\u793e\u533a\u5206\u4eab\uff0c\u8d5a\u53d6\u5206\u6570\u3002<br>  \u4e00\u65b9\u9762\uff0c\u822a\u7a7a\u822a\u5929\u7c7b\u6e38\u620f\u672c\u8eab\u76f8\u5bf9\u5c0f\u4f17\uff0c\u800c\u4e14\u8fd9\u7c7b\u6e38\u620f\u9700\u8981\u4e00\u5b9a\u91cf\u2026\u201d"
            },
            {
                "logid": 19,
                "ns": 6,
                "title": "\u6587\u4ef6:Main.png",
                "pageid": 12,
                "logpage": 12,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "SimpleAstronaut",
                "timestamp": "2022-11-13T12:12:35Z",
                "comment": ""
            },
            {
                "logid": 18,
                "ns": 6,
                "title": "\u6587\u4ef6:Main.png",
                "pageid": 12,
                "logpage": 12,
                "params": {
                    "img_sha1": "3gu9qma62h2ofa5l5jbxsal03w6nj77",
                    "img_timestamp": "2022-11-13T12:12:35Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "SimpleAstronaut",
                "timestamp": "2022-11-13T12:12:35Z",
                "comment": ""
            }
        ]
    }
}