Stack Overflow Reputation API
Every reputation change for one user, newest first, with what caused it and on which post.
GET /v1/stack-overflow/users/{memberId}/reputation1 credit Failed requests are free
About this endpoint
GET /v1/stack-overflow/users/{memberId}/reputation returns a page of reputation changes, newest first. Each event has at, change, voteType, postId and postType. change is positive for a gain and negative for a loss; voteType is the cause, for example up_votes, accepts or bounties_won.
Use it to see which posts a user's reputation came from, or to track a spike. Page with page.nextCursor while page.hasMore is true. A user with no reputation events is found with an empty list; a user id that does not exist is not_found.
Stack Overflow Reputation API FAQ
What causes a reputation event?
voteType names it: up_votes, down_votes, accepts, bounties_won and the other kinds the site records. A negative change is a loss.
How many credits does a page cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.
Can a reputation event have no post?
Yes. Some events, such as a bonus, are not tied to a post, so postId and postType are null.
How is an empty list different from not_found?
A real user with no reputation events is lookupStatus found with data.events empty. A user id that does not exist is lookupStatus not_found.
Other Stack Overflow endpoints
- QuestionGET /v1/stack-overflow/questions/{questionId}
- Questions by idGET /v1/stack-overflow/questions/batch
- QuestionsGET /v1/stack-overflow/questions
- SearchGET /v1/stack-overflow/questions/search
- Similar titlesGET /v1/stack-overflow/questions/title-search
- AnswersGET /v1/stack-overflow/questions/{questionId}/answers
- CommentsGET /v1/stack-overflow/posts/{postId}/comments
- Comments by postGET /v1/stack-overflow/posts/comments