Aller au contenu
GET /v1/bmi

Body mass index

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/bmi-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/bmi-api/v1/bmi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bmi-api/v1/bmi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bmi-api/v1/bmi");
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/bmi-api/v1/bmi",
    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": {
        "bmi": 24.69,
        "note": "BMI = kg/m². WHO bands: <18.5 underweight, 18.5–24.9 normal, 25–29.9 overweight, ≥30 obese.",
        "inputs": {
            "height": 180,
            "weight": 80
        },
        "category": "normal",
        "healthy_weight_max_kg": 80.68,
        "healthy_weight_min_kg": 59.94
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:21.571Z",
        "request_id": "ba38788d-8863-4ff9-93ec-675b7b45dfa8"
    },
    "status": "ok",
    "message": "Body mass index",
    "success": true
}