[Mediawiki-api] how to compute contributions of new accounts only via API?

Raymond Yee raymond.yee at gmail.com
Mon Sep 27 15:13:18 UTC 2010


  Hi everyone,

I'd like to compute user contributions from new accounts only, data that 
is available from the Wikipedia website under the Special:Contributions 
page, e.g.,

http://en.wikipedia.org/w/index.php?limit=50&title=Special:Contributions&contribs=newbie

I've looked through the API documentation 
(http://en.wikipedia.org/w/api.php), specifically at the section devoted 
to list=usercontribs, list=recentchanges, and list=logevents but 
couldn't figure out any combination of parameters to get user 
contributions from new accounts only.  I thought that

http://en.wikipedia.org/w/api.php?action=query&list=logevents&letypes=newusers&lelimit=500

might do the trick but apparently log events are what I'm looking for 
either.

Is it possible to replicate the data from 
http://en.wikipedia.org/w/index.php?limit=50&title=Special:Contributions&contribs=newbie 
using the API -- and if so, how?

Thanks!
-Raymond





More information about the Mediawiki-api mailing list