/v1/check
Code compliance of a riser/tread
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}