Get avatar from YouTube

Resolve user avatars against youtube.com with a single URL. No API keys, no SDK — just unavatar.io/youtube/{input}.

unavatar.io/youtube/
Avatar preview
Avatar preview (back)
<img src="https://unavatar.io/youtube/@Google" />
API reference

YouTube API usage

Get any YouTube channel's thumbnail by their handle, legacy username, or channel ID.

e.g., unavatar.io/youtube/casey

The endpoint supports specific input formats.

If the input starts with UC and has 24 characters, it is treated as a channel ID. Otherwise, it is treated as a handle.

Available inputs:

  • username: unavatar.io/youtube/casey or unavatar.io/youtube/@casey
  • channel: unavatar.io/youtube/UC_x5XG1OV2P6uZZ5FSM9Ttw
How it works

From channel to avatar in one request

Build the URL with your YouTube channel, get the avatar. No API keys required for the free tier.

Step 01

Build the URL

Use unavatar.io/youtube/ plus your channel.

https://unavatar.io/youtube/
Step 02

Get the avatar

unavatar resolves the avatar from youtube.com.

Avatar preview
Avatar preview (back)
Avatar resolved
Provider: YouTube
<img src="https://unavatar.io/youtube/%40Google" />
Step 03

Cached & optimized

Resolved avatars are cached for up to 24 hours. Subsequent requests return instantly — no redundant upstream lookups.

HTTP/1.1 200 OK
content-type: image/png
cache-control: public, max-age=86400
x-cache: HIT
x-pricing-tier: pro
x-proxy-tier: origin
x-unavatar-cost: 1
x-rate-limit-limit: 50
x-rate-limit-remaining: 49
Features

One endpoint for YouTube avatars

Get YouTube profile pictures with a single URL. Cached at the edge, no SDK required.

unavatar.io/youtube/username

Returns the avatar image or a fallback

used by popular sites

Vercel logoSupabase logoOpenAI logoDub logoTurso logoGitHub logoClaude AI logoNvidia logoClerk logoBolt logoStripe logo
Last 30 days522MAvatars resolved

Performant and proven to handle scale, every day.

Last 30 days24 TBData served

Proudly serving companies from small to large every day.

No less than97%CDN cache ratio

Fast responses backed by a global edge network you can count on.

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.

9,800 reqs/moestimated cost$10/mo
1K10K100K1M
Get startedNo subscription. Billed monthly based on usage.
25+ providers
Edge-cached responses
API key access
Custom fallbacks
Custom TTL
JSON & image formats
Priority support
SLA guarantee
Trusted by builders
We replaced three different avatar services with a single unavatar call. Simpler code, fewer dependencies, better results.
Sarah Chen
Sarah ChenStaff Engineer at Vercel
The fallback chain is genius — we never show a broken avatar anymore. Our users noticed the difference immediately.
Marcus Rivera
Marcus RiveraCTO at Resend
Integrated unavatar into our onboarding flow in 10 minutes. The API is exactly what you'd expect — no surprises, just works.
Lena Mayer
Lena MayerFrontend Lead at Cal.com
We serve 200K+ profiles daily and unavatar handles our avatar resolution without breaking a sweat. Rock-solid reliability.
James Thornton
James ThorntonBackend Engineer at Linear
Switched from building our own avatar pipeline to unavatar. Saved us weeks of maintenance and edge cases we didn't want to own.
Priya Sharma
Priya SharmaEngineering Manager at Raycast
The multi-provider resolution is a killer feature. One endpoint covers GitHub, Google, Gravatar, and everything else we need.
Tom Nguyen
Tom NguyenFullstack Developer at Dub
Frequently Asked Questions

Is unavatar free to use?

Yes. The service is free for low-volume usage. Paid usage is metered — there are no minimums or subscriptions, you only pay for non-cached requests you actually make.

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 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.

Can I use it in production?

Absolutely. unavatar serves millions of requests per month with 99.6%+ uptime. Paid plans include an SLA guarantee and priority support.

Which providers are supported?

Over 20 providers including GitHub, X, Instagram, Gravatar, Google, Bluesky, Spotify, and more. You can also resolve by email or domain.

Still have questions? Ask on GitHub

kikobeatsnicholascelesworthystyfleOskarGrothbreadadams

3,300+ stars on GitHub

Proudly Open Source
crafted 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.