Get an avatar from a specific provider for a username or typed input.
GET/{provider}/{input}
- Takes: Username
- Passive: the target is not contacted
Returns the image, or JSON with the resolved URL when json is set. Some providers accept typed inputs such as artist:name.
Path parameters
providerProvider name
inputUsername or provider-specific input
Query parameters
jsonReturn JSON with the image URL instead of the image
fallbackImage URL or data URI returned when nothing is found; false returns 404
ttlCache freshness from 1h to 28d (custom values need the PRO plan)
Response fields · 1ShowHide
url
Resolved image URL, or null when none was found
curl 'https://unavatar.io/github/exampleuser' \
-H 'x-api-key: YOUR_API_KEY'{
"url": "https://avatars.example.com/u/1000001.png"
}