MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "arvcontinue": "20200731101217|51",
        "continue": "-||"
    },
    "query": {
        "allrevisions": [
            {
                "pageid": 1,
                "revisions": [
                    {
                        "revid": 1,
                        "parentid": 0,
                        "user": "MediaWiki default",
                        "anon": "",
                        "timestamp": "2019-08-14T06:40:05Z",
                        "comment": ""
                    },
                    {
                        "revid": 9,
                        "parentid": 1,
                        "user": "24355636",
                        "timestamp": "2020-07-31T06:44:37Z",
                        "comment": "/* \u5165\u95e8 */"
                    },
                    {
                        "revid": 10,
                        "parentid": 9,
                        "user": "24355636",
                        "timestamp": "2020-07-31T06:58:36Z",
                        "comment": "/* \u5165\u95e8 */"
                    },
                    {
                        "revid": 23,
                        "parentid": 10,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:40:43Z",
                        "comment": ""
                    },
                    {
                        "revid": 24,
                        "parentid": 23,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:49:25Z",
                        "comment": ""
                    },
                    {
                        "revid": 25,
                        "parentid": 24,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:50:39Z",
                        "comment": ""
                    },
                    {
                        "revid": 26,
                        "parentid": 25,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:51:00Z",
                        "comment": ""
                    },
                    {
                        "revid": 27,
                        "parentid": 26,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:51:20Z",
                        "comment": ""
                    },
                    {
                        "revid": 29,
                        "parentid": 27,
                        "user": "24355636",
                        "timestamp": "2020-07-31T08:03:32Z",
                        "comment": ""
                    },
                    {
                        "revid": 30,
                        "parentid": 29,
                        "user": "24355636",
                        "timestamp": "2020-07-31T08:10:47Z",
                        "comment": ""
                    },
                    {
                        "revid": 31,
                        "parentid": 30,
                        "user": "24355636",
                        "timestamp": "2020-07-31T08:47:29Z",
                        "comment": ""
                    },
                    {
                        "revid": 36,
                        "parentid": 31,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:14:02Z",
                        "comment": ""
                    },
                    {
                        "revid": 37,
                        "parentid": 36,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:15:42Z",
                        "comment": ""
                    },
                    {
                        "revid": 50,
                        "parentid": 37,
                        "user": "24355636",
                        "timestamp": "2020-07-31T10:09:43Z",
                        "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": 11,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:24:03Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c*\u9996\u9875 **\u9996\u9875|\u9996\u9875 * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki * SE\u2026\u201d"
                    },
                    {
                        "revid": 13,
                        "parentid": 11,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:28:17Z",
                        "comment": ""
                    },
                    {
                        "revid": 14,
                        "parentid": 13,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:28:39Z",
                        "comment": ""
                    },
                    {
                        "revid": 22,
                        "parentid": 14,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:35:14Z",
                        "comment": ""
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Sidebar"
            },
            {
                "pageid": 10,
                "revisions": [
                    {
                        "revid": 12,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:28:01Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:M7R606F$% ~O)-WET3M OUO.png"
            },
            {
                "pageid": 11,
                "revisions": [
                    {
                        "revid": 15,
                        "parentid": 0,
                        "user": "34992445",
                        "timestamp": "2020-07-31T07:28:53Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Chr3 001 05.png"
            },
            {
                "pageid": 12,
                "revisions": [
                    {
                        "revid": 16,
                        "parentid": 0,
                        "user": "34992445",
                        "timestamp": "2020-07-31T07:28:53Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Chr3 001 70.png"
            },
            {
                "pageid": 13,
                "revisions": [
                    {
                        "revid": 17,
                        "parentid": 0,
                        "user": "34992445",
                        "timestamp": "2020-07-31T07:28:54Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Chr3 001 01.png"
            },
            {
                "pageid": 14,
                "revisions": [
                    {
                        "revid": 18,
                        "parentid": 0,
                        "user": "34992445",
                        "timestamp": "2020-07-31T07:28:55Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Chr3 001 02.png"
            },
            {
                "pageid": 15,
                "revisions": [
                    {
                        "revid": 19,
                        "parentid": 0,
                        "user": "34992445",
                        "timestamp": "2020-07-31T07:28:56Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Chr3 001 04.png"
            },
            {
                "pageid": 16,
                "revisions": [
                    {
                        "revid": 20,
                        "parentid": 0,
                        "user": "34992445",
                        "timestamp": "2020-07-31T07:29:31Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c[[File:chr3_001_04.png|thumb|none]] \u543e\u59bb \u67ab '''\u6d4b\u8bd5''''[[File:chr3_001_02.png|thumb|none]][[File:chr3_001_01.png|thumb|none]][[File:chr3_001_70.png|thumb|none]]\u2026\u201d"
                    }
                ],
                "ns": 0,
                "title": "\u56fe\u9274"
            },
            {
                "pageid": 17,
                "revisions": [
                    {
                        "revid": 21,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:32:18Z",
                        "comment": "\u57fa\u4e8eMsUpload\u7684\u6587\u4ef6\u4e0a\u4f20"
                    }
                ],
                "ns": 6,
                "title": "\u6587\u4ef6:Test.png"
            },
            {
                "pageid": 18,
                "revisions": [
                    {
                        "revid": 28,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T07:51:52Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{DISPLAYTITLE:\u6d4b\u8bd5\u9875\u9762\u540d\u79f0}}\u201d"
                    }
                ],
                "ns": 0,
                "title": "\u6d4b\u8bd5\u9875\u97621"
            },
            {
                "pageid": 19,
                "revisions": [
                    {
                        "revid": 32,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T08:50:11Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u7684\u4efb\u4f55JavaScript\u5c06\u4e3a\u6240\u6709\u7528\u6237\u5728\u6bcf\u6b21\u9875\u9762\u8f7d\u5165\u65f6\u52a0\u8f7d\u3002 */ events={ \t0:[\"\u78a7\u84dd\u822a\u7ebf\",2017,6,2,9999,99,99], \t1:[\"\u52aa\u529b\u3001\u5e0c\u671b\u548c\u8ba1\u5212\",2\u2026\u201d"
                    },
                    {
                        "revid": 38,
                        "parentid": 32,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:17:34Z",
                        "comment": ""
                    },
                    {
                        "revid": 39,
                        "parentid": 38,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:20:01Z",
                        "comment": ""
                    },
                    {
                        "revid": 49,
                        "parentid": 39,
                        "user": "24355636",
                        "timestamp": "2020-07-31T10:06:59Z",
                        "comment": ""
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:Common.js"
            },
            {
                "pageid": 20,
                "revisions": [
                    {
                        "revid": 33,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T08:51:13Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{JS|EventCalendar}} {|class=\"wikitable eventCalendar noselect\" style=\"width:280px;background-color: #ffffff;\" |colspan=7|'''\u6700\u8fd1\u6d3b\u52a8''' |- |colspan=7 style=\"tex\u2026\u201d"
                    },
                    {
                        "revid": 35,
                        "parentid": 33,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:05:59Z",
                        "comment": ""
                    },
                    {
                        "revid": 40,
                        "parentid": 35,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:26:17Z",
                        "comment": ""
                    },
                    {
                        "revid": 41,
                        "parentid": 40,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:42:27Z",
                        "comment": ""
                    },
                    {
                        "revid": 42,
                        "parentid": 41,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:43:06Z",
                        "comment": ""
                    },
                    {
                        "revid": 44,
                        "parentid": 42,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:47:29Z",
                        "comment": ""
                    },
                    {
                        "revid": 45,
                        "parentid": 44,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:49:28Z",
                        "comment": ""
                    },
                    {
                        "revid": 47,
                        "parentid": 45,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:52:36Z",
                        "comment": ""
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:\u6d3b\u52a8\u65e5\u5386"
            },
            {
                "pageid": 21,
                "revisions": [
                    {
                        "revid": 34,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T08:53:31Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201cevents={ \t0:[\"\u78a7\u84dd\u822a\u7ebf\",2017,6,2,9999,99,99], \t1:[\"\u52aa\u529b\u3001\u5e0c\u671b\u548c\u8ba1\u5212\",2017,6,8,2017,6,17], \t2:[\"bilibili8\u5468\u5e74\uff1a\u7535\u91cf\u652f\u63f4\u8ba1\u5212\",2017,6,23,2017,7,1],\u2026\u201d"
                    }
                ],
                "ns": 8,
                "title": "MediaWiki:EventCalendar.js"
            },
            {
                "pageid": 22,
                "revisions": [
                    {
                        "revid": 43,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:43:31Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201cevents={ \t0:[\"\u78a7\u84dd\u822a\u7ebf\",2017,6,2,9999,99,99], \t1:[\"\u52aa\u529b\u3001\u5e0c\u671b\u548c\u8ba1\u5212\",2017,6,8,2017,6,17], \t2:[\"bilibili8\u5468\u5e74\uff1a\u7535\u91cf\u652f\u63f4\u8ba1\u5212\",2017,6,23,2017,7,1],\u2026\u201d"
                    },
                    {
                        "revid": 46,
                        "parentid": 43,
                        "user": "24355636",
                        "timestamp": "2020-07-31T09:50:53Z",
                        "comment": "\u4ee5\u201c<includeonly>{{ResourceLoader|MediaWiki:{{{1}}}|debug=true}}</includeonly><noinclude> \u8f7d\u5165MediaWiki\u547d\u540d\u7a7a\u95f4\u4e0b\u7684JS\u811a\u672c\u3002  \u53c2\u6570\u5217\u8868\uff1a <pre> \t#1 \t\tJS\u9875\u9762\u7684\u540d\u2026\u201d\u66ff\u6362\u5185\u5bb9"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:JS"
            },
            {
                "pageid": 23,
                "revisions": [
                    {
                        "revid": 48,
                        "parentid": 0,
                        "user": "24355636",
                        "timestamp": "2020-07-31T10:00:57Z",
                        "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<includeonly> <div class=\"resourceLoader\"  style=\"display:none\"  data-is-module=\"{{{isModule|false}}}\"  data-mime=\"{{{MIME|}}}\"  >{{{1|}}}</div> </includeonly>  <noi\u2026\u201d"
                    }
                ],
                "ns": 10,
                "title": "\u6a21\u677f:ResourceLoader"
            }
        ]
    }
}