/v1/gauge
Gauge from a swatch
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/knitting-api/v1/gauge" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/knitting-api/v1/gauge", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/knitting-api/v1/gauge");
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/knitting-api/v1/gauge",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "Gauge per 10 cm = count/measured · 10. Counting 33 stitches over 15 cm gives 22 stitches per 10 cm.",
"inputs": {
"count": 33,
"measured_cm": 15
},
"per_cm": 2.2,
"per_10cm": 22,
"per_inch": 5.588
},
"meta": {
"timestamp": "2026-06-05T19:50:19.731Z",
"request_id": "ee3a18dc-8296-4797-9917-97e94f76a84d"
},
"status": "ok",
"message": "Gauge from swatch",
"success": true
}