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 building something similar to the reputation graph / summary on the SO user page.

rep

The answer explains that the /users/{ids}/reputation API method gives a sum of reputation for the period. So querying for the start/end of 14-Apr-2011 gives me the +5 rep I see in the screenshot.

https://api.stackexchange.com/2.0/users/109102/reputation?fromdate=1334361600&todate=1334448000&site=stackoverflow

The screenshot graph runs from 14-Apr-2011 to 16-Mar-2011. To build something similar I think I'll have to hit a URL with the date boundaries for each day in the range. Is this right, or is there an easier way?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

It's pretty hard to reproduce that graph using the API unfortunately. The data that backs it is a fairly recent addition to the sites, that was under serious revision when API V2.0 was being designed so it's not directly exposed.

The best approximation available is that pretty nasty query plan, yes. Some better data is planned for the next API release now that the actual implementation of reputation has settled down some.

share|improve this answer
    
Thanks Kevin. I'm about to build the graph in a wp7 app. Maybe i'll do it in server side code until the new api becomes available. –  russau Apr 17 '12 at 21:52
add comment

You must log in to answer this question.

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