4

I see that question or answer revisions can be returned from the API either by post ID or by GUID.

I'd like to obtain this data filtered by user, e.g. "all revisions made by user X". However, I cannot see there is any way to do so. There are common parameters available (min, max, fromdate, todate, and sort) but user_id does not seem to be among them.

I know I can see suggested edits, but if I understand it correctly, this only applies to users under the immediate-approve threshold, and thus won't capture revisions from higher-rep users.

Is what I want to do possible?

Interestingly, it seems that screen-scraping is unexpectedly not verboten. Perhaps that is an option, in lieu of a specific API feature?

1 Answer 1

2

Alas, no. The API currently does not have any easy way to track a user's edits.

You can see what returns edit information by scrolling to the bottom of the revision object, documentation page. Currently, it says:

Methods That Return This Type
    posts/{ids}/revisions
    revisions/{ids}

Such cross-references are on every object's doc page, and none of them are of help for getting a user's edits.

You can get this information from a SEDE query, if you don't mind the data being up to a week old. (PS: not all maniacs have 13,510 edits and counting! (^_^)  )

Ironically, you can get a user's suggested edits (As you noted), but not his actual edits!


Edits would be an excellent addition to the network_activity type.
==> Consider making a feature request. <==

Or, request that a /users/{ids}/edits route be added.

7
  • Thanks for your thoughts (and yes, I am a keen editor ;-). Can I run a SEDE query via an API call? The data being up to a week old isn't ideal, but not a deal-breaker IMO.
    – halfer
    Commented Sep 2, 2015 at 17:17
  • No. There is no API for SEDE, but that would be a great thing to have! You can pester @TimStone, or Nick Craver, etc., to add one or submit a pull-request yourself. (hint, hint) :D Commented Sep 2, 2015 at 17:21
  • Thanks. I see folks have tried programmatically downloading the SEDE CSV file without success. So, yes, an API would be great, but sadly I am not a .net dev, so I don't think I'll be able to assist here! I will certainly raise feature requests though.
    – halfer
    Commented Sep 2, 2015 at 17:29
  • PS, I didn't necessarily mean to make a new (almost duplicate) post -- although I think it's okay in this case. You could have just edited this question. ;) Commented Sep 2, 2015 at 17:54
  • I can delete that and modify this one, if you'd rather? Since I am a frequent editor of other people's posts I am happy to take advice :-).
    – halfer
    Commented Sep 2, 2015 at 17:56
  • 1
    Don't bother. If Tim doesn't mind, I don't. Commented Sep 2, 2015 at 17:58
  • Cool. For future readers, here's my feature requests: post revisions by user and a SEDE API.
    – halfer
    Commented Sep 2, 2015 at 18:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .