/v1/diameter
BCD from a measured chord
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/boltcircle-api/v1/diameter" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boltcircle-api/v1/diameter", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boltcircle-api/v1/diameter");
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/boltcircle-api/v1/diameter",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "R = chord / (2·sin(central angle / 2)). Use steps_apart for non-adjacent measured holes.",
"holes": 4,
"radius": 49.99952,
"steps_apart": 1,
"adjacent_chord": 70.71,
"measured_chord": 70.71,
"central_angle_deg": 90,
"bolt_circle_diameter": 99.99904
},
"meta": {
"timestamp": "2026-06-04T01:59:06.328Z",
"request_id": "b03bd7ec-341a-4cae-8187-2edf93a32b69"
},
"status": "ok",
"message": "Bolt circle diameter from a chord",
"success": true
}