Workout Calorie Estimate API¶
Return estimated calorie burn range and confidence diagnostics for training sessions.
Endpoint¶
GET /api/v1/fitness/workout-calorie-estimatePOST /api/v1/fitness/workout-calorie-estimate/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
activity_type | string | Yes | Query/Body | walking,jogging,running,cycling,swimming,strength_training,hiit,yoga,rowing,elliptical. |
duration_min | integer (1-360) | Yes | Query/Body | Session duration in minutes. |
weight | number (35-300) | Yes | Query/Body | Body weight in kg. |
intensity | string | Yes | Query/Body | low,moderate,high,very_high. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Produce realistic burn range instead of single-point estimate.
- Explain confidence and uncertainty to improve user trust.
- Add calibration rules for better long-term estimation quality.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/fitness/workout-calorie-estimate?activity_type=cycling&duration_min=55&weight=78&intensity=moderate&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/workout-calorie-estimate/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"activity_type":"hiit","duration_min":35,"weight":82,"intensity":"high"}'
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.
{
"activity_type": "cycling",
"activity_label": "Cycling",
"duration_min": 55,
"weight_kg": 78.0,
"intensity": "moderate",
"intensity_label": "Moderate",
"estimated_calorie_burn": {"central_kcal": 562, "lower_kcal": 471, "upper_kcal": 653},
"confidence": {
"score": 84,
"level": "medium",
"level_label": "Medium",
"notes": ["Moderate confidence for this activity profile"]
},
"fueling_guidance": ["Use balanced pre/post fueling around session length"],
"calibration_protocol": ["Calibrate estimate with wearable and trend data"],
"range_application_rules": ["Use lower bound for conservative planning"],
"quality_checks": [],
"summary": "Useful directional burn estimate with medium confidence.",
"language": "en",
"_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "4b16430a6aa5df6a", "quota": 120, "usage_tracking": true},
"_api_metadata_": {"endpoint_name": "fitness_workout_calorie_estimate", "response_language": "en"}
}
Product Positioning¶
Ideal for fitness tracking apps, coaching tools, and wearable-linked analytics products.
Note
duration_min must be between 1 and 360.
Recommended Endpoints¶
GET /api/v1/maintenance-calorie- Maintenance Calorie APIGET /api/v1/meal-calorie-calculator- Meal Calorie Calculator APIGET /api/v1/fitness/neat-estimate- Neat Estimate APIGET /api/v1/fitness/vo2max-estimate- Vo2Max Estimate APIGET /api/v1/bmi- Bmi APIGET /api/v1/tdee- Tdee API