Catalog/ref-nutrition-rdi

Reference

Recommended daily intake by profile API

Compute a personalized recommended daily intake from age + sex (+ optional weight/height/activity): estimated calories (Mifflin-St Jeor BMR x activity), macro split, fiber, water, and vitamin/mineral targets from US DRI reference tables — the value-add being the profile-driven RDI computation. Differs from data/food which is per-food nutrient lookup. Answers 'daily calorie needs for a 30yo male', 'how much protein should I eat', 'recommended iron intake for women', 'RDA vitamins by age'.

Price$0.01per request
MethodPOST
Route/v1/ref/nutrition-rdi
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
refnutritionrdirdadricaloriesmacrosvitamins
API URLhttps://x402.hexl.dev/v1/ref/nutrition-rdi
Integration docs
Example request
{
  "age": 30,
  "sex": "male",
  "weightKg": 70,
  "heightCm": 175,
  "activity": "moderate"
}
Example response
{
  "profile": {
    "age": 30,
    "sex": "male",
    "weightKg": 70,
    "heightCm": 175,
    "activity": "moderate"
  },
  "bmr": 1649,
  "calories": 2556,
  "macros": {
    "protein": {
      "amount": 56,
      "unit": "g"
    },
    "fat": {
      "amount": 85,
      "unit": "g"
    },
    "carbohydrate": {
      "amount": 325,
      "unit": "g"
    },
    "fiber": {
      "amount": 36,
      "unit": "g"
    }
  },
  "micronutrients": {
    "iron": {
      "amount": 8,
      "unit": "mg"
    },
    "vitamin C": {
      "amount": 90,
      "unit": "mg"
    }
  },
  "waterLiters": 3.7
}
Input schema
{
  "type": "object",
  "required": [
    "age",
    "sex"
  ],
  "properties": {
    "age": {
      "type": "integer",
      "examples": [
        30
      ]
    },
    "sex": {
      "type": "string",
      "enum": [
        "male",
        "female"
      ]
    },
    "weightKg": {
      "type": "number"
    },
    "heightCm": {
      "type": "number"
    },
    "activity": {
      "type": "string",
      "enum": [
        "sedentary",
        "light",
        "moderate",
        "active",
        "very-active"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}