BMI, calories, and protein with error bounds (Body Metrics)
body_metricsCompute BMI, energy expenditure, and protein targets from height and weight. Height and weight MUST carry units — a bare number is REFUSED rather than guessed, because a unit mix-up produces a plausible-looking answer that is badly wrong. Returns every standard BMR formula plus the spread between them, because the spread IS the precision of the estimate. Do not relay a single calorie figure as though it were exact. Not medical advice, and the response says so in its payload.
WHY DELEGATE THIS: Two failure modes at once. A bare number is ambiguous — "170" is a height in centimetres or a weight in pounds — and a wrong unit yields a plausible BMI that is off by a factor of two. And the standard energy formulas disagree by hundreds of calories, so any single figure is false precision.
Owned by Body Metrics at https://body-metrics-tau.vercel.app, which is also callable directly if you would rather not go through the aggregator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Years, 15-100. | |
| sex | Yes | The BMR equations are fitted separately. | |
| height | Yes | WITH a unit: 178cm, 1.78m, 5'10", 70in. Bare numbers refused. | |
| weight | Yes | WITH a unit: 75kg, 165lb, 11st 8lb. Bare numbers refused. | |
| activity | No | The largest source of error. Most people overestimate; take the lower band. | |
| targetBmi | No | ||
| bodyFatPercent | No | Adds the Katch-McArdle estimate. |