Topic on Talk:XTools

Count of minor/ip/bot/reverted edits for page?

2
NHarateh (WMF) (talkcontribs)

Hello,


First of all, thank you for creating such a useful tool & API! Is there any way I could get the count of minor/ip/bot/reverted edits for a given page? I can see those counts included in the UI but I don't see them returned in any of the page requests that I tried. I see that this is where you build the `articleinfo` response https://github.com/x-tools/xtools/blob/6d8f265ec0aecf6f3a6909b742cc4cda0d28d94f/src/AppBundle/Controller/ArticleInfoController.php#L238 and this is where you get respective edit counts https://github.com/x-tools/xtools/blob/19bcac6775a8302273a4314bbfe1b0e753458255/src/AppBundle/Model/ArticleInfo.php#L485.

MusikAnimal (talkcontribs)

Thank you for the kind words! We can definitely add an option or something to get the number of minor and IP edits. Getting the number of reverted edits however I think will require combing over the entire history revision by revision, which will be too slow for an API endpoint. The revert count is very much an approximate figure, anyway. I would not use it for research purposes.