Waist To Height API¶
Return WHtR and health-risk classification from waist and height measurements.
Endpoint¶
GET /api/v1/health/waist-to-heightPOST /api/v1/health/waist-to-height/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
waist | number | Yes | Query/Body | Waist circumference. |
height | number | Yes | Query/Body | Height. |
units | string | No | Query/Body | metric or imperial; defaults to metric. |
lang | string | No | Query | Response language (en,fr,es,de,pt,ja,hi,ar,bn,gu,id,it,ko,mr,nl,pa,pl,ro,ru,ta,te,th,tr,ur,vi,zh). |
Request Example¶
curl -X POST "https://api.hefitapi.com/api/v1/health/waist-to-height/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"waist":88,"height":176,"units":"metric"}'
Response Example¶
{
"waist": 88.0,
"height": 176.0,
"units": "metric",
"waist_to_height_ratio": 0.5,
"risk_category": "increased",
"risk_category_label": "Increased cardiometabolic risk",
"summary": "Waist-to-height ratio indicates increased cardiometabolic risk.",
"recommendations": [],
"language": "en",
"_api_metadata_": {"endpoint_name": "waist_to_height", "response_language": "en"}
}
Localization¶
This endpoint reads health_fitness_waist_to_height.json from the supported language catalogs.
Recommended Endpoints¶
GET /api/v1/bmi- BMI APIGET /api/v1/fitness/longevity-score- Longevity Score APIGET /api/v1/bodyfat- Bodyfat API