API:Revisions/zh

使用「GET請求」以获取页面的修订信息.



-{zh-hans:API帮助文档; zh-hant:API說明文件}-


範例1：從多個頁面取得版本資料


GET请求
上面的請求是用來取得頁面標題為和的修訂版本資料

回應


示例代码


範例2：取得頁面最後五個修訂版本並以日期和用戶篩選


GET请求
Request above is to obtain data for the last five revisions of the page made after the 1st of July 2018, i.e. 2018-07-01 excluding changes made by the user SSethi (WMF)

回應


Example 3: Get last revision of a page, following any redirects


GET请求
Request above is to obtain revision data of the page, following any redirects. Since redirects to, it will actually return revision data for.

回應


可能的错误


附加提醒
Individual revisions are specified by  parameter. 參見. When the parameter is not present, the API will only return information about the main slot.
 * Pages are specified either by  or   parameter.
 * can be specified with the  parameter.
 * When using parameters marked as (enum),  must have only one title listed.
 * This module couldn't be used as a generator prior to version 1.25.
 * Diff functionality of this module was deprecated in version 1.30 and got moved to.
 * The code for this query is located on the git repository at.



参数历史

 * v1.32: 啟用, 棄用
 * v1.30: 棄用, , , , , ,
 * v1.27: 啟用
 * v1.26: 啟用 棄用
 * v1.24: 棄用
 * v1.21: 啟用 ,
 * v1.19: 啟用 ,
 * v1.17: 啟用 ,
 * v1.16: 啟用, , ,
 * v1.15: 啟用 ,
 * v1.14: 啟用
 * v1.13: 啟用
 * v1.12: 啟用 ,
 * v1.11: 啟用, , , ,

