Skip to content
GET /v1/check

Code compliance of a riser/tread

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/stair-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Checks a riser/tread against typical US IRC limits and the Blondel comfort rule (2·riser + tread).",
        "input": {
            "unit": "in",
            "riser_in": 7,
            "tread_in": 11
        },
        "issues": [],
        "limits": {
            "max_riser_in": 7.75,
            "min_tread_in": 10,
            "blondel_range": [
                24,
                25
            ]
        },
        "angle_degrees": 32.47,
        "code_compliant": true,
        "blondel_2r_plus_t": 25,
        "comfortable_blondel": true
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:15.973Z",
        "request_id": "51690354-fc84-4f6a-967a-03143bd09338"
    },
    "status": "ok",
    "message": "Code compliance check",
    "success": true
}