Type shallow_user

Discussion

This type represents a user, but omits many of the fields found on the full User type.

This type is mostly analogous to the "user card" found on many pages (like the question page) on a Stack Exchange site.

Fields

accept_rate
integer
may be absent

account_id 2.3
integer

badge_counts 2.2

display_name
string
may be absent

link
string
unchanged in unsafe filters
may be absent

profile_image
string
unchanged in unsafe filters
may be absent

reputation
integer
may be absent

user_id
integer, refers to a user
may be absent

user_type
one of unregistered, registered, moderator, team_admin, or does_not_exist

Fields marked with are included in the default filter, those marked with are excluded in the default filter.

Examples

Typical

{"reputation":9001,"user_id":1,"user_type":"registered","accept_rate":55,"profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User","link":"http://example.stackexchange.com/users/1/example-user"}

Non-Existent

{"user_type":"does_not_exist","display_name":"Old Display Name"}

Methods That Return This Type

No methods return this type directly, it is found as a member on the following types.

answer
article
badge
comment
flag_option
post
question
closed_details
question_timeline
revision
search_excerpt
suggested_edit
tag_score
tag_wiki