Skip to content

Daily Plan API

Generate a daily goal plan with calorie target, step recommendation, macro split, hydration target, and monitoring triggers.

Endpoint

  • GET /api/v1/fitness/daily-plan
  • POST /api/v1/fitness/daily-plan/post

Parameters

Name Type Required In Description
age integer (13-90) Yes Query/Body User age in years.
goal string Yes Query/Body fat_loss,muscle_gain,maintenance,endurance,recomposition.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Deliver instant personalized plan scaffolding.
  • Speed up onboarding for fitness apps.
  • Standardize daily plan generation across clients.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/fitness/daily-plan?age=30&goal=fat_loss&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/daily-plan/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"age":30,"goal":"fat_loss"}'

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.

{
  "goal": "fat_loss",
  "goal_label": "Fat Loss",
  "age": 30,
  "daily_calorie_target": 1850,
  "recommended_steps": 10000,
  "weekly_training_sessions": 5,
  "hydration_target_liters": 2.4,
  "macronutrient_targets_g": {
    "protein": 153,
    "carbs": 171,
    "fats": 62
  },
  "workout_focus": "Cardio + Full Body Strength",
  "nutrition_strategy": "High satiety and deficit adherence",
  "recovery_focus": "Sleep quality and fatigue control",
  "execution_priorities": ["Daily protein minimum", "Step consistency"],
  "nutrition_timing_suggestions": ["Place carbs around training"],
  "monitoring_checkpoints": ["Weight trend", "Waist trend"],
  "adjustment_triggers": ["No progress for 2+ weeks"],
  "plan_summary": "Sustainable deficit with high compliance focus.",
  "language": "en",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "6a2cf30766bc0450",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "fitness_daily_plan",
    "response_language": "en"
  }
}

Market Angle

Excellent for onboarding funnels, subscription coaching journeys, and goal-based recommendation products.

Note

Supported goal values are strict and normalized to underscore format internally.