MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20250205120244|212",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 222,
                "ns": 828,
                "title": "\u6a21\u5757:BasicTest",
                "pageid": 137,
                "logpage": 137,
                "revid": 366,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-04-12T18:06:34Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201clocal p = {} function p.addTest()     return \"1 + 2 = \" .. tostring(1 + 2)  -- \u9a8c\u8bc1\u6570\u5b66\u8fd0\u7b97 end  function p.stringTest()     local str = \"LuaSandbox\"     return \"\u5b57\u7b26\u4e32\u53cd\u8f6c\uff1a\" .. string.reverse(str)  -- \u9a8c\u8bc1\u5b57\u7b26\u4e32\u5e93\u529f\u80fd end return p\u201d"
            },
            {
                "logid": 221,
                "ns": 828,
                "title": "\u6a21\u5757:SandboxSecurityTest",
                "pageid": 136,
                "logpage": 136,
                "revid": 365,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-04-12T17:53:53Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201clocal p = {} function p.fileAccessTest()     local ok, msg = pcall(function()         return io.open(\"/etc/passwd\"):read(\"*a\")  -- \u5c1d\u8bd5\u8bfb\u53d6\u7cfb\u7edf\u6587\u4ef6     end)     return ok and \"\u6587\u4ef6\u8bfb\u53d6\u6210\u529f\" or \"\u5b89\u5168\u62e6\u622a\uff1a\" .. msg end  function p.osExecuteTest()     local ok, msg = pcall(function()         return os.execute(\"ls /\")  -- \u5c1d\u8bd5\u6267\u884c Shell \u547d\u4ee4     end)     return ok and \"\u547d\u4ee4\u6267\u884c\u6210\u529f\" or \"\u5b89\u5168\u62e6\u622a\uff1a\" .. msg end return p\u201d"
            },
            {
                "logid": 220,
                "ns": 2,
                "title": "\u7528\u6237:Alice",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 8
                },
                "type": "newusers",
                "action": "create",
                "user": "Alice",
                "timestamp": "2025-03-01T09:47:53Z",
                "comment": ""
            },
            {
                "logid": 219,
                "ns": 2,
                "title": "\u7528\u6237:MyName",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 7
                },
                "type": "newusers",
                "action": "create",
                "user": "MyName",
                "timestamp": "2025-03-01T00:12:54Z",
                "comment": ""
            },
            {
                "logid": 218,
                "ns": 2,
                "title": "\u7528\u6237:John",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 6
                },
                "type": "newusers",
                "action": "create",
                "user": "John",
                "timestamp": "2025-02-28T23:24:54Z",
                "comment": ""
            },
            {
                "logid": 217,
                "ns": 2,
                "title": "\u7528\u6237:Hello",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 5
                },
                "type": "newusers",
                "action": "create",
                "user": "Hello",
                "timestamp": "2025-02-28T23:24:54Z",
                "comment": ""
            },
            {
                "logid": 216,
                "ns": 2,
                "title": "\u7528\u6237:TestUser",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 4
                },
                "type": "newusers",
                "action": "create",
                "user": "TestUser",
                "timestamp": "2025-02-28T23:24:54Z",
                "comment": ""
            },
            {
                "logid": 215,
                "ns": 0,
                "title": "\u5927\u660e\uff1a\u6211\u6700\u5f3a\u7687\u5b59\uff0c\u8bf7\u8001\u6731\u9000\u4f4d",
                "pageid": 135,
                "logpage": 135,
                "revid": 362,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-02-23T06:42:39Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c== \u300a\u5927\u660e\uff1a\u6211\u6700\u5f3a\u7687\u5b59\uff0c\u8bf7\u8001\u6731\u9000\u4f4d\u300b\u5c0f\u8bf4Wiki == '''\u300a\u5927\u660e\uff1a\u6211\u6700\u5f3a\u7687\u5b59\uff0c\u8bf7\u8001\u6731\u9000\u4f4d\u300b'''\u662f\u7f51\u7edc\u4f5c\u5bb6[[\u9648\u55b5\u545c]]\u521b\u4f5c\u7684\u5386\u53f2\u7a7f\u8d8a\u9898\u6750\u957f\u7bc7\u5c0f\u8bf4\uff0c\u9996\u53d1\u4e8e[[\u4e66\u65d7\u7f51]]\uff0c\u5168\u7f51\u7d2f\u8ba1\u9605\u8bfb\u91cf\u7834\u4ebf\uff0c\u6210\u4e3a2024-2025\u5e74\u5ea6\u73b0\u8c61\u7ea7\u4f5c\u54c1\u3002\u672c\u6761\u76ee\u4ece\u6545\u4e8b\u8bbe\u5b9a\u3001\u89d2\u8272\u89e3\u6790\u3001\u6838\u5fc3\u60c5\u8282\u3001\u521b\u4f5c\u5f71\u54cd\u56db\u5927\u7ef4\u5ea6\u8fdb\u884c\u5168\u9762\u89e3\u8bfb\uff0c\u5168\u6587\u91c7\u7528[[MediaWiki]]\u539f\u751f\u8bed\u6cd5\u6784\u5efa\uff0c\u7b26\u5408SEO\u4f18\u5316\u6807\u51c6\u3002  === \u6545\u2026\u201d"
            },
            {
                "logid": 214,
                "ns": 0,
                "title": "\u98ce\u541f\u6b66\u95e8",
                "pageid": 134,
                "logpage": 134,
                "revid": 361,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-02-23T06:22:20Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{DISPLAYTITLE:\u300a\u98ce\u541f\u6b66\u95e8\u300b\u5c0f\u8bf4Wiki - \u5c0f\u4e5d\u5f92\u4f5c\u54c1\u5168\u89e3\u6790}} '''\u300a\u98ce\u541f\u6b66\u95e8\u300b'''\u662f\u7f51\u7edc\u4f5c\u5bb6\u5c0f\u4e5d\u5f92\u521b\u4f5c\u7684\u90fd\u5e02\u56fd\u672f\u9898\u6750\u957f\u7bc7\u5c0f\u8bf4\uff0c\u9996\u53d1\u4e8e[[\u603b\u88c1\u5c0f\u8bf4\u7f51]]\uff0c\u622a\u81f32025\u5e742\u6708\u5df2\u8fde\u8f7d\u81f3\u516d\u767e\u4f59\u7ae0\u3002\u4f5c\u54c1\u4ee51980\u5e74\u4ee3\u9999\u6c5f\u4e3a\u80cc\u666f\uff0c\u8bb2\u8ff0\u5c11\u5e74\u5b81\u6000\u98ce\u5728\u56fd\u672f\u6c5f\u6e56\u4e2d\u7684\u6210\u957f\u4f20\u5947\uff0c\u878d\u5408\u4f20\u7edf\u6b66\u672f\u6587\u5316\u3001\u90fd\u5e02\u5546\u6218\u4e0e\u60ac\u7591\u590d\u4ec7\u5143\u7d20\u3002\u672c\u6587\u6863\u5305\u542b\u5b8c\u6574\u4e16\u754c\u89c2\u8bbe\u5b9a\u3001\u4eba\u7269\u5173\u7cfb\u56fe\u8c31\u53caSEO\u4f18\u5316\u2026\u201d"
            },
            {
                "logid": 213,
                "ns": 0,
                "title": "\u5973\u603b\u88c1\u7684\u5168\u80fd\u5175\u738b",
                "pageid": 133,
                "logpage": 133,
                "revid": 360,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-02-06T14:20:51Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c== \u300a\u5973\u603b\u88c1\u7684\u5168\u80fd\u5175\u738b\u300b\u4f5c\u54c1\u7ef4\u57fa ==  '''\u300a\u5973\u603b\u88c1\u7684\u5168\u80fd\u5175\u738b\u300b'''\u662f\u7531\u4e2d\u56fd\u7f51\u7edc\u6587\u5b66\u4f5c\u5bb6[[\u5bc2\u5bde\u7684\u821e\u8005]]\u521b\u4f5c\u7684\u90fd\u5e02\u5f02\u80fd\u9898\u6750\u957f\u7bc7\u5c0f\u8bf4\uff0c\u81ea2017\u5e749\u6708\u8d77\u5728[[\u4e66\u65d7\u5c0f\u8bf4]]\u5e73\u53f0\u8fde\u8f7d\uff0c\u622a\u81f32025\u5e741\u6708\u5df2\u66f4\u65b0\u81f36193\u7ae0\uff0c\u603b\u5b57\u6570\u7a81\u78342000\u4e07:cite[5]:cite[6]\u3002\u8be5\u4f5c\u54c1\u5f00\u521b\"\u5175\u738b+\u5546\u6218+\u540e\u5bab\"\u590d\u5408\u578b\u53d9\u4e8b\u6a21\u5f0f\uff0c\u957f\u671f\u5360\u636e\u90fd\u5e02\u5206\u7c7b\u7545\u9500\u699c\u524d\u4e09\uff0c\u88ab\u8a89\u4e3a\"\u90fd\u5e02\u723d\u6587\u5dc5\u5cf0\u4e4b\u4f5c\"\u3002  === \u6838\u5fc3\u4e16\u2026\u201d"
            }
        ]
    }
}