I'm trying to replicate this paper, where they use a random sample of user accounts made between September 9th, 2010 and February 14th, 2011. How can I use the wikipedia API to get this data?
I can't seem to figure out how to use their API's usercontribs to do this (or anything else)
list=usercontribsprovides, well, user contributions. What you need islist=logevents.The corresponding action is
newusers/create, for "creation by anonymous user" (notnewusers/create2, which means "creation by registered user").Since you seem to want only the usernames,
lepropshould be set touser.lestartandleendare where you specify the timestamps; note that the first must be later than the second whenledirisolder(the default) and vice versa.Try it using the API sandbox.
Each response will have a
lecontinuetoken that you may use in your next request.