コンテンツにスキップ

週間計画 API

トレーニング/休息の配分とコーチングのガイドラインを含む、構造化された7日間の計画を生成します。

エンドポイント

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

パラメータ

名前 タイプ 必須 クエリ/ボディ 説明
age 整数 (13-90) はい クエリ/ボディ 年齢。
goal 文字列 はい クエリ/ボディ fat_loss,muscle_gain,maintenance,endurance,recomposition
training_days 整数 (1-7) はい クエリ/ボディ 1週間のトレーニング頻度。
lang 文字列 いいえ クエリ レスポンス言語 (en,es,de,fr,pt,ja,hi,ar)。

このエンドポイントを使用する理由

  • すぐに1週間分のトレーニング計画を生成できます。
  • 目標の種類をワークロードと回復パターンにマッピングできます。
  • 標準化された計画ブロックを使用することで、コーチングの自動化を可能にします。

開始する

リクエストの例

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

レスポンスの例

Info

以下のレスポンス例は、デモンストレーションのみを目的としています。 このエンドポイントに対してライブリクエストを実行して、完全な、リアルタイム、および潜在的により詳細なJSON構造を受け取ってください。

{
  "goal": "recomposition",
  "goal_label": "Recomposition",
  "age": 31,
  "training_days": 5,
  "rest_days": 2,
  "weekly_summary": "Balanced split for composition and performance retention.",
  "load_distribution": {"high_days": 2, "moderate_days": 3, "low_or_recovery_days": 2},
  "weekly_schedule": [
    {"day_index": 1, "day_label": "Day 1", "is_training_day": true, "session_focus": "Upper Strength", "intensity": "High", "recovery_block": "Mobility + sleep target"},
    {"day_index": 2, "day_label": "Day 2", "is_training_day": true, "session_focus": "Lower Strength", "intensity": "Moderate", "recovery_block": "Soft tissue + walk"}
  ],
  "execution_guardrails": ["Respect recovery days and trend adherence weekly"],
  "adjustment_signals": ["Reduce intensity if recovery trend declines"],
  "coach_notes": ["Prioritize consistency over maximal daily effort"],
  "language": "en",
  "_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "f4d2bd22d394cc74", "quota": 120, "usage_tracking": true},
  "_api_metadata_": {"endpoint_name": "fitness_weekly_plan", "response_language": "en"}
}

製品ポジショニング

サブスクリプションコーチング製品と適応型トレーニングプラットフォームの主要なエンドポイント。

注意

training_days17 の間である必要があります。

推奨されるエンドポイント