MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "arvcontinue": "20200212015537|55",
        "continue": "-||"
    },
    "query": {
        "allrevisions": [
            {
                "pageid": 1,
                "revisions": [
                    {
                        "revid": 1,
                        "parentid": 0,
                        "user": "MediaWiki default",
                        "anon": "",
                        "timestamp": "2019-08-14T06:40:05Z",
                        "comment": ""
                    },
                    {
                        "revid": 27,
                        "parentid": 1,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:44:34Z",
                        "comment": ""
                    },
                    {
                        "revid": 30,
                        "parentid": 27,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:46:02Z",
                        "comment": ""
                    },
                    {
                        "revid": 31,
                        "parentid": 30,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:46:20Z",
                        "comment": ""
                    },
                    {
                        "revid": 44,
                        "parentid": 31,
                        "user": "3570506",
                        "timestamp": "2020-02-12T01:41:13Z",
                        "comment": ""
                    },
                    {
                        "revid": 48,
                        "parentid": 44,
                        "user": "3570506",
                        "timestamp": "2020-02-12T01:46:25Z",
                        "comment": ""
                    }
                ],
                "ns": 0,
                "title": "\u9996\u9875"
            },
            {
                "pageid": 2,
                "revisions": [
                    {
                        "revid": 2,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:51Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Smw import skos"
            },
            {
                "pageid": 3,
                "revisions": [
                    {
                        "revid": 3,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:54Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Smw import foaf"
            },
            {
                "pageid": 4,
                "revisions": [
                    {
                        "revid": 4,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:54Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Smw import owl"
            },
            {
                "pageid": 5,
                "revisions": [
                    {
                        "revid": 5,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:55Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 102,
                "title": "\u5c5e\u6027:Foaf:knows"
            },
            {
                "pageid": 6,
                "revisions": [
                    {
                        "revid": 6,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:55Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 102,
                "title": "\u5c5e\u6027:Foaf:name"
            },
            {
                "pageid": 7,
                "revisions": [
                    {
                        "revid": 7,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:55Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 102,
                "title": "\u5c5e\u6027:Foaf:homepage"
            },
            {
                "pageid": 8,
                "revisions": [
                    {
                        "revid": 8,
                        "parentid": 0,
                        "user": "127.0.0.1",
                        "anon": "",
                        "timestamp": "2019-08-14T07:06:56Z",
                        "comment": "Semantic MediaWiki default vocabulary import"
                    }
                ],
                "ns": 102,
                "title": "\u5c5e\u6027:Owl:differentFrom"
            },
            {
                "pageid": 9,
                "revisions": [
                    {
                        "revid": 9,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T11:25:34Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<includeonly><div style=\"padding: 5px 10px;margin: 10px 0;border: 1px solid #986565;border-left-width: 5px;border-radius: 3px;background: #FBE8C7;\"> [[\u9996\u9875]] {{#if\u2026\u201d"
                    },
                    {
                        "revid": 10,
                        "parentid": 9,
                        "user": "3570506",
                        "timestamp": "2020-02-11T11:26:29Z",
                        "comment": ""
                    },
                    {
                        "revid": 12,
                        "parentid": 10,
                        "user": "3570506",
                        "timestamp": "2020-02-11T11:27:00Z",
                        "comment": ""
                    },
                    {
                        "revid": 13,
                        "parentid": 12,
                        "user": "3570506",
                        "timestamp": "2020-02-11T11:27:32Z",
                        "comment": ""
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u9762\u5305\u5c51"
            },
            {
                "pageid": 10,
                "revisions": [
                    {
                        "revid": 11,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T11:26:47Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<div class=\"bg-snm\" style=\"color: #a94442;border: 1px solid #ebccd1;padding: 5px;margin-bottom: 20px;border-radius: 4px;\">{{{1}}}</div>\u201d"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u6ce8\u91ca"
            },
            {
                "pageid": 11,
                "revisions": [
                    {
                        "revid": 14,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:03:33Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c * \u660e\u65e5\u65b9\u821fWIKI ** \u65b0\u95fb\u516c\u544a|\u65b0\u95fb\u516c\u544a ** \u536b\u661f\u89c2\u6d4b|\u536b\u661f\u89c2\u6d4b ** WIKI\u5927\u4e8b\u8bb0|WIKI\u5927\u4e8b\u8bb0 ** \u6e38\u620f\u5927\u4e8b\u8bb0|\u6e38\u620f\u5927\u4e8b\u8bb0 ** \u52a0\u5165\u6211\u4eec|\u52a0\u2026\u201d"
                    },
                    {
                        "revid": 15,
                        "parentid": 14,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:03:56Z",
                        "comment": ""
                    },
                    {
                        "revid": 16,
                        "parentid": 15,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:07:11Z",
                        "comment": ""
                    },
                    {
                        "revid": 17,
                        "parentid": 16,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:07:27Z",
                        "comment": ""
                    },
                    {
                        "revid": 18,
                        "parentid": 17,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:07:43Z",
                        "comment": ""
                    },
                    {
                        "revid": 19,
                        "parentid": 18,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:09:13Z",
                        "comment": ""
                    },
                    {
                        "revid": 23,
                        "parentid": 19,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:13:57Z",
                        "comment": ""
                    },
                    {
                        "revid": 24,
                        "parentid": 23,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:14:11Z",
                        "comment": ""
                    },
                    {
                        "revid": 25,
                        "parentid": 24,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:14:23Z",
                        "comment": ""
                    },
                    {
                        "revid": 26,
                        "parentid": 25,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:34:31Z",
                        "comment": ""
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Sidebar"
            },
            {
                "pageid": 12,
                "revisions": [
                    {
                        "revid": 20,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:12:18Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u653e\u7f6e\u7684CSS\u5c06\u5e94\u7528\u4e8e\u6240\u6709\u76ae\u80a4 */ /* WIKI\u80cc\u666f\u56fe */ body { \tbackground:url(\"\") no-repeat fixed 50% 0; \tbackground-size:cover; }  /*\u9996\u9875\u5e03\u5c40*/ .h\u2026\u201d"
                    },
                    {
                        "revid": 22,
                        "parentid": 20,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:13:02Z",
                        "comment": ""
                    },
                    {
                        "revid": 47,
                        "parentid": 22,
                        "user": "3570506",
                        "timestamp": "2020-02-12T01:45:28Z",
                        "comment": ""
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Common.css"
            },
            {
                "pageid": 13,
                "revisions": [
                    {
                        "revid": 21,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:12:33Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:WIKI\u80cc\u666f\u56fe.jpg"
            },
            {
                "pageid": 14,
                "revisions": [
                    {
                        "revid": 28,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:45:00Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c[[{{{1}}}|<span class=\"home-tag-top\">{{#ifeq:{{{2}}}||{{{1}}}|{{{2}}}}}</span>]]\u201d"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u9996\u9875\u9876\u90e8\u56fe\u9274"
            },
            {
                "pageid": 15,
                "revisions": [
                    {
                        "revid": 29,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:45:22Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<span class=\"home-tag\">[[{{{1}}}|<font color=#414141>{{#ifeq:{{{2}}}||{{{1}}}|{{{2}}}}}</font>]]</span>\u201d"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u9996\u9875\u56fe\u6807\u8bcd\u6761"
            },
            {
                "pageid": 16,
                "revisions": [
                    {
                        "revid": 32,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:46:44Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<brecentchanges></brecentchanges>\u201d"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u66f4\u65b0\u65e5\u5fd7"
            },
            {
                "pageid": 17,
                "revisions": [
                    {
                        "revid": 33,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-11T12:47:31Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c|- |style=\"padding:5px 0px;width:53px\"|<div style=\"font-size:14px;line-height: 20px;width: 40px;height: 22px;background:rgba(0,182,255,0.10);margin-right: 10px;text-\u2026\u201d"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u6587\u7ae0\u5f52\u7c7b\u9996\u9875"
            },
            {
                "pageid": 18,
                "revisions": [
                    {
                        "revid": 34,
                        "parentid": 0,
                        "user": "44331562",
                        "timestamp": "2020-02-11T12:55:56Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{\u660e\u65e5\u65b9\u821f:\u5bfc\u822a}}  ==\u5e72\u5458\u7b5b\u9009== {{\u7b5b\u9009\u529f\u80fd|tablename=\u660e\u65e5\u65b9\u821f\u5e72\u5458|caption=\u660e\u65e5\u65b9\u821f\u5e72\u5458\u4e00\u89c8|needSortFilters=\u7a00\u6709\u5ea6|markAsBottomFilters=\u2026\u201d"
                    },
                    {
                        "revid": 35,
                        "parentid": 34,
                        "user": "44331562",
                        "timestamp": "2020-02-11T13:05:22Z",
                        "comment": ""
                    }
                ],
                "ns": 0,
                "title": "\u5e72\u5458\u56fe\u9274"
            },
            {
                "pageid": 20,
                "revisions": [
                    {
                        "revid": 40,
                        "parentid": 0,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:16:12Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{\u9762\u5305\u5c51}}  *\u5e72\u5458\u5c5e\u6027\u5c55\u793a\u5728\u5e72\u5458\u8be6\u60c5\u9875\u5de6\u90e8\uff0c\u5e72\u5458\u540d\u5b57\u4e0a\u65b9\uff0c\u5305\u62ec\u751f\u547d\u4e0a\u9650\u3001\u653b\u51fb\u3001\u9632\u5fa1\u3001\u6cd5\u672f\u6297\u6027\u3001\u518d\u90e8\u7f72\u3001\u90e8\u7f72\u8d39\u7528\u3001\u2026\u201d"
                    },
                    {
                        "revid": 41,
                        "parentid": 40,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:17:57Z",
                        "comment": ""
                    }
                ],
                "ns": 0,
                "title": "\u5e72\u5458\u5c5e\u6027"
            },
            {
                "pageid": 21,
                "revisions": [
                    {
                        "revid": 42,
                        "parentid": 0,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:22:38Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c \u5148\u950b\u56fe\u6807 \u5148\u950b  \u5148\u950b\u662f\u5bf9\u90e8\u7f72\u6709\u66f4\u4f73\u6548\u679c\u7684\u804c\u4e1a\u3002\u901a\u5e38\u90e8\u7f72\u8d39\u7528\u8f83\u4f4e\uff0c\u6280\u80fd\u4e0e\u56de\u590d\u90e8\u7f72\u8d39\u7528\u76f8\u5173\uff0c\u4e14\u53ef\u4ee5\u8f83\u597d\u5730\u5e94\u5bf9\u524d\u671f\u51fa\u2026\u201d"
                    },
                    {
                        "revid": 43,
                        "parentid": 42,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:38:36Z",
                        "comment": ""
                    },
                    {
                        "revid": 45,
                        "parentid": 43,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:42:50Z",
                        "comment": ""
                    },
                    {
                        "revid": 46,
                        "parentid": 45,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:43:48Z",
                        "comment": ""
                    },
                    {
                        "revid": 49,
                        "parentid": 46,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:46:33Z",
                        "comment": ""
                    }
                ],
                "ns": 0,
                "title": "\u5e72\u5458"
            },
            {
                "pageid": 22,
                "revisions": [
                    {
                        "revid": 50,
                        "parentid": 0,
                        "user": "3570506",
                        "timestamp": "2020-02-12T01:46:36Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<div class=\"main-line-wrap\" style=\"margin-top:10px\"> <div class=\"resp-tabs\" style=\"border-spacing: 5px;\"> <ul class=\"resp-tabs-list clearfix\" style=\"margin-left:0;pa\u2026\u201d"
                    },
                    {
                        "revid": 51,
                        "parentid": 50,
                        "user": "3570506",
                        "timestamp": "2020-02-12T01:47:07Z",
                        "comment": ""
                    },
                    {
                        "revid": 52,
                        "parentid": 51,
                        "user": "3570506",
                        "timestamp": "2020-02-12T01:48:56Z",
                        "comment": ""
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u9996\u9875\u4e3b\u7ebf\u5173\u5361"
            },
            {
                "pageid": 23,
                "revisions": [
                    {
                        "revid": 53,
                        "parentid": 0,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:49:58Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{\u9762\u5305\u5c51}}  __NOTOC__ [http://www.bilibili.com/video/av14266061/ \u3010\u660e\u65e5\u65b9\u821f\u6982\u5ff5\u5ba3\u4f20PV\u3011]   \u660e\u65e5\u65b9\u821f\u662f\u4e00\u6b3e\u5168\u65b0\u7684\u539f\u521b\u7b56\u7565\u6e38\u620f\u3002\u73a9\u5bb6\u5c06\u2026\u201d"
                    }
                ],
                "ns": 0,
                "title": "\u6e38\u620f\u80cc\u666f"
            },
            {
                "pageid": 24,
                "revisions": [
                    {
                        "revid": 54,
                        "parentid": 0,
                        "user": "3316893",
                        "timestamp": "2020-02-12T01:54:21Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c  \u4f5c\u4e3a\u4e00\u4e2a\u65e0\u79cd\u65cf\u7acb\u573a\uff0c\u6781\u7aef\u6392\u5916\u7684\u611f\u67d3\u8005\u7ec4\u7ec7\uff0c\u6574\u5408\u8fd0\u52a8\u5ba3\u79f0\u611f\u67d3\u8005\"\u5e94\u5bf9\u81ea\u5df1\u7684\u8eab\u4efd\u611f\u5230\u9a84\u50b2\uff0c\u79ef\u6781\u53bb\u83b7\u53d6\u5e76\u4f7f\u7528\u5c5e\u4e8e\u81ea\u5df1\u2026\u201d"
                    }
                ],
                "ns": 0,
                "title": "\u6574\u5408\u8fd0\u52a8"
            }
        ]
    }
}