MediaWiki API 结果

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

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

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

{
    "warnings": {
        "wordcounter": {
            "*": "The namespace of the page '\u6b66\u5916\u6897\u767e\u79d1:\u9996\u9875' is invalid and will be skipped.\nThe namespace of the page 'File:\u5e38\u6653\u5175\u8001\u5e08\uff08\u53f3\uff09\u505a\u5ba2\u672c\u62a5\u5e02\u6c11\u6709\u7ea6\u680f\u76ee.jpg' is invalid and will be skipped."
        }
    },
    "wordcounter": {
        "pagewords": {
            "results": [
                {
                    "pageId": 2,
                    "pageTitle": "\u5e38\u6653\u5175",
                    "namespace": 0,
                    "wordCount": 1469,
                    "exists": ""
                }
            ],
            "count": 1,
            "totalWords": 1469
        }
    }
}