1日計画API¶
カロリー目標、ステップ推奨、マクロ分割、水分摂取目標、およびモニタリングトリガーを含む、1日の目標計画を生成します。
エンドポイント¶
GET /api/v1/fitness/daily-planPOST /api/v1/fitness/daily-plan/post
パラメータ¶
| 名前 | 型 | 必須 | クエリ/ボディ | 説明 |
|---|---|---|---|---|
age | 整数 (13-90) | はい | クエリ/ボディ | ユーザーの年齢(年)。 |
goal | 文字列 | はい | クエリ/ボディ | fat_loss, muscle_gain, maintenance, endurance, recomposition。 |
lang | 文字列 | いいえ | クエリ | レスポンス言語 (en, es, de, fr, pt, ja, hi, ar)。 |
このエンドポイントを使用する理由¶
- 迅速なパーソナライズされた計画の骨格を提供します。
- フィットネスアプリのオンボーディングを高速化します。
- 顧客全体での1日の計画生成の標準化。
リクエストの例¶
```bash
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"}'
## レスポンスの例
!!! info
以下のレスポンス例は、デモンストレーションのみを目的としています。
このエンドポイントにライブリクエストを送信して、完全で、リアルタイム、および潜在的に豊富なJSON構造を受信します。
{
"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"
}
}
マーケットの機会¶
オンボーディングファネル、サブスクリプションコーチング、および目標ベースの推奨製品に最適です。
注意
サポートされているgoalの値は厳密であり、内部的にアンダースコア形式に正規化されます。
推奨されるエンドポイント¶
GET /api/v1/daily-vitamin- 1日のビタミンAPIGET /api/v1/fitness/deload-plan- デロードプランAPIGET /api/v1/fitness/glycogen-replenishment-plan- グリコーゲン補充プランAPIGET /api/v1/fitness/hydration-plan- 水分補給プランAPIGET /api/v1/fitness/reverse-diet-plan- 反対食プランAPIGET /api/v1/fitness/weekly-plan- 1週間のプランAPI