BMI API¶
Compute body mass index from metric input (height in centimeters, weight in kilograms), with optional output formatting via units.
Endpoint¶
GET /api/v1/bmiPOST /api/v1/bmi/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
height | number | Yes | Query/Body | Height in centimeters. |
weight | number | Yes | Query/Body | Weight in kilograms. |
units | string (metric,imperial) | No | Query/Body | Output formatting preference. Defaults to metric. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Add standard BMI scoring to onboarding and periodic check-ins.
- Trigger lifestyle coaching workflows by risk tier.
- Keep metric ingestion while supporting imperial-style display output.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/bmi?height=178&weight=82&units=metric&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/bmi/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"height": 178, "weight": 82, "units": "metric"}'
Response Example¶
Info
The response example below is for demonstration purposes only. Make a live request to this endpoint to receive the full, real-time, and potentially richer JSON structure.
{
"height": "1.8 m",
"weight": "82.0 kg",
"bmi": "25.9 kg/m2",
"weight_status": "Overweight",
"bmi_value": 25.88,
"weight_status_band": "overweight",
"weight_status_label": "Overweight",
"risk_signal": "Weight trend may increase long-term cardiometabolic risk.",
"action_plan": ["Tighten calorie quality", "Increase weekly activity volume"],
"monitoring_plan": "Reassess in 4-6 weeks.",
"language": "en",
"_enterprise": {
"client": "Acme Health",
"plan": "pro",
"request_id": "2d8f0fe12d5ab429",
"quota": 120,
"usage_tracking": true
},
"_api_metadata_": {
"api_name": "Health Fitness API by Dakidarts®",
"endpoint_name": "bmi",
"response_language": "en"
}
}
Product Fit¶
Great for wellness onboarding, risk dashboards, and employee health platforms that need a fast baseline anthropometric metric.
Note
Input for this endpoint is metric. For imperial input math, use bmi_imperial endpoint.
Recommended Endpoints¶
GET /api/v1/bmi_imperial- Bmi Imperial APIGET /api/v1/geriatric-bmi- Geriatric Bmi APIGET /api/v1/tdee- Tdee APIGET /api/v1/bmr- Bmr APIGET /api/v1/protein-calculator- Protein Calculator APIGET /api/v1/fitness/heart-rate-zones- Heart Rate Zones API