▫️BMI Calculator

/calculate-bmi

This endpoint calculates the Body Mass Index (BMI) of an individual based on the provided weight, height, age, and unit system. It returns the calculated BMI along with the BMI category, which is determined based on age. If any of the parameters are missing or invalid, it returns a 400 error with a corresponding message.

Query Parameters

ParameterTypeDescription

weight

number

Weight of the individual in kilograms or pounds (based on unit).

height

number

Height of the individual in centimeters or inches (based on unit).

age

number

Age of the individual in years.

unit

string

The unit system used for weight and height. Options: "metric" (default), "us".

Response

{
    "age": "number",
    "bmi": "string",
    "bmiCategory": "string"
}

Last updated