MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20260115024240|1468",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 1478,
                "ns": 0,
                "title": "\u9996\u9875",
                "pageid": 1,
                "logpage": 1,
                "revid": 3302,
                "params": {
                    "description": "\u200e[edit=sysop] (\u65e0\u9650\u671f)\u200e[move=sysop] (\u65e0\u9650\u671f)",
                    "details": [
                        {
                            "type": "edit",
                            "level": "sysop",
                            "expiry": "infinite"
                        },
                        {
                            "type": "move",
                            "level": "sysop",
                            "expiry": "infinite"
                        }
                    ]
                },
                "type": "protect",
                "action": "modify",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T07:03:39Z",
                "comment": ""
            },
            {
                "logid": 1477,
                "ns": 10,
                "title": "\u6a21\u677f:\u9996\u9875/styles.css",
                "pageid": 1363,
                "logpage": 1363,
                "revid": 3299,
                "params": {
                    "description": "\u200e[edit=sysop] (\u65e0\u9650\u671f)\u200e[move=sysop] (\u65e0\u9650\u671f)",
                    "details": [
                        {
                            "type": "edit",
                            "level": "sysop",
                            "expiry": "infinite"
                        },
                        {
                            "type": "move",
                            "level": "sysop",
                            "expiry": "infinite"
                        }
                    ]
                },
                "type": "protect",
                "action": "protect",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T06:34:21Z",
                "comment": ""
            },
            {
                "logid": 1476,
                "ns": 0,
                "title": "\u9996\u9875/styles.css",
                "pageid": 0,
                "logpage": 1363,
                "revid": 3279,
                "params": {
                    "target_ns": 10,
                    "target_title": "\u6a21\u677f:\u9996\u9875/styles.css",
                    "suppressredirect": ""
                },
                "type": "move",
                "action": "move",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T05:43:19Z",
                "comment": ""
            },
            {
                "logid": 1475,
                "ns": 0,
                "title": "\u9996\u9875/styles.css",
                "pageid": 0,
                "logpage": 1363,
                "params": {
                    "oldmodel": "wikitext",
                    "newmodel": "sanitized-css"
                },
                "type": "contentmodel",
                "action": "change",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T05:37:25Z",
                "comment": ""
            },
            {
                "logid": 1474,
                "ns": 0,
                "title": "\u9996\u9875/styles.css",
                "pageid": 0,
                "logpage": 1363,
                "revid": 3277,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T05:34:52Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c@media (max-width: 700px) {     div[style*=\"display:flex\"] {         flex-direction: column;         align-items: flex-start;     } }\u201d"
            },
            {
                "logid": 1473,
                "ns": 6,
                "title": "\u6587\u4ef6:Book.png",
                "pageid": 1362,
                "logpage": 1362,
                "revid": 3269,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T03:44:18Z",
                "comment": "\u7f51\u7ad9\u5fbd\u6807"
            },
            {
                "logid": 1472,
                "ns": 6,
                "title": "\u6587\u4ef6:Book.png",
                "pageid": 1362,
                "logpage": 1362,
                "revid": 3269,
                "params": {
                    "img_sha1": "kbezikk5l83s2l2ewht1mhr8fltn0dv",
                    "img_timestamp": "2026-01-15T03:44:18Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T03:44:18Z",
                "comment": "\u7f51\u7ad9\u5fbd\u6807"
            },
            {
                "logid": 1471,
                "ns": 10,
                "title": "\u6a21\u677f:2024 UK Commons",
                "pageid": 0,
                "logpage": 1206,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T02:45:54Z",
                "comment": "\u5185\u5bb9\uff1a\u201c{{<includeonly>safesubst:</includeonly>#invoke:Unsubst||date=__DATE__ |$B= {{Ambox | name  = 2024 UK Commons | type  = notice | image = [[File:Crowned Portcullis redesign 2018.svg|50px|class=skin-invert|link=|alt=Crowned portcullis]] | text  = This {{#if:{{{party|}}}|party|article's subject}} '''[[2024 United Kingdom general election|{{#if:{{{party|}}}|participated in the 2024 general election|stood for re-election}}]] to the House of Commons of the United Kingdom|British Hou\u2026\u201d"
            },
            {
                "logid": 1470,
                "ns": 10,
                "title": "\u6a21\u677f:2024 Pakistani Election Constituency",
                "pageid": 0,
                "logpage": 1207,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T02:45:38Z",
                "comment": "\u5185\u5bb9\uff1a\u201c{{Short description|Template applicable for many Pakistani electoral constituencies}}  {{Ambox | name  = 2024 Pakistani Election Constituency | type  = notice  | image = [[File:Pakistan National Assembly constituencies (2023 delimitation).svg|60px]] | text  = This [[List of constituencies of Pakistan|Pakistani national or provincial assembly constituency]] was involved in the '''[[2024 Pakistani general election|February 2024 Pakistani General Election]]''', and may need updati\u2026\u201d"
            },
            {
                "logid": 1469,
                "ns": 10,
                "title": "\u6a21\u677f:2021 Senedd",
                "pageid": 0,
                "logpage": 1165,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "MM \u55b5\u4e86\u4e2a",
                "timestamp": "2026-01-15T02:45:10Z",
                "comment": "\u5185\u5bb9\uff1a\u201c{{<includeonly>safesubst:</includeonly>#invoke:Unsubst||date=__DATE__ |$B= {{Ambox | name  = 2021 Senedd | type  = notice | image = [[File:A_coloured_voting_box_(no_bg).svg|60px]] [[File:Royal_Badge_of_Wales.svg|60px]] | text  = '''The subject of this article was a member of the [[Welsh Parliament]] immediately prior to its dissolution on 29th April.''' Some of the content on this page may reflect the state of affairs from that time. [[2021 Senedd election|The election]] will t\u2026\u201d"
            }
        ]
    }
}