MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以更改輸出格式。要查看JSON格式的非HTML實現,設置format=json。
{ "batchcomplete": "", "query": { "searchinfo": { "totalhits": 2 }, "search": [ { "ns": 0, "title": "2013\u8ad6\u58c7/\u4e94\u8a9e\u5b78\u5802\u2500\u57f9\u529b\u65b0\u4f4f\u6c11\u7684\u514d\u8cbb\u5916\u8a9e\u6559\u5ba4", "pageid": 350, "size": 18409, "wordcount": 130, "snippet": ""mahirap? what's the <span class='searchmatch'>meaning</span>?"\n", "timestamp": "2020-11-13T05:35:00Z" }, { "ns": 0, "title": "2021\u5747\u512a\u5b78\u7fd2\u8ad6\u58c7\u5404\u754c\u5225\u4ee3\u8868\u6703\u8b70", "pageid": 361, "size": 41053, "wordcount": 594, "snippet": "My objective of this discussion is to bring <span class='searchmatch'>meaning</span> to screentime with online learning community resources. In today\u2019s educat\n", "timestamp": "2021-06-18T02:07:57Z" } ] } }