MediaWiki API 結果

這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。

指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json

參見完整文件,或API說明以取得更多資訊。

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20210816062953|200081",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 200091,
                "ns": 8,
                "title": "MediaWiki:Common.css",
                "pageid": 3196,
                "logpage": 3196,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2026-01-11T09:18:13Z",
                "comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300c/* \u6b64 CSS \u6703\u5957\u7528\u81f3\u6240\u6709\u7684\u4ecb\u9762\u5916\u89c0 */ #mw-content-text font a {     color: inherit !important; }\u300d\u7684\u65b0\u9801\u9762"
            },
            {
                "logid": 200090,
                "ns": 2,
                "title": "\u4f7f\u7528\u8005:Admin",
                "pageid": 100,
                "logpage": 100,
                "params": {
                    "oldgroups": [
                        "bureaucrat",
                        "sysop"
                    ],
                    "newgroups": [
                        "bureaucrat",
                        "sysop",
                        "sysops"
                    ],
                    "oldmetadata": [
                        {
                            "group": "bureaucrat",
                            "expiry": "infinity"
                        },
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        }
                    ],
                    "newmetadata": [
                        {
                            "group": "bureaucrat",
                            "expiry": "infinity"
                        },
                        {
                            "group": "sysop",
                            "expiry": "infinity"
                        },
                        {
                            "group": "sysops",
                            "expiry": "infinity"
                        }
                    ]
                },
                "type": "rights",
                "action": "rights",
                "user": "Admin",
                "timestamp": "2026-01-11T09:10:12Z",
                "comment": ""
            },
            {
                "logid": 200089,
                "ns": 0,
                "title": "Have A Hard Time Understanding Coupons? Read This",
                "pageid": 0,
                "logpage": 3196,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Laughbucket7",
                "timestamp": "2022-06-14T18:31:36Z",
                "comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300cIf you think that coupon clipping is an outdated practice, guess again. Coupons can be used for saving money on food, clothing, etc. There is always a way to get things for less money, and that's what coupons are for. Here are several ways to be smart when using coupons.  Save your coupons for sales where items are buy one but get two. You'll get two items for less than you would pay for even one. Often you will pay less than a quarter of the original price.\u2026\u300d\u7684\u65b0\u9801\u9762"
            },
            {
                "logid": 200088,
                "ns": 2,
                "title": "\u4f7f\u7528\u8005:Laughbucket7",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 9193
                },
                "type": "newusers",
                "action": "create",
                "user": "Laughbucket7",
                "timestamp": "2022-06-14T17:37:53Z",
                "comment": ""
            },
            {
                "logid": 200087,
                "ns": 10,
                "title": "\u6a21\u677f:Update",
                "pageid": 317,
                "logpage": 317,
                "params": {
                    "curid": 194444,
                    "previd": 11915,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Admin",
                "timestamp": "2021-09-06T03:36:07Z",
                "comment": ""
            },
            {
                "logid": 200086,
                "ns": 8,
                "title": "MediaWiki:Sidebar",
                "pageid": 5,
                "logpage": 5,
                "params": {
                    "curid": 194443,
                    "previd": 11933,
                    "auto": ""
                },
                "type": "patrol",
                "action": "autopatrol",
                "user": "Admin",
                "timestamp": "2021-09-06T03:34:45Z",
                "comment": ""
            },
            {
                "logid": 200085,
                "ns": 0,
                "title": "\u5176\u4ed6",
                "pageid": 76,
                "logpage": 76,
                "params": {
                    "count": {
                        "revisions": 167,
                        "files": 0
                    }
                },
                "type": "delete",
                "action": "restore",
                "user": "Admin",
                "timestamp": "2021-08-16T06:31:53Z",
                "comment": ""
            },
            {
                "logid": 200084,
                "ns": 0,
                "title": "\u7d66\u65b0\u4eba\u7684\u5efa\u8b70\u73a9\u6cd5",
                "pageid": 97,
                "logpage": 97,
                "params": {
                    "count": {
                        "revisions": 310,
                        "files": 0
                    }
                },
                "type": "delete",
                "action": "restore",
                "user": "Admin",
                "timestamp": "2021-08-16T06:31:52Z",
                "comment": ""
            },
            {
                "logid": 200083,
                "ns": 0,
                "title": "Opensource",
                "pageid": 16,
                "logpage": 16,
                "params": {
                    "count": {
                        "revisions": 13,
                        "files": 0
                    }
                },
                "type": "delete",
                "action": "restore",
                "user": "Admin",
                "timestamp": "2021-08-16T06:31:02Z",
                "comment": ""
            },
            {
                "logid": 200082,
                "ns": 0,
                "title": "\u526f\u8077\u696d",
                "pageid": 49,
                "logpage": 49,
                "params": {
                    "count": {
                        "revisions": 80,
                        "files": 0
                    }
                },
                "type": "delete",
                "action": "restore",
                "user": "Admin",
                "timestamp": "2021-08-16T06:29:59Z",
                "comment": ""
            }
        ]
    }
}