Get avatar from Steam
Resolve user avatars against steamcommunity.com with a single URL. No API keys, no SDK — just unavatar.io/steam/{username}.
<img src="https://unavatar.io/steam/id:gabelogannewell" />Steam API usage
Get any Steam player or community group profile picture by public profile name, numeric account ID, or group name.
The input supports a URI format type:value.
When no type is provided, it defaults to id (player profile name).
Get Steam avatar in one request
Build a URL with the Steam endpoint and your input, then fetch the image. No API keys required for the free tier.
Build the URL
Start from unavatar.io/steam/ and add the input that provider expects.
Get the avatar
unavatar resolves the avatar from steamcommunity.com.
<img src="https://unavatar.io/steam/id%3Agabelogannewell" />Cached & optimized
Resolved avatars are cached for up to 24 hours. Subsequent requests return instantly — no redundant upstream lookups.
unavatar works with 36+ platforms
Resolve avatars from GitHub, X, Instagram, Spotify, and more with the same simple API.
Performant and proven to handle scale, every day.
Fast responses backed by a global edge network you can count on.
Proudly serving companies from small to large every day.
Pricing, made simple
Pure pay-as-you-go. No minimums, no commitments — you only pay for what you use.
Cached requests are served for free and don't count toward your usage.
What is an avatar API?
An avatar API is a service that retrieves user avatars programmatically. Instead of integrating with each social platform individually, an avatar API like unavatar lets you fetch avatars from GitHub, X, Instagram, Gravatar, and 36+ other providers through a single HTTP endpoint.
Is unavatar free to use?
Yes. The avatar API is free for low-volume usage with 50 requests per day. Paid usage is metered — there are no minimums or subscriptions, you only pay for non-cached requests you actually make.
How do I get an avatar from an email address?
Simply make a GET request to unavatar.io/[email protected] and the API will resolve the avatar from Gravatar, Google, and other email-based providers automatically. No API key is needed for the free tier.
Do I need an API key?
Not for the free tier. Once you sign up for a paid plan, you get an API key that removes rate limits and unlocks extra features like custom TTL.
What happens if an avatar can't be found?
A default fallback image is returned automatically. You can customize it by passing a fallback URL as a query parameter to match your app's style.
How fast are avatar API responses?
Cached avatars are served from the edge in under 50ms worldwide. Fresh lookups depend on the upstream provider but are typically resolved in under 300ms. All responses are cached on a global CDN.
Can I use this avatar API in production?
Absolutely. unavatar serves millions of requests per month with 99.6%+ uptime. Paid plans include an SLA guarantee and priority support.
Which avatar providers are supported?
Over 36 providers including GitHub, X (Twitter), Instagram, Gravatar, Google, Bluesky, Spotify, LinkedIn, YouTube, Telegram, and more. You can also resolve avatars by email address or domain name.
How is unavatar different from Gravatar?
Gravatar only works with email addresses registered on its platform. unavatar is a universal avatar API that checks 36+ providers including Gravatar, so you get much higher coverage. If Gravatar has no result, unavatar automatically tries GitHub, Google, and other sources.
Still have questions? Ask on GitHub
1,417 stars on GitHub
Proudly Open Sourcecrafted by Microlink.io
unavatar is free, open source, and community-driven. Inspect the code, open an issue, or contribute a new provider — everyone is welcome.