Overview
- Category
- Health
- API mode
execute- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/body-fat-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/body-fat-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
sex· string · required-
Choose the sex category required by the selected estimation formula. Accepted values:
male, female. height_cm· number · required- Enter height in centimeters for the formula.
neck_cm· number · required- Measure neck circumference in centimeters at the narrowest practical point.
waist_cm· number · required- Measure waist circumference in centimeters at the site required by the selected Navy method.
hip_cm· number · optional- Enter hip circumference in centimeters when using the female U.S. Navy method.
{
"type": "object",
"properties": {
"sex": {
"type": "string",
"enum": [
"male",
"female"
],
"description": "Choose the sex category required by the selected estimation formula."
},
"height_cm": {
"type": "number",
"description": "Enter height in centimeters for the formula."
},
"neck_cm": {
"type": "number",
"description": "Measure neck circumference in centimeters at the narrowest practical point."
},
"waist_cm": {
"type": "number",
"description": "Measure waist circumference in centimeters at the site required by the selected Navy method."
},
"hip_cm": {
"type": "number",
"description": "Enter hip circumference in centimeters when using the female U.S. Navy method."
}
},
"required": [
"sex",
"height_cm",
"neck_cm",
"waist_cm"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
body_fat_percent· number- Estimated body fat percentage.
method· string- Formula identifier.
circumference_value_cm· number- The combined circumference value used by the selected equation, in centimeters.
{
"type": "object",
"properties": {
"body_fat_percent": {
"type": "number",
"description": "Estimated body fat percentage."
},
"method": {
"type": "string",
"description": "Formula identifier."
},
"circumference_value_cm": {
"type": "number",
"description": "The combined circumference value used by the selected equation, in centimeters."
}
},
"additionalProperties": false
}
Body Fat Calculator: Navy method male
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/body-fat-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sex": "male",
"height_cm": 175,
"neck_cm": 38,
"waist_cm": 84
}'
{
"ok": true,
"data": {
"slug": "body-fat-calculator",
"result": {
"values": {
"body_fat_percent": 16.199999999999999289457264239899814128875732421875,
"method": "us_navy",
"circumference_value_cm": 46
},
"display": {
"display": "16.2"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.