hesaplayıcı
Menu

BMI Calculator: API and MCP

BMI Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/health.bmi/mcp/health

Id
health.bmi
Version
1.0.0
Access
Free
Tool page
BMI Calculator
Schema
GET /api/v1/tools/health.bmi

Input

FieldTypeConstraintsDefaultDescription
unitsstringmetric | pounds | stonesmetricUnits
weightnumber≥ 20, ≤ 350Weight (kg)
heightnumber≥ 100, ≤ 250Height (cm)
weightStinteger≥ 1, ≤ 55Weight, stones (st)
weightLbnumber≥ 0, ≤ 800Weight, pounds (lb) · With stones: the pounds over the stones.
heightFtinteger≥ 3, ≤ 8Height, feet (ft)
heightInnumber≥ 0, ≤ 11.990Height, inches (in)

Output

FieldTypeDescription
bminumberBody mass index (kg/m²)
underweightbooleanUnderweight: BMI below 18.5.
normalbooleanNormal weight: BMI 18.5–24.9.
overweightbooleanOverweight: BMI 25.0–29.9.
obesebooleanObesity: BMI 30.0 or more.
healthyMinnumberHealthy weight range: from (kg)
healthyMaxnumberHealthy weight range: to (kg)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/health.bmi/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"units":"metric","weight":68,"height":170,"heightIn":0},"locale":"en"}'
Example answer
{
  "output": {
    "bmi": 23.5,
    "underweight": false,
    "normal": true,
    "overweight": false,
    "obese": false,
    "healthyMin": 53.5,
    "healthyMax": 72
  },
  "steps": [
    {
      "id": "bmi",
      "formula": "BMI = weight / height²",
      "substitution": "BMI = 68 / 1.7²",
      "value": 23.5,
      "unit": "kg/m²"
    },
    {
      "id": "healthyMin",
      "formula": "healthy weight from = 18.5 × height²",
      "substitution": "healthy weight from = 18.5 × 1.7²",
      "value": 53.5,
      "unit": "kg"
    },
    {
      "id": "healthyMax",
      "formula": "healthy weight to = 24.9 × height²",
      "substitution": "healthy weight to = 24.9 × 1.7²",
      "value": 72,
      "unit": "kg"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/health/bmi-calculator",
    "title": "BMI Calculator"
  }
}