MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "blocks": [
            {
                "id": 163,
                "user": "196.251.87.0/24",
                "by": "\u7a00\u795e\u7075\u68a6",
                "timestamp": "2025-06-03T17:11:29Z",
                "expiry": "infinity",
                "reason": "",
                "nocreate": "",
                "noemail": "",
                "allowusertalk": ""
            },
            {
                "id": 101,
                "user": "198.23.221.0/24",
                "by": "\u7a00\u795e\u7075\u68a6",
                "timestamp": "2025-06-02T09:44:34Z",
                "expiry": "infinity",
                "reason": "",
                "anononly": "",
                "nocreate": "",
                "noemail": "",
                "allowusertalk": ""
            },
            {
                "id": 9,
                "user": "John",
                "by": "\u7a00\u795e\u7075\u68a6",
                "timestamp": "2025-03-02T11:15:10Z",
                "expiry": "infinity",
                "reason": "\u6ee5\u7528\u591a\u4e2a\u5080\u5121\u8d26\u6237",
                "nocreate": "",
                "autoblock": "",
                "noemail": "",
                "allowusertalk": ""
            },
            {
                "id": 8,
                "user": "Alice",
                "by": "\u7a00\u795e\u7075\u68a6",
                "timestamp": "2025-03-01T10:38:43Z",
                "expiry": "infinity",
                "reason": "\u6ee5\u7528\u591a\u4e2a\u5080\u5121\u8d26\u6237",
                "nocreate": "",
                "autoblock": "",
                "noemail": "",
                "allowusertalk": ""
            }
        ]
    }
}