There does not seem to be much purpose for action=compare to exist: it does the same thing the diff options do for prop=revisions, just with less options. The only thing prop=revisions can't do out of the box is to compare two pages without knowing their revision id, but if that's actually useful, we should just add difftotitle/difftopageid as options to revisions. compare should be deprecated and eventually removed.
- Mentioned In
- T216482: Remove deprecation notice for parsing and diff options in ApiQueryRevisionsBase
T164106: Deprecate parsing and diff options in ApiQueryRevisionsBase
- Mentioned Here
- T164106: Deprecate parsing and diff options in ApiQueryRevisionsBase
T31223: Querying for rvdiffto=prev fails for many revids: "notcached"
T30047: Allow diff of deleted revisions with api
T29185: API: Add Special:ComparePages
The api action=compare is equivalent to web UI Special:ComparePages
This action makes it clear, that you have (normally) do one request to get one diff
Was added with T29185