MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "normalized": [
            {
                "from": "Main_Page",
                "to": "Main Page"
            }
        ],
        "pages": {
            "4927": {
                "pageid": 4927,
                "ns": 0,
                "title": "Main Page",
                "cirrusbuilddoc": {
                    "version": 54018,
                    "wiki": "zhwikiquote",
                    "page_id": 4927,
                    "namespace": 0,
                    "namespace_text": "",
                    "title": "Main Page",
                    "timestamp": "2013-03-15T11:57:16Z",
                    "create_timestamp": "2005-03-17T08:28:25Z",
                    "page_type": "redirect",
                    "redirect_target": {
                        "namespace": 4,
                        "title": "\u9996\u9875",
                        "fragment": "",
                        "interwiki": "",
                        "link": "Wikiquote:\u9996\u9875"
                    },
                    "redirect": [],
                    "category": [],
                    "external_link": [],
                    "outgoing_link": [
                        "Wikiquote:\u9996\u9875"
                    ],
                    "template": [],
                    "text": "",
                    "source_text": "#redirect[[Wikiquote:\u9996\u9875]]",
                    "text_bytes": 29,
                    "content_model": "wikitext",
                    "language": "zh",
                    "heading": [],
                    "opening_text": null,
                    "auxiliary_text": [],
                    "defaultsort": null,
                    "file_text": null,
                    "display_title": null
                },
                "cirrusbuilddoc_metadata": {
                    "cluster_group": "omega",
                    "noop_hints": {
                        "version": "documentVersion",
                        "redirect_target": "equals"
                    },
                    "size_limiter_stats": {
                        "document": {
                            "original_length": 636,
                            "new_length": 636
                        }
                    },
                    "index_name": "zhwikiquote_content"
                },
                "cirrusbuilddoc_comment": "The CirrusDoc format is meant for internal use by CirrusSearch for debugging or queries, it might change at any time without notice"
            }
        }
    }
}