/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/stair-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stair-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stair-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Internally inches (accepts in/cm/mm/m). Limits are typical US IRC values — confirm your local code.",
"limits": {
"max_riser_in": 7.75,
"min_tread_in": 10,
"blondel_range": [
24,
25
]
},
"service": "stair",
"endpoints": {
"/v1/calc": "Number of steps, riser, tread, total run, stringer length, angle and code check from a total rise.",
"/v1/check": "Validate a riser/tread against IRC limits and the Blondel comfort rule.",
"/v1/stringer": "Stringer (hypotenuse) length and angle from total rise and total run."
},
"description": "Staircase maths: steps/riser/tread from a total rise, code compliance check, and stringer length."
},
"meta": {
"timestamp": "2026-06-04T01:59:16.154Z",
"request_id": "eae2985d-a27f-401c-a8ea-c5b7322c207c"
},
"status": "ok",
"message": "Meta",
"success": true
}