MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Roller_Polar",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "245": {
                "pageid": 245,
                "ns": 0,
                "title": "Ribbit",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{\u524d\u540e\u6e38\u620f|Fault Line|Worm Food}}\n{{\u6e38\u620f\u5e74\u8868|\u7f51\u9875}}"
                    }
                ]
            },
            "230": {
                "pageid": 230,
                "ns": 0,
                "title": "Rockitty",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{\u524d\u540e\u6e38\u620f|Twin Shot 2|Nebula}}\n{{\u6e38\u620f\u5e74\u8868|\u7f51\u9875}}"
                    }
                ]
            }
        }
    }
}