2

I am looking for an easy way to access user reputation so that I can write a small react component and display my rep on my portfolio site.

I want to make this package available on NPM and have minimal config for the end user. So ideally, they enter in their user_id and if necessary an API key or something.

Going through oAuth to get access token and then having to renew access token seems very convoluted just to retrieve reputation for a user, but maybe it's the only way?

Are there any endpoints like this post talks about where you can make a simple get request like

https://stackoverflow.com/ajax/users/14343/rep/day/1304035200

except return all reputation and preferably formatted in JSON.

1 Answer 1

4

The question is not clear. If you just want a user's reputation merely do a GET of the API /users/{ids} route. Like so:

api.stackexchange.com/2.2/users/3528590?site=stackoverflow&filter=!qGQfndHk_gIjJ(.lwtNt

(The custom filter is just to remove all the other stuff we don't care about.)

OAuth is not needed, and even a key is optional. (It just increases the quota for the IP making the request.)
You can also register for a key and then reuse it for any number of users (no need for them to get their own key in this case).


If you are looking for daily reputation, or changes, or events/history then the API has other routes for that:

0

You must log in to answer this question.

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