/v1/fromdiameter
AWG from diameter
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/wiregauge-api/v1/fromdiameter" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wiregauge-api/v1/fromdiameter", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wiregauge-api/v1/fromdiameter");
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/wiregauge-api/v1/fromdiameter",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "AWG = 36 − 39·log₉₂(d/0.127). Negative AWG means 1/0, 2/0, 3/0 (−1, −2, −3).",
"inputs": {
"diameter_mm": 2.05
},
"awg_exact": 12.0106,
"awg_nearest": 12,
"nearest_diameter_mm": 2.05253
},
"meta": {
"timestamp": "2026-06-04T18:38:13.154Z",
"request_id": "217844f4-59b9-4ea3-be00-9a9f3ad38ef5"
},
"status": "ok",
"message": "AWG from diameter",
"success": true
}