Aller au contenu
GET /v1/fit

Does it fit the run?

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/adaramp-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/adaramp-api/v1/fit" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/adaramp-api/v1/fit", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/adaramp-api/v1/fit");
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/adaramp-api/v1/fit",
    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": "The available run is long enough for an ADA 1:12 ramp (8.33 %). Using more of it makes a gentler, easier ramp.",
        "inputs": {
            "rise": 10,
            "unit": "in",
            "available_run": 120
        },
        "fits_ada": true,
        "slope_percent": 8.33,
        "slope_in_available_run": "1:12",
        "available_run_compliant": true,
        "required_run_ft_at_1_12": 10
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:50.451Z",
        "request_id": "acd39317-fdf5-4659-8d75-6b58ddf74cfa"
    },
    "status": "ok",
    "message": "Ramp fit",
    "success": true
}