Zum Inhalt springen
GET /v1/chord

Distance between two holes

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/boltcircle-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/boltcircle-api/v1/chord" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boltcircle-api/v1/chord", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boltcircle-api/v1/chord");
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/chord",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Chord = 2·R·sin(central angle / 2). Central angle = (holes apart) × 360/N.",
        "holes": 4,
        "hole_a": 1,
        "hole_b": 3,
        "steps_apart": 2,
        "adjacent_chord": 70.71068,
        "chord_distance": 100,
        "central_angle_deg": 180,
        "bolt_circle_diameter": 100
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:06.132Z",
        "request_id": "4e2d19c3-aa60-4c7e-8b10-b39759bc6c52"
    },
    "status": "ok",
    "message": "Distance between two holes",
    "success": true
}