MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "accontinue": "Internationalization_templates",
        "continue": "-||"
    },
    "query": {
        "allcategories": [
            {
                "size": 1,
                "pages": 1,
                "files": 0,
                "subcats": 0,
                "*": "Alert templates"
            },
            {
                "size": 1,
                "pages": 1,
                "files": 0,
                "subcats": 0,
                "*": "Alert templates/en"
            },
            {
                "size": 3,
                "pages": 3,
                "files": 0,
                "subcats": 0,
                "*": "Configure"
            },
            {
                "size": 4,
                "pages": 4,
                "files": 0,
                "subcats": 0,
                "*": "External link templates"
            },
            {
                "size": 2,
                "pages": 2,
                "files": 0,
                "subcats": 0,
                "*": "External link templates/en"
            },
            {
                "size": 5,
                "pages": 5,
                "files": 0,
                "subcats": 0,
                "*": "Formatting templates"
            },
            {
                "size": 2,
                "pages": 2,
                "files": 0,
                "subcats": 0,
                "*": "IPA\u8bed\u8a00\u6a21\u677f"
            },
            {
                "size": 3,
                "pages": 3,
                "files": 0,
                "subcats": 0,
                "*": "Info templates"
            },
            {
                "size": 4,
                "pages": 4,
                "files": 0,
                "subcats": 0,
                "*": "Info templates/en"
            },
            {
                "size": 2,
                "pages": 2,
                "files": 0,
                "subcats": 0,
                "*": "Internal link templates"
            }
        ]
    }
}