/v1/icon
Icon SVG + metadata
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}