Skip to content
OSINTtools.io

unavatar API

Open-source API that fetches the avatar for a username, email or domain from GitHub, Gravatar, Instagram and around 100 other providers.

Base URL
https://unavatar.io
Sign-in
API key
Free tier
Free tier
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from unavatar.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

unavatar resolves an avatar image for a username on a given platform, or for an email address or domain across its providers (Gravatar, Libravatar, BIMI, DuckDuckGo, Google and others). By default the response is the image itself; with json=true it returns the resolved image URL instead, which is the form an investigator can read.

Requests go to https://unavatar.io. Anonymous requests are limited to 25 per day per IP; paid plans send a key in the x-api-key header, and publishable pk_ keys can go in a token query parameter. Free plans must include an attribution link. The OpenAPI file lists the providers.

Quick start

  1. Get a key

    Create an account with unavatar and copy your api key (free tier). Where to get it

  2. Make your first request

    Get an avatar from a specific provider for a username or typed input.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://unavatar.io/github/exampleuser' \
      -H 'x-api-key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "url": "https://avatars.example.com/u/1000001.png"
    }

Authentication

Send your API key in the x-api-key header of every request.

Optional: anonymous use is allowed within the daily limit.

Get a key from unavatar

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Anonymous: 25 requests per day per IP

Free tier.

Errors

StatusMeaning
400Error payload
401Error payload
403Error payload
404No avatar found and fallback=false
429Rate limit exceeded
500Error payload

Avatars

Returns the image, or JSON with the resolved URL when json is set. Some providers accept typed inputs such as artist:name.

Path parameters

providerstringrequired

Provider name

Example: githubOne of: apple-music, apple-store, behance, bilibili, bimi, bitbucket, bluesky, buymeacoffee, cashapp, chesscom, codeforces, codepen, cults3d, cursor, dailymotion, deezer, devto, deviantart, discord, dockerhub, dribbble, duckduckgo, duolingo, ens, facebook, farcaster, flickr, gitee, github, gitlab, goodreads, google, google-play, gravatar, gumroad, hevy, huggingface, instagram, juejin, kaggle, keybase, kick, ko-fi, lemmy, libravatar, linkedin, mastodon, matrix, medium, microlink
inputstringrequiredtakes your username

Username or provider-specific input

Example: exampleuser

Query parameters

jsonboolean

Return JSON with the image URL instead of the image

Example: true
fallbackstring

Image URL or data URI returned when nothing is found; false returns 404

Example: false
ttlstring

Cache freshness from 1h to 28d (custom values need the PRO plan)

Example: 24hDefault: 24h
Response fields · 1Show

urlstring

Resolved image URL, or null when none was found

curl 'https://unavatar.io/github/exampleuser' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "url": "https://avatars.example.com/u/1000001.png"
}

The input must contain @ or a dot; usernames need the provider form.

Path parameters

inputstringrequiredtakes your email

Email address or domain

Example: user@example.com

Query parameters

jsonboolean

Return JSON with the image URL instead of the image

Example: true
fallbackstring

Image URL or data URI returned when nothing is found; false returns 404

Example: false
Response fields · 1Show

urlstring

Resolved image URL, or null when none was found

curl 'https://unavatar.io/user%40example.com' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "url": "https://avatars.example.com/u/1000002.png"
}

Service

  • Passive: the target is not contacted

Anonymous access only.

Response fields · 3Show

statusstring

success

messagestring

pong

dataobject

Extra data

curl 'https://unavatar.io/ping' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "message": "pong",
  "data": {}
}