# BMI Calculator API

> BMI Calculator is a BMI API that computes Body Mass Index, its category and the healthy weight range for a given height, plus BMR (Basal Metabolic Rate), TDEE (Total Daily Energy Expenditure), calorie targets and macronutrient recommendations for fitness and health applications.

**Endpoint:** `GET https://api.apiverve.com/v1/bmicalculator`  
**Category:** Health/Wellness  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/bmicalculator

## Overview

A BMI API for fitness, health and nutrition apps. Send weight, height and metric or imperial units, and every plan gets the BMI, its adult category from Underweight to Obese Class III and the healthy weight range for that height (BMI 18.5 to 24.9), in the units you sent. Paid plans add BMI Prime, a risk level and summary, and how much to lose or gain to reach the healthy range. Add age and gender for BMR by the Mifflin-St Jeor equation, and activityLevel for TDEE, five daily calorie targets and protein, carb and fat grams for losing, maintaining and gaining weight.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/bmicalculator?weight=180&height=70&unit=imperial&age=30&gender=male&activityLevel=moderate" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `weight` | number | Yes | Weight in kg (metric) or lbs (imperial). range 1-inf |
| `height` | number | Yes | Height in cm (metric) or inches (imperial). Values under 3 (metric) are read as metres and under 8 (imperial) as feet. range 1-inf |
| `unit` | string | Yes | Unit system for weight and height. One of: metric, imperial |
| `age` | number | No | Age in years (required for BMR/TDEE calculations). range 1-120 |
| `gender` | string | No | Gender (required for BMR/TDEE calculations). One of: male, female |
| `activityLevel` | string | No | Activity level (required for TDEE/calorie calculations). One of: sedentary, light, moderate, active, veryactive |

## Response fields

- `height` — string · Formatted height with unit
- `weight` — string · Formatted weight with unit
- `bmi` — number · Calculated Body Mass Index
- `bmiPrime` — number · Ratio of BMI to upper normal limit (25). Values <1 are normal weight. · (premium)
- `category` — string · BMI category (Underweight, Normal, Overweight, Obese Class I/II/III). For ages 2-19 with gender, the CDC BMI-for-age category (Underweight, Healthy weight, Overweight, Obesity, Severe obesity)
- `risk` — string · Health risk level based on BMI category · (premium)
- `summary` — string · Brief interpretation of BMI results · (premium)
- `idealWeightRange` — object · Healthy weight range for this height (min, max, unit)
  - `idealWeightRange.min` — number · Lowest weight in the healthy BMI range
  - `idealWeightRange.max` — number · Highest weight in the healthy BMI range
  - `idealWeightRange.unit` — string · Unit the ideal weight range is expressed in (lbs or kg)
- `weightToChange` — object · Weight to lose or gain to reach normal BMI (direction, amount, unit) · (premium)
  - `weightToChange.direction` — string · Whether weight needs to be lost, gained, or maintained · (premium)
  - `weightToChange.amount` — number · How much weight to lose or gain to reach the healthy range · (premium)
  - `weightToChange.unit` — string · Unit the weight change is expressed in (lbs or kg) · (premium)
- `bmr` — number · Basal Metabolic Rate - calories burned at rest (requires age, gender) · (premium)
- `tdee` — number · Total Daily Energy Expenditure - calories burned per day (requires age, gender, activityLevel) · (premium)
- `calorieTargets` — object · Daily calorie targets for different goals (extremeDeficit, moderateDeficit, maintain, moderateSurplus, bulkSurplus) · (premium)
  - `calorieTargets.extremeDeficit` — number · Daily calories for aggressive weight loss, roughly 1000 below maintenance · (premium)
  - `calorieTargets.moderateDeficit` — number · Daily calories for steady weight loss, roughly 500 below maintenance · (premium)
  - `calorieTargets.maintain` — number · Daily calories to hold current weight, equal to total daily energy expenditure · (premium)
  - `calorieTargets.moderateSurplus` — number · Daily calories for lean weight gain, roughly 300 above maintenance · (premium)
  - `calorieTargets.bulkSurplus` — number · Daily calories for faster weight gain, roughly 500 above maintenance · (premium)
- `macros` — object · Macronutrient targets in grams (protein, carbs, fat) for lose/maintain/gain goals · (premium)
  - `macros.lose` — object · Daily macronutrient grams for the weight loss calorie target · (premium)
    - `macros.lose.protein` — number · Grams of protein per day while losing weight · (premium)
    - `macros.lose.carbs` — number · Grams of carbohydrate per day while losing weight · (premium)
    - `macros.lose.fat` — number · Grams of fat per day while losing weight · (premium)
  - `macros.maintain` — object · Daily macronutrient grams for the maintenance calorie target · (premium)
    - `macros.maintain.protein` — number · Grams of protein per day at maintenance · (premium)
    - `macros.maintain.carbs` — number · Grams of carbohydrate per day at maintenance · (premium)
    - `macros.maintain.fat` — number · Grams of fat per day at maintenance · (premium)
  - `macros.gain` — object · Daily macronutrient grams for the weight gain calorie target · (premium)
    - `macros.gain.protein` — number · Grams of protein per day while gaining weight · (premium)
    - `macros.gain.carbs` — number · Grams of carbohydrate per day while gaining weight · (premium)
    - `macros.gain.fat` — number · Grams of fat per day while gaining weight · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "height": "70 inches",
    "weight": "180 lbs",
    "bmi": 25.83,
    "bmiPrime": 1.033,
    "category": "Overweight",
    "risk": "Increased risk",
    "summary": "BMI is above the healthy range. Lifestyle changes may be beneficial.",
    "idealWeightRange": {
      "min": 129,
      "max": 173.5,
      "unit": "lbs"
    },
    "weightToChange": {
      "direction": "lose",
      "amount": 6.5,
      "unit": "lbs"
    },
    "bmr": 1783,
    "tdee": 2763,
    "calorieTargets": {
      "extremeDeficit": 1763,
      "moderateDeficit": 2263,
      "maintain": 2763,
      "moderateSurplus": 3063,
      "bulkSurplus": 3263
    },
    "macros": {
      "lose": {
        "protein": 198,
        "carbs": 198,
        "fat": 75
      },
      "maintain": {
        "protein": 207,
        "carbs": 276,
        "fat": 92
      },
      "gain": {
        "protein": 230,
        "carbs": 345,
        "fat": 85
      }
    }
  }
}
```

## Use cases

- **Fitness Apps** — Calculate BMI, BMR, TDEE and macro targets for users tracking their fitness journey.
- **Health Tracking** — Provide users with their ideal weight range and how much to gain or lose to reach a healthy BMI.
- **Nutrition Planning** — Generate personalized calorie and macronutrient targets for meal planning applications.
- **Weight Loss Programs** — Calculate calorie deficits and protein targets for weight loss applications.

## SDKs

- **npm** — `npm install @apiverve/bmicalculator` (https://www.npmjs.com/package/@apiverve/bmicalculator)
- **PyPI** — `pip install apiverve-bmicalculator` (https://pypi.org/project/apiverve-bmicalculator/)
- **NuGet** — `dotnet add package APIVerve.API.BMICalculator` (https://www.nuget.org/packages/APIVerve.API.BMICalculator)
- **Source** — https://github.com/apiverve/bmicalculator-api

## More

- Full reference: https://docs.apiverve.com/ref/bmicalculator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
