MediaWiki API 結果

這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。

指定format參數以更改輸出格式。要查看JSON格式的非HTML實現,設置format=json

參見完整文件,或API幫助以獲取更多信息。

{
    "batchcomplete": "",
    "query": {
        "searchinfo": {
            "totalhits": 2
        },
        "search": [
            {
                "ns": 0,
                "title": "Glossary.xhtml",
                "pageid": 3551,
                "size": 19151,
                "wordcount": 2428,
                "snippet": "&lt;dd&gt;The process of scrambling information in a way that disguises its <span class='searchmatch'>meaning</span>.\n",
                "timestamp": "2006-07-31T01:37:50Z"
            },
            {
                "ns": 0,
                "title": "\u8f49\u63db\u7db2\u9801\u7a0b\u5f0f\uff1a\u5f9e IE \u5230 Mozilla",
                "pageid": 3014,
                "size": 61268,
                "wordcount": 8460,
                "snippet": "unit, <span class='searchmatch'>meaning</span> a string is returned. You can convert the string into a \n",
                "timestamp": "2007-08-24T09:28:24Z"
            }
        ]
    }
}