MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "logevents": [
            {
                "logid": 7,
                "ns": 2,
                "title": "\u7528\u6237:Appbeta",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "oldgroups": [
                        "sysop"
                    ],
                    "newgroups": [
                        "sysop",
                        "interface-admin",
                        "bureaucrat"
                    ],
                    "oldmetadata": [
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        }
                    ],
                    "newmetadata": [
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        },
                        {
                            "group": "interface-admin",
                            "expiry": "infinity"
                        },
                        {
                            "group": "bureaucrat",
                            "expiry": "infinity"
                        }
                    ]
                },
                "type": "rights",
                "action": "rights",
                "user": "Admin",
                "timestamp": "2023-10-26T07:23:29Z",
                "comment": ""
            },
            {
                "logid": 6,
                "ns": 2,
                "title": "\u7528\u6237:Appbeta",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "oldgroups": [],
                    "newgroups": [
                        "sysop"
                    ],
                    "oldmetadata": [],
                    "newmetadata": [
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        }
                    ]
                },
                "type": "rights",
                "action": "rights",
                "user": "Admin",
                "timestamp": "2023-10-26T07:23:01Z",
                "comment": ""
            },
            {
                "logid": 5,
                "ns": 2,
                "title": "\u7528\u6237:Appbeta",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 4
                },
                "type": "newusers",
                "action": "create2",
                "user": "Admin",
                "timestamp": "2023-10-26T07:21:34Z",
                "comment": ""
            },
            {
                "logid": 4,
                "ns": 8,
                "title": "MediaWiki:Vector.css",
                "pageid": 4,
                "logpage": 4,
                "revid": 15,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2023-09-25T23:25:10Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u6b64\u5904\u6240\u6709CSS\u5c06\u4e3a\u4f7f\u7528Vector\u76ae\u80a4\u7684\u7528\u6237\u52a0\u8f7d */ #p-tb {     margin-top: 10px; } .mw-body p {     font-size: 16px;     color: #444; } pre, .mw-code {     display: block;     overflow-x: auto;     padding: 20px !important;     background: #edf0f3 !important;     border: none !important;     font-family: 'Consolas','Courier New',Courier,monospace !important;     font-size: 14px !important; }  div#mw-panel #p-logo + div.portal div.body {     margin: 0;\u2026\u201d"
            },
            {
                "logid": 3,
                "ns": 8,
                "title": "MediaWiki:Common.css",
                "pageid": 3,
                "logpage": 3,
                "revid": 11,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2023-09-25T04:34:49Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u653e\u7f6e\u7684CSS\u5c06\u5e94\u7528\u4e8e\u6240\u6709\u76ae\u80a4 */ /*  * CSS for the Minecraft-style skin can be found at [[MediaWiki:Hydra.css]].  * This stylesheet is for desktop only; see [[MediaWiki:Mobile.css]] for mobile styles, and [[MediaWiki:Gadget-site-styles.css]] for global styles.  */ /* Note: Color styles may need to be coded as variables to support light, dark,  * and per-namespace themes correctly.  *  * Note 2: Currently the variable names aren't stable; they ma\u2026\u201d"
            },
            {
                "logid": 2,
                "ns": 0,
                "title": "\u4e2a\u4eba\u5b66\u4e60",
                "pageid": 2,
                "logpage": 2,
                "revid": 5,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2023-09-24T03:03:52Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c== \u6ce8\u518c\u5b89\u5168\u5de5\u7a0b\u5e08 ==  === \u6cd5\u5f8b\u6cd5\u89c4 ===  ==== \u6cd5\u5f8b ====  # [https://www.mem.gov.cn/fw/flfgbz/fg/202107/t20210716_416558.shtml \u5b89\u5168\u751f\u4ea7\u6cd5]  ==== \u884c\u653f\u6cd5\u89c4 ====  #  ==== \u90e8\u95e8\u89c4\u7ae0 ====  #\u201d"
            },
            {
                "logid": 1,
                "ns": 0,
                "title": "\u9996\u9875",
                "pageid": 1,
                "logpage": 1,
                "revid": 1,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "MediaWiki default",
                "timestamp": "2023-09-22T07:32:09Z",
                "comment": ""
            }
        ]
    }
}