MediaWiki API 結果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20210720201143|284",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 294,
                "ns": 0,
                "title": "Articles",
                "pageid": 106,
                "logpage": 106,
                "revid": 711,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Sharonwong",
                "timestamp": "2022-01-15T05:15:43Z",
                "comment": "Created page with \"<!-- The best documentation of DPL-3 extension arguments is found here: https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Criteria_for_page_selection --> <dpl>   category=Pillar Articles|Longevity|Glossary   notcategory=Drafts   includesubpages=false   mode=category   ordermethod=titlewithoutnamespace </dpl>   === [[Drafts]] ===\""
            },
            {
                "logid": 293,
                "ns": 6,
                "title": "File:PEARL 353px-Rapamycin.jpg",
                "pageid": 105,
                "logpage": 105,
                "revid": 707,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Sharonwong",
                "timestamp": "2021-09-01T08:50:13Z",
                "comment": ""
            },
            {
                "logid": 292,
                "ns": 6,
                "title": "File:PEARL 353px-Rapamycin.jpg",
                "pageid": 105,
                "logpage": 105,
                "revid": 707,
                "params": {
                    "img_sha1": "lvzw0hphh9v3rlyhje8h4zwxe1b4g2a",
                    "img_timestamp": "2021-09-01T08:50:13Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Sharonwong",
                "timestamp": "2021-09-01T08:50:13Z",
                "comment": ""
            },
            {
                "logid": 291,
                "ns": 6,
                "title": "File:Chemical structure 317px-Rapamycin2.jpg",
                "pageid": 104,
                "logpage": 104,
                "revid": 706,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Sharonwong",
                "timestamp": "2021-09-01T08:47:44Z",
                "comment": ""
            },
            {
                "logid": 290,
                "ns": 6,
                "title": "File:Chemical structure 317px-Rapamycin2.jpg",
                "pageid": 104,
                "logpage": 104,
                "revid": 706,
                "params": {
                    "img_sha1": "0jzy1zg8r67vh48lz6t5uw2karaepy8",
                    "img_timestamp": "2021-09-01T08:47:43Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Sharonwong",
                "timestamp": "2021-09-01T08:47:43Z",
                "comment": ""
            },
            {
                "logid": 289,
                "ns": 0,
                "title": "Rapamycin(\u96f7\u5e15\u9709\u7d20)",
                "pageid": 103,
                "logpage": 103,
                "revid": 702,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Sharonwong",
                "timestamp": "2021-08-01T05:04:23Z",
                "comment": "Created page with \"Rapamycin(\u96f7\u5e15\u9709\u7d20)\uff0c\u5176\u54c1\u724c\u540d\u7a31Rapamune\u00ae\uff0c\u662f\u4e00\u7a2e\u7528\u65bc\u9632\u6b62\u514d\u75ab\u7cfb\u7d71\u6392\u65a5\u5668\u5b98\u79fb\u690d\u7684\u5316\u5408\u7269\u3002Rapamycin\u662f\u7531\u590d\u6d3b\u5cf6\u7684\u571f\u58e4\u7d30\u83cc\u7522\u751f\u7684\u5929\u7136...\""
            },
            {
                "logid": 288,
                "ns": 2,
                "title": "User:Sharonwong",
                "pageid": 0,
                "logpage": 0,
                "params": {
                    "userid": 21
                },
                "type": "newusers",
                "action": "create",
                "user": "Sharonwong",
                "timestamp": "2021-08-01T04:56:21Z",
                "comment": ""
            },
            {
                "logid": 287,
                "ns": 0,
                "title": "Longevity Wiki",
                "pageid": 1,
                "logpage": 1,
                "params": {},
                "type": "protect",
                "action": "unprotect",
                "user": "Bogdan",
                "timestamp": "2021-07-22T08:44:58Z",
                "comment": ""
            },
            {
                "logid": 286,
                "ns": 3,
                "title": "User talk:SV",
                "pageid": 0,
                "logpage": 85,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Bogdan",
                "timestamp": "2021-07-20T20:13:11Z",
                "comment": ""
            },
            {
                "logid": 285,
                "ns": 10,
                "title": "Template:Stub",
                "pageid": 0,
                "logpage": 49,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Bogdan",
                "timestamp": "2021-07-20T20:12:17Z",
                "comment": ""
            }
        ]
    }
}