Skip to content
GET /v1/avatar

Build the avatar URL

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/gravatar-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/gravatar-api/v1/avatar" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gravatar-api/v1/avatar", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gravatar-api/v1/avatar");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/gravatar-api/v1/avatar",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "email": "[email protected]",
        "hash_md5": "55502f40dc8b7c769880b10874abc9d0",
        "avatar_url": "https://gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=200",
        "hash_sha256": "973dfe463ec85785f5f95af5ba3906eedb2d931c24e69824a89ea65dba4e813b"
    },
    "meta": {
        "timestamp": "2026-06-01T23:40:42.451Z",
        "request_id": "fcae90cb-c82c-487a-b875-7cabe4b03f09"
    },
    "status": "ok",
    "message": "Avatar URL built",
    "success": true
}