Vai al contenuto
GET /v1/avatar

Initials avatar (SVG)

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/placeholder-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/placeholder-api/v1/avatar" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/placeholder-api/v1/avatar", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/placeholder-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/placeholder-api/v1/avatar",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "bg": "#0891b2",
        "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"128\" height=\"128\" viewBox=\"0 0 128 128\"><circle cx=\"64\" cy=\"64\" r=\"64\" fill=\"#0891b2\"/><text x=\"50%\" y=\"50%\" dy=\".35em\" fill=\"#ffffff\" font-family=\"Arial,Helvetica,sans-serif\" font-size=\"51\" font-weight=\"600\" text-anchor=\"middle\">AL</text></svg>",
        "name": "Ada Lovelace",
        "size": 128,
        "color": "#ffffff",
        "format": "svg",
        "rounded": true,
        "initials": "AL"
    },
    "meta": {
        "timestamp": "2026-05-30T14:35:20.027Z",
        "request_id": "3e9ae28c-5a56-4ac3-bdbf-e88ff9820ef6"
    },
    "status": "ok",
    "message": "OK",
    "success": true
}