Skip to content

Meal Calorie Calculator API

Return recommended calorie ranges for each meal window based on profile, activity, and meal frequency.

Endpoint

  • GET /api/v1/meal-calorie-calculator
  • POST /api/v1/meal-calorie-calculator/post

Parameters

Name Type Required In Description
sex string Yes Query/Body male or female.
age number (>0) Yes Query/Body Age in years.
height number (>0) Yes Query/Body Height in cm (metric) or inches (imperial).
weight number (>0) Yes Query/Body Weight in kg (metric) or lb (imperial).
activity_level string Yes Query/Body Supported activity enum set from endpoint.
meals_per_day integer No Query/Body 3, 4, or 5 (default 3).
unit string No Query/Body metric (default) or imperial.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Convert daily calorie targets into practical meal distribution.
  • Build meal planners that adapt by activity profile.
  • Provide strategy fields for adherence-focused UX.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/meal-calorie-calculator?sex=female&age=31&height=167&weight=68&unit=metric&activity_level=3-4%20times/week&meals_per_day=4&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/meal-calorie-calculator/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"sex":"male","age":36,"height":71,"weight":186,"unit":"imperial","activity_level":"2-3 times/week","meals_per_day":5}'

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.

{
  "sex": "female",
  "age": 31.0,
  "height_cm": 167.0,
  "weight_kg": 68.0,
  "unit": "metric",
  "activity_level": "3-4 times/week",
  "activity_factor": 1.625,
  "meals_per_day": 4,
  "maintenance_calories_per_day": 2304,
  "intake_band": "moderate",
  "intake_band_label": "Moderate",
  "meal_calories": {
    "breakfast": {"min": 576, "max": 691, "recommended": 634},
    "morning_snack": {"min": 115, "max": 230, "recommended": 173},
    "lunch": {"min": 806, "max": 922, "recommended": 864},
    "dinner": {"min": 576, "max": 691, "recommended": 634}
  },
  "distribution_strategy": ["Anchor lunch as highest-calorie meal"],
  "timing_guidance": ["Place carbs near training windows"],
  "quality_guardrails": ["Prioritize whole-food meal construction"],
  "adjustment_rules": ["Adjust meal split if satiety drops"],
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "47db8fcb13cc92d5",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "meal_calorie_calculator",
    "response_language": "en"
  }
}

Product Positioning

Best for meal-planning SaaS, nutrition-tracking apps, and digital coaching products.

Note

meals_per_day supports only 3, 4, or 5.