Meal Timing API¶
Return structured nutrient timing recommendations that adapt to training windows and fasting strategy.
Endpoint¶
GET /api/v1/fitness/meal-timingPOST /api/v1/fitness/meal-timing/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
goal | string | Yes | Query/Body | fat_loss,muscle_gain,maintenance,endurance,recomposition. |
training_time | string | Yes | Query/Body | early_morning,morning,midday,afternoon,evening,night. |
fasting_style | string | Yes | Query/Body | none,12_12,14_10,16_8,18_6,omad. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Align meal timing to training performance and adherence.
- Automate protein distribution with schedule-aware meal counts.
- Personalize plans for fasting and non-fasting users.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/fitness/meal-timing?goal=recomposition&training_time=evening&fasting_style=14_10&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/meal-timing/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"goal":"fat_loss","training_time":"morning","fasting_style":"16_8"}'
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",
"training_time": "morning",
"training_time_label": "Morning",
"fasting_style": "16_8",
"fasting_style_label": "16:8",
"meal_schedule": [
{"meal": "meal_1", "time_window": "11:30-12:30", "focus": "Break fast + protein", "protein_target_g": 50},
{"meal": "meal_2", "time_window": "15:00-16:00", "focus": "Performance support", "protein_target_g": 50},
{"meal": "meal_3", "time_window": "19:00-20:00", "focus": "Recovery and satiety", "protein_target_g": 50}
],
"protein_distribution": {
"total_daily_protein_g": 150,
"meals_count": 3,
"per_meal_targets_g": [50, 50, 50],
"distribution_note": "Spread protein evenly across feeding windows."
},
"pre_post_workout_guidance": {
"pre_workout": "Use light digestible fuel when needed.",
"post_workout": "Prioritize protein intake in first recovery window.",
"intra_session": "Hydrate and use electrolytes for longer sessions."
},
"adherence_strategy": "Lock a consistent feeding window for schedule stability.",
"summary": "Timing structure supports fat-loss adherence and performance.",
"language": "en",
"_enterprise": {
"client": "Acme Health",
"plan": "pro",
"request_id": "f7ed6405ad53726c",
"quota": 120,
"usage_tracking": true
},
"_api_metadata_": {
"endpoint_name": "fitness_meal_timing",
"response_language": "en"
}
}
Product Positioning¶
A high-utility endpoint for performance nutrition apps and coaching automation workflows.
Note
goal, training_time, and fasting_style must match supported enum values.
Recommended Endpoints¶
GET /api/v1/meal-calorie-calculator- Meal Calorie Calculator APIGET /api/v1/bmi- Bmi APIGET /api/v1/tdee- Tdee APIGET /api/v1/bmr- Bmr APIGET /api/v1/protein-calculator- Protein Calculator APIGET /api/v1/fitness/heart-rate-zones- Heart Rate Zones API