4

I can not understand how to access the summary information about the user's reputation. How to use the shallow_user object ?

I tried:

https://api.stackexchange.com/2.2/shallow-user/2765346/reputation?site=stackoverflow

and

https://api.stackexchange.com/2.2/users/2765346/shallow-user?site=stackoverflow

Doesn't work. I want to access the total reputation of the user, not the full history.

Brock Adams
  • 12,901
  • 5
  • 38
  • 64
Hristo Eftimov
  • 171
  • 1
  • 6

1 Answers1

2

You don't use shallow_user; several routes (can) return it.

If you want the reputation for a user, you would typically use the /users/{ids} route. EG:
          /2.2/users/2765346?site=stackoverflow

If you just want the reputation and not a lot of other stuff use a filter. EG:
          /2.2/users/2765346?site=stackoverflow&filter=!40D.p(1f74CtdIRr7

Brock Adams
  • 12,901
  • 5
  • 38
  • 64