マクロサイクル API¶
目標とアクティビティプロファイルに合わせた、分割された1日のカロリーとマクロ栄養素の推奨事項を生成します。
エンドポイント¶
GET /api/v1/fitness/macro-cyclingPOST /api/v1/fitness/macro-cycling/post
パラメータ¶
| 名前 | 型 | 必須 | クエリ/ボディ | 説明 |
|---|---|---|---|---|
goal | 文字列 | はい | クエリ/ボディ | fat_loss, muscle_gain, maintenance, endurance, recomposition。 |
weight | 数値 (35-300) | はい | クエリ/ボディ | 体重 (kg)。 |
activity_level | 文字列 | はい | クエリ/ボディ | sedentary, light, moderate, active, athlete。 |
lang | 文字列 | いいえ | クエリ | レスポンス言語 (en, es, de, fr, pt, ja, hi, ar)。 |
このエンドポイントを使用する理由¶
- 消費者向けおよびプロのコーチングツールで、カロリーの分割期間化をサポートします。
- トレーニング日と休息日の栄養目標を分離します。
- 実装とリスク管理のためのエンタープライズロジックブロックを追加します。
リクエストの例¶
curl -X GET "https://api.hefitapi.com/api/v1/fitness/macro-cycling?goal=fat_loss&weight=82&activity_level=moderate&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/macro-cycling/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"goal":"muscle_gain","weight":78,"activity_level":"active"}'
レスポンスの例¶
Info
以下は、デモンストレーションのみを目的としたレスポンスの例です。 このエンドポイントに実際のリクエストを送信して、完全でリアルタイム、および潜在的に豊富なJSON構造を取得してください。
{
"goal": "fat_loss",
"goal_label": "Fat Loss",
"weight_kg": 82.0,
"activity_level": "moderate",
"activity_label": "Moderate",
"target_daily_calories": 2544,
"macro_cycling": {
"training_day": {
"calories": 2694,
"protein_g": 229,
"carbs_g": 242,
"fats_g": 90
},
"rest_day": {
"calories": 2394,
"protein_g": 203,
"carbs_g": 168,
"fats_g": 101
}
},
"adjustment_logic": "Lower calories on rest days while preserving protein adequacy.",
"implementation_suggestions": ["Keep weekly average aligned with goal"],
"risk_controls": ["Avoid aggressive day-to-day swings"],
"weekly_checkin_rules": ["Recalibrate if scale trend stalls for 2 weeks"],
"summary": "Macro cycling profile supports steady fat-loss progression.",
"language": "en",
"_enterprise": {
"client": "Acme Health",
"plan": "pro",
"request_id": "e4517ab38f59ed67",
"quota": 120,
"usage_tracking": true
},
"_api_metadata_": {
"endpoint_name": "fitness_macro_cycling",
"response_language": "en"
}
}
製品のポジショニング¶
高度な栄養計画、高レベルのコーチングスタック、およびパフォーマンスアプリに最適です。
注意
goal と activity_level は、サポートされているエヌムまたはAPIから取得する必要があります。そうしないとHTTP 400エラーが発生します。
推奨されるエンドポイント¶
GET /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- 心拍数ゾーン APIGET /api/v1/bodyfat- 体脂肪 API