API to get Wikipedia revision id by date [closed]

拥有回忆 提交于 2019-12-01 09:16:04
Bergi

The revision query api allows you to pass timestamps to get only revisions from a specified interval. Use

api.php?action=query&prop=revisions&rvlimit=1&rvstart= myTimestamp

Check out the Manual:WfTimestamp for accepted formats - yyyymmddhhmmss always works.

Building on the previous answer: The always accepted format yyyymmddhhmmss returned errors. This example returned a valid response:

JSON

XML

The id in field revid contains the id previous to the date passed in param rvstart:

Revision id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!