MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json。
{ "batchcomplete": "", "query": { "searchinfo": { "totalhits": 2 }, "search": [ { "ns": 0, "title": "Nothing Ever Happened", "pageid": 2512, "size": 765, "wordcount": 124, "snippet": "With all your strength and <span class='searchmatch'>meaning</span> it this time\n", "timestamp": "2009-09-23T11:16:57Z" }, { "ns": 0, "title": "Somethin' Stupid", "pageid": 1701, "size": 1247, "wordcount": 224, "snippet": "To make the <span class='searchmatch'>meaning</span> come true\n", "timestamp": "2010-10-17T11:14:08Z" } ] } }