/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/svgo-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/svgo-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/svgo-api/v1/meta");
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/svgo-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"name": "SVG Optimizer API",
"notes": "Max input 2 MB. Uses SVGO's default preset (removes comments, metadata, redundant attributes; merges paths). Send markup via POST for large files.",
"version": "v1",
"endpoints": [
{
"path": "/v1/optimize",
"params": {
"svg": "SVG markup (required)",
"multipass": "true/false, default true"
},
"returns": "optimised SVG + byte sizes + savings"
},
{
"path": "/v1/datauri",
"params": {
"svg": "SVG markup (required)",
"encoding": "uri|base64 (default uri)",
"multipass": "default true"
},
"returns": "a data: URI + ready CSS rule"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Minify and clean SVG markup with SVGO, and turn an SVG into a CSS-ready data URI. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-02T16:51:47.593Z",
"request_id": "357f8ba3-dff6-41b4-a907-a2fcd6d77262"
},
"status": "ok",
"message": "Meta",
"success": true
}