Vai al contenuto
GET /v1/pattern

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

Risposta di esempio

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

{
    "data": {
        "bg": "#f0f0f0",
        "fg": "#4f46e5",
        "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"240\" height=\"240\" viewBox=\"0 0 240 240\"><rect width=\"240\" height=\"240\" fill=\"#f0f0f0\"/><rect x=\"0\" y=\"48\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"192\" y=\"48\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"0\" y=\"144\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"192\" y=\"144\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"48\" y=\"0\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"144\" y=\"0\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"48\" y=\"48\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"144\" y=\"48\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"96\" y=\"48\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"96\" y=\"48\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"96\" y=\"96\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"96\" y=\"96\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"96\" y=\"192\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/><rect x=\"96\" y=\"192\" width=\"48\" height=\"48\" fill=\"#4f46e5\"/></svg>",
        "grid": 5,
        "seed": "[email protected]",
        "size": 240,
        "format": "svg"
    },
    "meta": {
        "timestamp": "2026-05-30T14:35:20.173Z",
        "request_id": "6f4efdf1-1be1-4ade-a053-9a54cbe9e4c0"
    },
    "status": "ok",
    "message": "OK",
    "success": true
}