Revision API should support sizediff or sizes property
Open, Needs TriagePublic


When querying the usercontribs API I can request a property sizediff which tells me how many bytes changed in the eit.
When querying recentchanges API I can request sizes.

There appears to be no corresponding query for the revisions API


Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 19 2016, 6:42 PM
Anomie added a subscriber: Anomie.Aug 19 2016, 6:53 PM

The recentchanges API uses fields in the recentchanges table that are not available for the revisions API.

It looks like the same logic used for usercontribs could be used in revisions as well, only slightly complicated by the fact that ApiQueryRevisionsBase is shared by a few other modules.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Aug 19 2016, 6:53 PM

Assuming you added &rvprop=sizediff to it, it should since you're using rvdiffto=prev. For diffs in general, it would need a different change to show the size difference between the diffed revisions.

Yup specifically I'm asking for the size difference not the before size or after size.