Translations:API:Compare/40/en

Similarly, you can ask for the next relative comparison on the last revision of a page.