Take the 2-minute tour ×

Is there any API to get wikipedia revision id by date, instead of checking all the revision history and extract out the most recent revision before that date?

Thank you!

share|improve this question
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer


