栄養摂取タイミング API¶
トレーニング期間と断食戦略に適応した、構造化された栄養摂取タイミングの推奨事項を返します。
エンドポイント¶
GET /api/v1/fitness/meal-timingPOST /api/v1/fitness/meal-timing/post
パラメータ¶
| 名前 | 型 | 必須 | 形式 | 説明 |
|---|---|---|---|---|
goal | string | はい | Query/Body | fat_loss,muscle_gain,maintenance,endurance,recomposition. |
training_time | string | はい | Query/Body | early_morning,morning,midday,afternoon,evening,night. |
fasting_style | string | はい | Query/Body | none,12_12,14_10,16_8,18_6,omad. |
lang | string | いいえ | Query | レスポンス言語 (en,es,de,fr,pt,ja,hi,ar). |
このエンドポイントを使用する理由¶
- 栄養摂取タイミングをトレーニングのパフォーマンスと遵守に合わせる。
- スケジュールに基づいた食事回数で、タンパク質の分布を自動化する。
- 断食と非断食ユーザーの両方にとって、パーソナライズされた計画を作成する。
リクエストの例¶
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"}'
レスポンスの例¶
Info
以下のレスポンスの例は、デモンストレーションのみを目的としています。 このエンドポイントに対してリクエストを作成することで、完全で、リアルタイム、そして可能性のあるより詳細なJSON構造を受け取ることができます。
{
"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"
}
}
製品のポジショニング¶
パフォーマンス栄養アプリやコーチングの自動化ワークフロー向けの、高機能なエンドポイント。
注意
goal, training_time, および fasting_style は、サポートされているenumの値と一致する必要があります。
推奨されるエンドポイント¶
GET /api/v1/meal-calorie-calculator- 栄養摂取量とカロリー計算 APIGET /api/v1/bmi- BMI APIGET /api/v1/tdee- TDEE APIGET /api/v1/bmr- BMR APIGET /api/v1/protein-calculator- タンパク質計算 APIGET /api/v1/fitness/heart-rate-zones- 心拍数ゾーン API