Ir al contenido
GET /v1/coordinates

Hole positions on a bolt circle

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/boltcircle-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/boltcircle-api/v1/coordinates" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boltcircle-api/v1/coordinates", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boltcircle-api/v1/coordinates");
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/coordinates",
    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": "Holes equally spaced by 360/N. x = cx + R·cos θ, y = cy + R·sin θ. Adjacent chord = 2·R·sin(π/N).",
        "holes": 4,
        "center": {
            "x": 0,
            "y": 0
        },
        "radius": 50,
        "direction": "ccw",
        "coordinates": [
            {
                "x": 50,
                "y": 0,
                "hole": 1,
                "angle_deg": 0
            },
            {
                "x": 0,
                "y": 50,
                "hole": 2,
                "angle_deg": 90
            },
            {
                "x": -50,
                "y": 0,
                "hole": 3,
                "angle_deg": 180
            },
            {
                "x": 0,
                "y": -50,
                "hole": 4,
                "angle_deg": 270
            }
        ],
        "adjacent_chord": 70.71068,
        "angle_step_deg": 90,
        "start_angle_deg": 0,
        "bolt_circle_diameter": 100
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:06.237Z",
        "request_id": "54eb2292-92e3-49be-8bf9-d6bc8d5761cc"
    },
    "status": "ok",
    "message": "Hole positions on a bolt circle",
    "success": true
}