Calculate the BMI.
POST/calculate/bmi
Uses the height and weight of a person to calculate their BMI as well as several other related values, including their recommended nutrients.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
weightnumberrequired
The weight in kilograms.
Example:
80
heightnumberrequired
The height in centimeters.
Example:
180
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
bminumberrequired
The calculated BMI value.
Example:
24.69
bmiClassificationstringrequired
The BMI classification
Example:
normal
dbwnumberrequired
Desirable body weight (DBW) in kilograms.
Example:
72
kcalnumberrequired
The amount of energy in kilocalories required per day.
Example:
2160
nutrients objectrequired
carbohydratesnumberrequired
The amount of carbohydrates in grams required per day.
Example:
324
proteinnumberrequired
The amount of proteins in grams required per day.
Example:
81
fatnumberrequired
The amount of fat in grams required per day.
Example:
60
{
"bmi": 24.69,
"bmiClassification": "normal",
"dbw": 72,
"kcal": 2160,
"nutrients": {
"carbohydrates": 324,
"protein": 81,
"fat": 60
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}