Overview
- Category
- Health
- API mode
not_available- 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/tdee-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/tdee-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-
Enter the sex used by formula used by this tool. Accepted values:
male, female. age· number · required- Enter the age used by this tool.
weight_kg· number · required- Enter the weight used by this tool.
height_cm· number · required- Enter the height used by this tool.
activity_level· string · required-
Enter the activity level used by this tool. Accepted values:
sedentary, light, moderate, very_active, extra_active.
{
"type": "object",
"properties": {
"sex": {
"type": "string",
"description": "Enter the sex used by formula used by this tool.",
"enum": [
"male",
"female"
]
},
"age": {
"type": "number",
"description": "Enter the age used by this tool.",
"minimum": 18,
"maximum": 100
},
"weight_kg": {
"type": "number",
"description": "Enter the weight used by this tool.",
"minimum": 20,
"maximum": 350
},
"height_cm": {
"type": "number",
"description": "Enter the height used by this tool.",
"minimum": 100,
"maximum": 250
},
"activity_level": {
"type": "string",
"description": "Enter the activity level used by this tool.",
"enum": [
"sedentary",
"light",
"moderate",
"very_active",
"extra_active"
]
}
},
"required": [
"sex",
"age",
"weight_kg",
"height_cm",
"activity_level"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
bmr· number- Basal metabolic rate produced by the tool.
tdee· number- Estimated daily energy expenditure produced by the tool.
weekly_energy· number- Estimated weekly energy expenditure produced by the tool.
activity_factor· number- Activity factor produced by the tool.
{
"type": "object",
"properties": {
"bmr": {
"type": "number",
"description": "Basal metabolic rate produced by the tool."
},
"tdee": {
"type": "number",
"description": "Estimated daily energy expenditure produced by the tool."
},
"weekly_energy": {
"type": "number",
"description": "Estimated weekly energy expenditure produced by the tool."
},
"activity_factor": {
"type": "number",
"description": "Activity factor produced by the tool."
}
},
"additionalProperties": false
}
TDEE Calculator example
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/tdee-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sex": "male",
"age": 35,
"weight_kg": 82,
"height_cm": 178,
"activity_level": "moderate"
}'
{
"ok": true,
"data": {
"slug": "tdee-calculator",
"result": {
"values": {
"bmr": 1762.5,
"tdee": 2731.8800000000001091393642127513885498046875,
"weekly_energy": 19123.13000000000101863406598567962646484375,
"activity_factor": 1.5500000000000000444089209850062616169452667236328125
},
"display": {
"display": "1762.5"
},
"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.