BMI Calculator API
Adult body mass index with the WHO category and the healthy weight range for the height, in metric or imperial units.
POST /api/v1/tools/bmi-calculatorMCP bmi_calculatorCalculatorsCalculate adult body mass index from height and weight in metric or imperial units, with the WHO category and the weight range for a normal BMI.
Input
Send these as a JSON object. Unknown fields are rejected.
- units
- metric: weight in kg, height in cm. imperial: weight in lb, height in feet plus inches. (string, one of metric, imperial, default "metric")
- weight
- Body weight: kilograms (metric, 10 to 650) or pounds (imperial). (number, 0 to …, required)
- height
- Metric only: height in centimetres (50 to 280). (number, 0 to …)
- feet
- Imperial only: whole feet of height. (number, 0 to 9)
- inches
- Imperial only: inches on top of the feet (or total height in inches if feet is omitted). (number, 0 to …)
curl https://pithlab.com/api/v1/tools/bmi-calculator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"units":"metric","weight":70,"height":175}'Example response
{
"ok": true,
"result": {
"bmi": 22.9,
"category": "Normal weight",
"categoryRange": "18.5 – 24.9",
"healthyWeightMin": 56.7,
"healthyWeightMax": 76.3,
"weightUnit": "kg",
"text": "BMI 22.9: Normal weight (WHO adult range 18.5 – 24.9)"
}
}