Vai al contenuto
GET /v1/icon

Icon SVG + metadata

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "icon": {
            "id": "mdi:home",
            "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8z\"/></svg>",
            "body": "<path fill=\"currentColor\" d=\"M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8z\"/>",
            "name": "home",
            "width": 24,
            "height": 24,
            "prefix": "mdi",
            "css_url": "https://api.iconify.design/mdi.css?icons=home",
            "svg_url": "https://api.iconify.design/mdi:home.svg",
            "view_box": "0 0 24 24",
            "iconify_url": "https://icon-sets.iconify.design/mdi/home/"
        }
    },
    "meta": {
        "timestamp": "2026-05-31T14:05:59.172Z",
        "request_id": "90be5537-76f1-43c5-9f04-b8421792bc5f"
    },
    "status": "ok",
    "message": "Icon retrieved",
    "success": true
}