Skip to content

Micronutrient Risk API

Return nutrient-specific risk scoring, top food-first interventions, and supplement-priority signals.

Endpoint

  • GET /api/v1/fitness/micronutrient-risk
  • POST /api/v1/fitness/micronutrient-risk/post

Parameters

Name Type Required In Description
diet_type string Yes Query/Body omnivore,vegetarian,vegan,pescatarian,keto,low_carb.
calorie_intake number (800-6000) Yes Query/Body Daily calories.
vegetable_servings integer (0-20) Yes Query/Body Daily vegetable servings.
sunlight_exposure_minutes integer (0-240) Yes Query/Body Daily sunlight minutes.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Surface likely micronutrient gaps before symptoms appear.
  • Prioritize food-first recommendations automatically.
  • Add supplement necessity scoring to risk workflows.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/fitness/micronutrient-risk?diet_type=vegan&calorie_intake=1650&vegetable_servings=3&sunlight_exposure_minutes=8&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/micronutrient-risk/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"diet_type":"omnivore","calorie_intake":2200,"vegetable_servings":5,"sunlight_exposure_minutes":22}'

Response Example

Info

The response example below is for demonstration purposes only. Make a live request to this endpoint to receive the full, real-time, and potentially richer JSON structure.

{
  "diet_type": "vegan",
  "diet_type_label": "Vegan",
  "calorie_intake": 1650,
  "vegetable_servings": 3,
  "sunlight_exposure_minutes": 8,
  "risk_flags": {
    "vitamin_d": {"score": 80, "level": "high", "level_label": "High", "note": "Sunlight and intake pattern may be insufficient."},
    "iron": {"score": 54, "level": "moderate", "level_label": "Moderate", "note": "Monitor iron-rich food quality and pairing."},
    "magnesium": {"score": 50, "level": "moderate", "level_label": "Moderate", "note": "Increase mineral-dense whole foods."},
    "b12": {"score": 64, "level": "moderate", "level_label": "Moderate", "note": "B12 support strategy is recommended."},
    "omega3": {"score": 58, "level": "moderate", "level_label": "Moderate", "note": "Consider ALA/EPA/DHA strategy."}
  },
  "high_risk_nutrients": ["vitamin_d"],
  "suggested_food_fixes": ["Increase fortified sources", "Add legumes and leafy greens"],
  "supplement_necessity_score": {
    "score": 63,
    "level": "consider",
    "level_label": "Consider",
    "note": "Targeted supplementation may be useful."
  },
  "strategy_adjustment_advice": ["Reassess intake pattern after 3-4 weeks"],
  "next_reassessment_window_days": 30,
  "summary": "Moderate overall micronutrient risk with targeted interventions advised.",
  "language": "en",
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "f3d799345fd7f315",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "fitness_micronutrient_risk",
    "response_language": "en"
  }
}

Product Positioning

Designed for high-value nutrition SaaS, wellness coaching, and preventive care engagement products.

Note

diet_type must match the supported list or API returns HTTP 400.