Skip to content

Fat Intake Calculator API

Estimate fat intake in grams/kcal and saturated-fat caps using BMR/TDEE-based energy modeling.

Endpoint

  • GET /api/v1/fat-intake-calculator
  • POST /api/v1/fat-intake-calculator/post

Parameters

Name Type Required In Description
sex string (male,female) Yes Query/Body Biological sex.
age integer Yes Query/Body Age in years.
height number Yes Query/Body Height (cm metric, in imperial).
weight number Yes Query/Body Weight (kg metric, lb imperial).
unit string (metric,imperial) No Query/Body Input mode. Default metric.
activity_level string Yes Query/Body little/no exercise,1-2 times/week,2-3 times/week,3-5 times/week,6-7 times/week,pro athlete.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Provide practical fat-distribution targets for diet programs.
  • Keep saturated-fat guidance aligned with calorie context.
  • Generate meal-planning cues in one API response.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/fat-intake-calculator?sex=female&age=30&height=165&weight=66&unit=metric&activity_level=3-5%20times/week&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fat-intake-calculator/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"sex":"female","age":30,"height":165,"weight":66,"unit":"metric","activity_level":"3-5 times/week"}'

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": 30,
  "height_cm": 165.0,
  "weight_kg": 66.0,
  "activity_level": "3-5 times/week",
  "daily_calories_kcal": 2338.39,
  "fat_intake_grams": "52 - 91 g",
  "fat_intake_kcal": "468 - 818 kcal",
  "saturated_fat_max_grams": 26,
  "saturated_fat_max_kcal": 234,
  "fat_distribution_strategy": ["Anchor fats around whole-food sources"],
  "meal_planning_suggestions": ["Distribute fats across main meals"],
  "adjustment_rules": ["Lower fat if calories exceed target"],
  "quality_guardrails": ["Prefer unsaturated fats"],
  "note": "Contextual guidance based on profile and activity.",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "90677af1982374f8",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "fat_intake_calculator",
    "response_language": "en"
  }
}

Product Value

Great for nutrition coaching apps and personalized meal-planning engines.

Note

Activity level values must match the endpoint enum exactly (including spaces and dashes).