# unavatar API reference

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

Source: https://osinttools.io/apis/unavatar/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/unavatar/

- Base URL: https://unavatar.io
- Authentication: API key in the `x-api-key` header. Get a key: https://unavatar.io Optional: anonymous use is allowed within the daily limit.
- Free tier: yes
- Rate limits: Anonymous: 25 requests per day per IP
- Vendor docs: https://unavatar.io/docs
- OpenAPI spec: https://unavatar.io/openapi.json

## Overview

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.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Error payload |
| 401 | Error payload |
| 403 | Error payload |
| 404 | No avatar found and fallback=false |
| 429 | Rate limit exceeded |
| 500 | Error payload |

## Avatars

### Get an avatar from a specific provider for a username or typed input.

`GET /{provider}/{input}`

- Takes: Username
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `provider` | path | string | yes | Provider name Example: github One 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 |
| `input` | path | string | yes | Username or provider-specific input Example: exampleuser |
| `json` | query | boolean | no | Return JSON with the image URL instead of the image Example: true |
| `fallback` | query | string | no | Image URL or data URI returned when nothing is found; false returns 404 Example: false |
| `ttl` | query | string | no | Cache freshness from 1h to 28d (custom values need the PRO plan) Example: 24h |

Response fields:

- `url` (string): Resolved image URL, or null when none was found

```bash
curl 'https://unavatar.io/github/exampleuser' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

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

### Resolve an avatar for an email or domain across every provider.

`GET /{input}`

- Takes: Email, Domain
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `input` | path | string | yes | Email address or domain Example: user@example.com |
| `json` | query | boolean | no | Return JSON with the image URL instead of the image Example: true |
| `fallback` | query | string | no | Image URL or data URI returned when nothing is found; false returns 404 Example: false |

Response fields:

- `url` (string): Resolved image URL, or null when none was found

```bash
curl 'https://unavatar.io/user%40example.com' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "url": "https://avatars.example.com/u/1000002.png"
}
```

## Service

### Health check.

`GET /ping`

- Footprint: passive (the target is not contacted)

Anonymous access only.

Response fields:

- `status` (string): success
- `message` (string): pong
- `data` (object): Extra data

```bash
curl 'https://unavatar.io/ping' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "message": "pong",
  "data": {}
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
