/v1/bmi
Body Mass Index + category
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/healthcalc-api/v1/bmi" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/healthcalc-api/v1/bmi", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/healthcalc-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/healthcalc-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.7,
"category": "Normal",
"height_cm": 180,
"weight_kg": 80,
"healthy_weight_range_kg": {
"max": 80.7,
"min": 59.9
}
},
"meta": {
"timestamp": "2026-05-30T14:35:19.394Z",
"request_id": "b3e5bb26-a20d-47b6-971f-d10c2eb0d1ef"
},
"status": "ok",
"message": "OK",
"success": true
}