I'm trying to pull details on anonymous edits from the Wikimedia API, like so:
Note the "rcshow=anon" parameter.
It works just fine in the API sandbox: https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=recentchanges&format=json&rcstart=2014-01-01T00%3A00%3A00Z&rcdir=newer&rcnamespace=0&rcprop=user|timestamp|title&rcshow=anon&rclimit=100&generator=allpages&gapnamespace=0&gaplimit=2
But when I try to import it into R, I find that I got back lots of non-anon edits:
library(rjson)
json_file <- "http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&format=json&rcstart=2014-01-01T00%3A00%3A00Z&rcdir=newer&rcnamespace=0&rcprop=user%7Ctimestamp%7Ctitle&rcshow=anon&rclimit=100&generator=allpages&gapnamespace=0&gaplimit=2"
json_data <- fromJSON(file = json_file)
user <- vector()
user <- sapply(json_data$query$recentchanges, function(x) c(user, x$user))
user
Like so:
[1] "ValterVBot"
[2] "67.87.234.41"
[3] "ValterVBot"
[4] "86.143.229.147"
[5] "Luan Francisco"
[6] "לערי ריינהארט"
[7] "Чаховіч Уладзіслаў"
[8] "Soulkeeper"
[9] "ValterVBot"
[10] "Soulkeeper"
Any idea what's going on and how I can get a set of anonymous edits?