On Tue, Sep 17, 2013 at 12:45 AM, jeph <jephpaul(a)gmail.com> wrote:
I'm building an edit visualisation tool , demo.
I'm trying to get the total
number of edits to show the user & for a few other things. I haven't been
able to retrieve it from the API, though I can see it in the info page of an
article eg,
https://en.wikipedia.org/w/index.php?title=JSON&action=info#mw-pageinfo…
Any pointers to a solution will be really helpful :-)
There isn't any way to get that in the API right now. A very helpful
solution would be to submit a patch to add it ;) You can look at
includes/actions/InfoAction.php for the implementation of action=info,
and includes/api/ApiQueryInfo.php would probably be the right place to
put it in the API.
As a workaround for number of edits, you could simply use
prop=revisions&rvprop=&rvlimit=max and count the number of revisions
you get back.
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation