Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I'm currently using the Stackoverflow API to get a list of detailed user information (via http://api.stackoverflow.com/1.1/usage/methods/users-by-ids). There is an attribute called "up_vote_count" which returns the number of how often a user has GIVEN upvotes. What I want is some kind of the opposite:

Is it possible with the Stackoverflow API to get/calculate the count of how often a user RECEIVE upvotes?

The only way I would see is to crawl through the reputation changes via http://api.stackoverflow.com/1.1/usage/methods/user-reputation-changes and add +1 to a local upvote variable if there is "+10 reputation". But this would suck pretty hard...

Any Ideas?

share|improve this question
    
Why would doing it that way be so terrible? –  Nathan Osman May 31 '11 at 20:47
add comment

1 Answer

You could call all of the various ways a user can be upvoted and get how many upvotes they received for each.

Within each enumerate looking for the number of upvotes (or score in Comments case).

share|improve this answer
    
That would be far more complicated than polling the reputation changes route. –  Nathan Osman May 31 '11 at 21:58
    
@George Edison: But would give more accurate results, and I assumed given the comparision to total up votes given that an overall number is needed, which doesn't seem to be possible in the reputation route from what I can tell. –  Guvante May 31 '11 at 22:21
    
Why don't you think it's possible to obtain all votes received using the reputation route? –  Nathan Osman May 31 '11 at 22:24
    
@George Edison: Because the API says so"Reputation changes are intentionally scrubbed of some data to make it difficult to correlate votes on particular posts with user reputation changes. That being said, this method returns enough data for reasonable display of reputation trends." Additionally my Stackoverflow account with returns 9 results when I use the console, which is a bit less than what I have received upvotes for. –  Guvante May 31 '11 at 22:31
    
Hmmm... well hopefully @Kevin will be able to tell us what data is scrubbed and maybe explain the anomalies in the reputation method. –  Nathan Osman May 31 '11 at 22:34
add comment

You must log in to answer this question.

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