latestOpenAPI 3.1.02026-08-153142951.5 KB

8187a0ec8763

users

Retrieve user avatar

This endpoint returns a JSON with the avatar URL for the user.

If called with the Sec-Fetch-Dest: image header, it instead redirects to the avatar URL

get/api/users/{username}/avatar

Path parameters

usernamestring required

Query parameters

{"stackTrail":"paths:/api/users/{username}/avatar:get:parameters:1:schema","oasType":"schema","type":"unknown","description":"Redirect to the avatar url instead of returning it"}

Response

Avatar URL

avatarUrlstring uri required