I'm currently working on a small project with SE data, and I can't find an API method for this, so I'm asking here.

Is there any way to get a history of any user's reputation each day?

I know this is possible because I can see the raw data by viewing the source of http://stackexchange.com/users/{userid}?tab=reputation, which for me looks like this (on meta):


Is it possible to get this data programmatically, other than by scraping the specific user's page? Such as a data.SE query, or an API call?

I've tried the reputation-on-users method, but then I found a problem: it doesn't show the -1 rep change from downvotes on answers, which can throw off the data. (This is shown, however, in the rep graph on the SE user page.)

  • 1
    Note that stackapps.com is the go-to site for API questions too. – Martijn Pieters Mar 1 '14 at 20:04
  • Shouldn't you combine /2.2/users/1223693/timeline?site=stackoverflow and /2.2/users/1223693/reputation?site=stackoverflow as timeline has your downvotes? – rene Mar 1 '14 at 20:23
  • @rene I want to get any user's rep history, not just mine. I'll edit to clarify – Doorknob Mar 1 '14 at 20:23
  • But that is your timeline which I can fetch...it might still be a bug in the api though – rene Mar 1 '14 at 20:24
  • @rene Wait, so you can see my downvotes? That's supposed to be impossible... – Doorknob Mar 1 '14 at 20:25
  • True...I missed that...it are the downvotes you received, not the ones you voted for... – rene Mar 1 '14 at 20:28
  • If you take the down_vote_count from the user object will that be enough to compensate? – rene Mar 1 '14 at 20:42
  • @rene Not all downvotes are on answers. – Doorknob Mar 1 '14 at 20:43
  • @AaronBertrand But I do have access to it. Please read the question. (http://stackexchange.com/users/{userid}?tab=reputation) – Doorknob Mar 1 '14 at 21:14
  • @AaronBertrand I'm not sure what you're referring to. Your answer missed the point of the question - I don't care about downvotes. I care about the rep history. – Doorknob Mar 1 '14 at 22:33

You can reconstruct the data on that page by querying /users/{id}/reputation-history/full for a particular user, but it requires that they authorize your application to see that information first, and places the burden of aggregating the data on you.

The only other option is to scrape the user's network profile page for the preaggregated daily reputation totals, as you already mentioned.

Since this information is already available to the page though, it might make sense to request a method be added to the API that will give you the reputation values within a given date range. Doesn't help with your immediate situation, but it could be of benefit in the future.

You must log in to answer this question.

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