Calculate adult body mass index (BMI) from weight and height using metric units.
/api/v1
First stable version for adult BMI calculations.
/api/v1/bmi/calculate
Auth Required
Calculates adult BMI from weight in kilograms and height in centimeters, then returns the matching CDC adult BMI category.
X-Api-Key: your_api_key
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
weight_kg |
number | required | 70 |
Body weight in kilograms. |
height_cm |
number | required | 175 |
Body height in centimeters. |
GET /api/v1/bmi/calculate?weight_kg=70&height_cm=175
{
"success": true,
"message": "BMI calculated successfully.",
"data": {
"weight_kg": 70,
"height_cm": 175,
"height_m": 1.75,
"bmi": 22.86,
"category_key": "healthy_weight",
"category": "Healthy Weight",
"classification_standard": "CDC adult BMI categories",
"note": "BMI is a screening measure for adults and is not intended to diagnose disease or replace professional medical advice."
}
}
{
"success": false,
"message": "The weight kg field is required.",
"error_code": "VALIDATION_ERROR"
}