Ir al contenido
GET /v1/calc

Steps, riser, tread, stringer, angle

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/stair-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/stair-api/v1/calc" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stair-api/v1/calc", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stair-api/v1/calc");
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/stair-api/v1/calc",
    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": "Steps = round(total rise ÷ target riser); actual riser = total rise ÷ steps. There is one fewer tread than risers. Blondel 2R+T should be 24–25 in.",
        "input": {
            "unit": "in",
            "tread_in": 10,
            "total_rise_in": 108,
            "target_riser_in": 7
        },
        "steps": 15,
        "issues": [],
        "risers": 15,
        "treads": 14,
        "total_run": {
            "cm": 355.6,
            "mm": 3556,
            "feet": 11.6667,
            "inches": 140
        },
        "tread_depth": {
            "cm": 25.4,
            "mm": 254,
            "feet": 0.8333,
            "inches": 10
        },
        "riser_height": {
            "cm": 18.29,
            "mm": 182.9,
            "feet": 0.6,
            "inches": 7.2
        },
        "angle_degrees": 35.75,
        "code_compliant": true,
        "stringer_length": {
            "cm": 449.11,
            "mm": 4491.1,
            "feet": 14.7347,
            "inches": 176.816
        },
        "blondel_2r_plus_t": 24.4,
        "comfortable_blondel": true
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:15.879Z",
        "request_id": "5b73c77d-69dc-455c-b857-a460606ddf91"
    },
    "status": "ok",
    "message": "Staircase calculation",
    "success": true
}