MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "arvcontinue": "20210404082449|53",
        "continue": "-||"
    },
    "query": {
        "allrevisions": [
            {
                "pageid": 5,
                "revisions": [
                    {
                        "revid": 8,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:14Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 9,
                        "parentid": 8,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:21Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Citation"
            },
            {
                "pageid": 8,
                "revisions": [
                    {
                        "revid": 14,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:15Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 15,
                        "parentid": 14,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:22Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Hatnote"
            },
            {
                "pageid": 16,
                "revisions": [
                    {
                        "revid": 30,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:16Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 31,
                        "parentid": 30,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:25Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Unsubst"
            },
            {
                "pageid": 15,
                "revisions": [
                    {
                        "revid": 28,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:17Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 29,
                        "parentid": 28,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:25Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Sidebar"
            },
            {
                "pageid": 12,
                "revisions": [
                    {
                        "revid": 22,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:18Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 23,
                        "parentid": 22,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:24Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Message box"
            },
            {
                "pageid": 14,
                "revisions": [
                    {
                        "revid": 26,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:18Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 27,
                        "parentid": 26,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:25Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Navbox"
            },
            {
                "pageid": 2,
                "revisions": [
                    {
                        "revid": 2,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:19Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 3,
                        "parentid": 2,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:20Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Arguments"
            },
            {
                "pageid": 17,
                "revisions": [
                    {
                        "revid": 32,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:19Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 33,
                        "parentid": 32,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:26Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Yesno"
            },
            {
                "pageid": 3,
                "revisions": [
                    {
                        "revid": 4,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:20Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 5,
                        "parentid": 4,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:21Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Authority control"
            },
            {
                "pageid": 10,
                "revisions": [
                    {
                        "revid": 18,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:20Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 19,
                        "parentid": 18,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:23Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Infobox"
            },
            {
                "pageid": 11,
                "revisions": [
                    {
                        "revid": 20,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:21Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 21,
                        "parentid": 20,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:23Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:InfoboxImage"
            },
            {
                "pageid": 13,
                "revisions": [
                    {
                        "revid": 24,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:21Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 25,
                        "parentid": 24,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:24Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Navbar"
            },
            {
                "pageid": 4,
                "revisions": [
                    {
                        "revid": 6,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:22Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 7,
                        "parentid": 6,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:21Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Check for unknown parameters"
            },
            {
                "pageid": 9,
                "revisions": [
                    {
                        "revid": 16,
                        "parentid": 0,
                        "minor": "",
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:32:22Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    },
                    {
                        "revid": 17,
                        "parentid": 16,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:23Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:If empty"
            },
            {
                "pageid": 19,
                "revisions": [
                    {
                        "revid": 36,
                        "parentid": 0,
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:38:58Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{#invoke:Infobox|infobox}}<noinclude> {{documentation}} </noinclude>\u201d"
                    },
                    {
                        "revid": 37,
                        "parentid": 36,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:26Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:Infobox"
            },
            {
                "pageid": 6,
                "revisions": [
                    {
                        "revid": 10,
                        "parentid": 0,
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:47:17Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c-- -- This module implements --  {{Color contrast ratio}} --  {{Greater color contrast ratio}} --  {{ColorToLum}} --  {{RGBColorToLum}} -- local p = {} local HTMLcol\u2026\u201d"
                    },
                    {
                        "revid": 11,
                        "parentid": 10,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:22Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Color contrast"
            },
            {
                "pageid": 7,
                "revisions": [
                    {
                        "revid": 12,
                        "parentid": 0,
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T09:48:52Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201creturn { \taliceblue            = 0.92880068253475, \tantiquewhite         = 0.84646951707754, \taqua                 = 0.7874, \taquamarine           = 0.8078549208338,\u2026\u201d"
                    },
                    {
                        "revid": 13,
                        "parentid": 12,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:22Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 828,
                "title": "\u6a21\u5757:Color contrast/colors"
            },
            {
                "pageid": 18,
                "revisions": [
                    {
                        "revid": 34,
                        "parentid": 0,
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-14T10:35:27Z",
                        "comment": ""
                    },
                    {
                        "revid": 35,
                        "parentid": 34,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:26Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:Info"
            },
            {
                "pageid": 21,
                "revisions": [
                    {
                        "revid": 40,
                        "parentid": 0,
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2020-07-19T03:55:41Z",
                        "comment": "\u521d\u59cb\u7f16\u8f91\uff0c\u4ec5\u5305\u542b\u4e86 VS16 \u548c VS15 \u7248\u672c\u7684\u5bc6\u94a5"
                    },
                    {
                        "revid": 41,
                        "parentid": 40,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:26Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 0,
                "title": "Visual Studio \u4ea7\u54c1\u5bc6\u94a5"
            },
            {
                "pageid": 20,
                "revisions": [
                    {
                        "revid": 38,
                        "parentid": 0,
                        "user": "wiki_>Admin",
                        "anon": "",
                        "timestamp": "2021-04-03T17:20:45Z",
                        "comment": ""
                    },
                    {
                        "revid": 39,
                        "parentid": 38,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:31:26Z",
                        "comment": "\u5bfc\u51651\u4e2a\u7248\u672c"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:Navbox"
            },
            {
                "pageid": 1,
                "revisions": [
                    {
                        "revid": 1,
                        "parentid": 0,
                        "user": "MediaWiki default",
                        "timestamp": "2021-04-04T07:29:03Z",
                        "comment": ""
                    },
                    {
                        "revid": 46,
                        "parentid": 1,
                        "user": "Admin",
                        "timestamp": "2021-04-04T08:00:18Z",
                        "comment": "\u9996\u6b21\u7f16\u8f91"
                    },
                    {
                        "revid": 52,
                        "parentid": 46,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T08:20:18Z",
                        "comment": "\u5df2\u4fdd\u62a4\u201c[[\u9996\u9875]]\u201d\uff08[\u7f16\u8f91=\u4ec5\u5141\u8bb8\u7ba1\u7406\u5458]\uff08\u65e0\u9650\u671f\uff09[\u79fb\u52a8=\u4ec5\u5141\u8bb8\u7ba1\u7406\u5458]\uff08\u65e0\u9650\u671f\uff09\uff09"
                    }
                ],
                "ns": 0,
                "title": "Wiki Main Page"
            },
            {
                "pageid": 22,
                "revisions": [
                    {
                        "revid": 42,
                        "parentid": 0,
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:47:05Z",
                        "comment": "create page"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Common.js"
            },
            {
                "pageid": 23,
                "revisions": [
                    {
                        "revid": 43,
                        "parentid": 0,
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:47:37Z",
                        "comment": "create page"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Common.css"
            },
            {
                "pageid": 25,
                "revisions": [
                    {
                        "revid": 45,
                        "parentid": 0,
                        "user": "Admin",
                        "timestamp": "2021-04-04T07:51:27Z",
                        "comment": "create page"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Mobile.js"
            },
            {
                "pageid": 26,
                "revisions": [
                    {
                        "revid": 47,
                        "parentid": 0,
                        "user": "Admin",
                        "timestamp": "2021-04-04T08:14:12Z",
                        "comment": "Error Icon"
                    },
                    {
                        "revid": 50,
                        "parentid": 47,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T08:16:42Z",
                        "comment": "Admin\u79fb\u52a8\u9875\u9762[[\u6587\u4ef6:Error.png]]\u81f3[[\u6587\u4ef6:Icon-Error.png]]\uff0c\u4e0d\u7559\u91cd\u5b9a\u5411\uff1a\u52a0\u4e00\u4e0b\u524d\u7f00"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Icon-Error.png"
            },
            {
                "pageid": 27,
                "revisions": [
                    {
                        "revid": 48,
                        "parentid": 0,
                        "user": "Admin",
                        "timestamp": "2021-04-04T08:14:35Z",
                        "comment": "Info Image"
                    },
                    {
                        "revid": 49,
                        "parentid": 48,
                        "minor": "",
                        "user": "Admin",
                        "timestamp": "2021-04-04T08:16:03Z",
                        "comment": "Admin\u79fb\u52a8\u9875\u9762[[\u6587\u4ef6:Info.png]]\u81f3[[\u6587\u4ef6:Icon-Info.png]]\uff0c\u4e0d\u7559\u91cd\u5b9a\u5411\uff1a\u540d\u5b57\u7ea0\u6b63"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Icon-Info.png"
            }
        ]
    }
}