获取最近改动

/api.php?action=query&format=json&prop=&list=recentchanges&utf8=1&rcdir=older&rcprop=title%7Ctimestamp%7Cids%7Cuser%7Csizes%7Ccomment&rctoponly=1

数据实例

{
    "batchcomplete": "",
    "continue": {
        "rccontinue": "20190418014421|374",
        "continue": "-||"
    },
    "query": {
        "recentchanges": [
            {
                "type": "edit",
                "ns": 0,
                "title": "首页",
                "pageid": 1,
                "revid": 428,
                "old_revid": 427,
                "rcid": 425,
                "user": "Summerset",
                "oldlen": 1350,
                "newlen": 1358,
                "timestamp": "2019-04-18T04:08:42Z",
                "comment": ""
            },
            {
                "type": "edit",
                "ns": 8,
                "title": "MediaWiki:Common.css",
                "pageid": 103,
                "revid": 426,
                "old_revid": 412,
                "rcid": 423,
                "user": "Summerset",
                "oldlen": 5014,
                "newlen": 5317,
                "timestamp": "2019-04-18T04:04:56Z",
                "comment": ""
            },
            {
                "type": "edit",
                "ns": 10,
                "title": "模板:Card",
                "pageid": 116,
                "revid": 419,
                "old_revid": 209,
                "rcid": 415,
                "user": "Summerset",
                "oldlen": 1225,
                "newlen": 1227,
                "timestamp": "2019-04-18T03:44:23Z",
                "comment": ""
            },
            {
                "type": "edit",
                "ns": 10,
                "title": "模板:Award",
                "pageid": 244,
                "revid": 417,
                "old_revid": 416,
                "rcid": 413,
                "user": "MycroftQin",
                "oldlen": 1306,
                "newlen": 1445,
                "timestamp": "2019-04-18T03:37:46Z",
                "comment": ""
            },
            {
                "type": "new",
                "ns": 10,
                "title": "模板:Smw",
                "pageid": 243,
                "revid": 392,
                "old_revid": 0,
                "rcid": 388,
                "user": "Summerset",
                "oldlen": 0,
                "newlen": 73,
                "timestamp": "2019-04-18T02:13:48Z",
                "comment": "创建页面,内容为“{{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}}”"
            },
            {
                "type": "log",
                "ns": 10,
                "title": "模板:T",
                "pageid": 242,
                "revid": 391,
                "old_revid": 0,
                "rcid": 387,
                "user": "Summerset",
                "oldlen": 0,
                "newlen": 0,
                "timestamp": "2019-04-18T02:13:26Z",
                "comment": "interwiki import"
            },
            {
                "type": "edit",
                "ns": 4,
                "title": "灰机俱乐部:站点规划",
                "pageid": 101,
                "revid": 389,
                "old_revid": 107,
                "rcid": 386,
                "user": "Summerset",
                "oldlen": 428,
                "newlen": 592,
                "timestamp": "2019-04-18T02:13:05Z",
                "comment": ""
            },
            {
                "type": "edit",
                "ns": 10,
                "title": "模板:Smw/site/list",
                "pageid": 241,
                "revid": 388,
                "old_revid": 387,
                "rcid": 385,
                "user": "Summerset",
                "oldlen": 276,
                "newlen": 285,
                "timestamp": "2019-04-18T02:09:47Z",
                "comment": ""
            },
            {
                "type": "edit",
                "ns": 10,
                "title": "模板:Smw/site/widetable",
                "pageid": 115,
                "revid": 383,
                "old_revid": 382,
                "rcid": 380,
                "user": "Summerset",
                "oldlen": 1181,
                "newlen": 1199,
                "timestamp": "2019-04-18T02:01:53Z",
                "comment": ""
            },
            {
                "type": "new",
                "ns": 150,
                "title": "site:Zhuoyou",
                "pageid": 239,
                "revid": 377,
                "old_revid": 0,
                "rcid": 375,
                "user": "脑控型打孔机器人",
                "oldlen": 0,
                "newlen": 236,
                "timestamp": "2019-04-18T01:44:21Z",
                "comment": "www站登记表搬运"
            }
        ]
    }
}

获取统计信息

/api.php?action=query&format=json&meta=siteinfo&utf8=1&siprop=general%7Cstatistics

数据实例

{
    "batchcomplete": "",
    "query": {
        "general": {
            "mainpage": "首页",
            "base": "https://club.huijiwiki.com/wiki/%E9%A6%96%E9%A1%B5",
            "sitename": "灰机俱乐部",
            "logo": "https://fs.huijiwiki.com/www/resources/assets/huijilogo-standard.svg",
            "generator": "MediaWiki 1.30.0",
            "phpversion": "7.2.0-2+ubuntu16.04.1+deb.sury.org+2",
            "phpsapi": "fpm-fcgi",
            "dbtype": "mysql",
            "dbversion": "5.6.16-log",
            "imagewhitelistenabled": "",
            "langconversion": "",
            "titleconversion": "",
            "linkprefixcharset": "",
            "linkprefix": "",
            "linktrail": "/^()(.*)$/sD",
            "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
            "invalidusernamechars": "@:",
            "fixarabicunicode": "",
            "fixmalayalamunicode": "",
            "git-hash": "1fc3253d921cc8707c564c068774e0a058f68354",
            "git-branch": "1fc3253d921cc8707c564c068774e0a058f68354",
            "case": "first-letter",
            "lang": "zh-cn",
            "fallback": [
                {
                    "code": "zh-hans"
                },
                {
                    "code": "en"
                }
            ],
            "fallback8bitEncoding": "windows-936",
            "writeapi": "",
            "maxarticlesize": 2097152,
            "timezone": "Asia/Chongqing",
            "timeoffset": 480,
            "articlepath": "/wiki/$1",
            "scriptpath": "",
            "script": "/index.php",
            "variantarticlepath": false,
            "server": "https://club.huijiwiki.com",
            "servername": "club.huijiwiki.com",
            "wikiid": "huiji_sites-club_",
            "time": "2019-04-18T04:37:27Z",
            "uploadsenabled": "",
            "maxuploadsize": 10485760,
            "minuploadchunksize": 1024,
            "galleryoptions": {
                "imagesPerRow": 0,
                "imageWidth": 120,
                "imageHeight": 120,
                "captionLength": "",
                "showBytes": "",
                "showDimensions": "",
                "mode": "traditional"
            },
            "thumblimits": [
                120,
                150,
                180,
                200,
                250,
                300
            ],
            "imagelimits": [
                {
                    "width": 320,
                    "height": 240
                },
                {
                    "width": 640,
                    "height": 480
                },
                {
                    "width": 800,
                    "height": 600
                },
                {
                    "width": 1024,
                    "height": 768
                },
                {
                    "width": 1280,
                    "height": 1024
                }
            ],
            "favicon": "https://av.huijiwiki.com/site_avatar_club_s.png?r=0.87493200 1555562247",
            "centralidlookupprovider": "local",
            "allcentralidlookupproviders": [
                "local"
            ],
            "interwikimagic": "",
            "magiclinks": [],
            "group": "wiki",
            "prefix": "club",
            "description": "维基的维基",
            "avatar": {
                "l": "https://av.huijiwiki.com/site_avatar_club_l.png?r=0.19894500 1555561460",
                "ml": "https://av.huijiwiki.com/site_avatar_club_ml.png?r=0.00014500 1555562108",
                "m": "https://av.huijiwiki.com/site_avatar_club_m.png?r=0.21970300 1555561460",
                "s": "https://av.huijiwiki.com/site_avatar_club_s.png?r=0.00846200 1555562108"
            },
            "property": {
                "enable-voteny": 0,
                "enable-pollny": 0,
                "enable-semantic-mediawiki": "1",
                "enable-blogpage": 0,
                "enable-forum": 0,
                "enable-2_0-compat": 0
            },
            "sysop": "<a href=\"/wiki/%E7%94%A8%E6%88%B7:MycroftQin\" class=\"mw-userlink\" title=\"MycroftQin\" rel=\"nofollow\"><img src=\"https://av.huijiwiki.com/my_wiki_7447_m.png?r=1555396706\" alt=\"avatar\" class=\"headimg\" data-name=\"MycroftQin\"/></a>",
            "bureaucrat": "",
            "citeresponsivereferences": ""
        },
        "statistics": {
            "pages": 238,
            "articles": 3,
            "edits": 412,
            "images": 3,
            "users": 1,
            "activeusers": 0,
            "admins": 3,
            "jobs": 1879,
            "followers": 2,
            "rating": "E",
            "score": 84,
            "donate": 0,
            "donategoalmet": "false"
        }
    }
}
avatar