/v1/ideal
Ideal body weight
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/idealweight-api/v1/ideal" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/idealweight-api/v1/ideal", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/idealweight-api/v1/ideal");
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/idealweight-api/v1/ideal",
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": "Ideal body weight formulas (Devine is the clinical standard for drug dosing). Each adds a per-inch increment for every inch of height above 5 ft (60 in). Devine ♂ at 5'10\" (70 in) = 73.0 kg.",
"inputs": {
"sex": "male",
"height_cm": 178
},
"hamwi_kg": 75.213,
"devine_kg": 73.181,
"miller_kg": 70.411,
"average_kg": 72.489,
"robinson_kg": 71.15
},
"meta": {
"timestamp": "2026-06-05T19:50:25.162Z",
"request_id": "4714aed1-c333-4f55-98e0-92e64cbe5261"
},
"status": "ok",
"message": "Ideal body weight",
"success": true
}