コンテンツにスキップ

脂肪摂取量計算 API

BMR/TDEEに基づいたエネルギーモデリングを使用して、グラム/kcalあたりの脂肪摂取量と飽和脂肪の推奨量を推定します。

エンドポイント

  • GET /api/v1/fat-intake-calculator
  • POST /api/v1/fat-intake-calculator/post

パラメータ

名前 タイプ 必須 説明
sex 文字列 (male,female) はい クエリ/本文 生物の性別。
age 整数 はい クエリ/本文 年齢(年単位)。
height 数値 はい クエリ/本文 身長(cmメートル、inインチ)。
weight 数値 はい クエリ/本文 体重(kgメートル、lbインチ)。
unit 文字列 (metric,imperial) いいえ クエリ/本文 入力モード。 デフォルトは metric
activity_level 文字列 はい クエリ/本文 little/no exercise,1-2 times/week,2-3 times/week,3-5 times/week,6-7 times/week,pro athlete
lang 文字列 いいえ クエリ レスポンス言語 (en,es,de,fr,pt,ja,hi,ar)。

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

  • 栄養プログラムのための実用的な脂肪配分目標を提供します。
  • カロリーの文脈と一致した飽和脂肪のガイダンスを提供します。
  • 1つのAPIレスポンスで食事計画のヒントを生成します。

開始する

リクエストの例

curl -X GET "https://api.hefitapi.com/api/v1/fat-intake-calculator?sex=female&age=30&height=165&weight=66&unit=metric&activity_level=3-5%20times/week&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fat-intake-calculator/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"sex":"female","age":30,"height":165,"weight":66,"unit":"metric","activity_level":"3-5 times/week"}'

レスポンスの例

Info

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

{
  "sex": "female",
  "age": 30,
  "height_cm": 165.0,
  "weight_kg": 66.0,
  "activity_level": "3-5 times/week",
  "daily_calories_kcal": 2338.39,
  "fat_intake_grams": "52 - 91 g",
  "fat_intake_kcal": "468 - 818 kcal",
  "saturated_fat_max_grams": 26,
  "saturated_fat_max_kcal": 234,
  "fat_distribution_strategy": ["Anchor fats around whole-food sources"],
  "meal_planning_suggestions": ["Distribute fats across main meals"],
  "adjustment_rules": ["Lower fat if calories exceed target"],
  "quality_guardrails": ["Prefer unsaturated fats"],
  "note": "Contextual guidance based on profile and activity.",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "90677af1982374f8",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "fat_intake_calculator",
    "response_language": "en"
  }
}

製品の価値

栄養コーチングアプリやパーソナライズされた食事計画エンジンに最適です。

注意

アクティビティレベルの値は、エンドポイントのenumと完全に一致する必要があります(スペースとダッシュを含む)。

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