Type user

Discussion

This type describes a user on a Stack Exchange site.

There are a number of different user types returned by the API, depending on the method. Others include shallow_user and network_user.

Fields

about_me
string
unchanged in unsafe filters
may be absent

accept_rate
integer
may be absent

account_id
integer

age
integer
may be absent

answer_count
integer

badge_counts

collectives 2.3

creation_date

display_name
string

down_vote_count
integer

is_employee
boolean

last_access_date

last_modified_date

link
string
unchanged in unsafe filters

location
string
may be absent

profile_image
string
unchanged in unsafe filters

question_count
integer

reputation
integer

reputation_change_day
integer

reputation_change_month
integer

reputation_change_quarter
integer

reputation_change_week
integer

reputation_change_year
integer

timed_penalty_date

up_vote_count
integer

user_id
integer, refers to a user

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

view_count
integer

website_url
string
unchanged in unsafe filters
may be absent

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

Examples

Typical

{"badge_counts":{"bronze":3,"silver":2,"gold":1},"view_count":1000,"down_vote_count":50,"up_vote_count":90,"answer_count":10,"question_count":12,"account_id":1,"is_employee":false,"last_modified_date":1734744886,"last_access_date":1734788086,"reputation_change_year":9001,"reputation_change_quarter":400,"reputation_change_month":200,"reputation_change_week":800,"reputation_change_day":100,"reputation":9001,"creation_date":1734744886,"user_type":"registered","user_id":1,"accept_rate":55,"about_me":"about me block","location":"An Imaginary World","website_url":"http://example.com/","link":"http://example.stackexchange.com/users/1/example-user","profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User"}

Suspended User

{"badge_counts":{"bronze":3,"silver":2,"gold":1},"view_count":1000,"down_vote_count":50,"up_vote_count":90,"answer_count":10,"question_count":12,"timed_penalty_date":1735436086,"account_id":1,"is_employee":false,"last_modified_date":1734744886,"last_access_date":1734788086,"reputation_change_year":9001,"reputation_change_quarter":400,"reputation_change_month":200,"reputation_change_week":800,"reputation_change_day":100,"reputation":9001,"creation_date":1734744886,"user_type":"registered","user_id":1,"accept_rate":55,"about_me":"about me block","location":"An Imaginary World","website_url":"http://example.com/","link":"http://example.stackexchange.com/users/1/example-user","profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User"}

Methods That Return This Type