Nutrition API Reference

Technical specifications for the HealthIQ RapidAPI Nutrition operations.

Basic Tier

Basic Profile

Generates basal metabolic and total daily energy requirements.

POST /v1/nutrition/profile
Request Parameters
ParameterTypeRange / OptionsDescription
AgeNumber1-120Age in years.
WeightNumber> 0 (kg)Body mass in kilograms.
HeightNumber> 0 (cm)Height in centimeters.
GenderStringmale, femaleBiological sex for calculating base equations.
GoalStringlose, gain, maintainThe weight management goal. Deficits or surpluses are applied automatically.
ActivityLevelStringsedentary, light, moderate, activeMetabolic multiplier for total expenditure.
Example JSON Request (Click to expand)
{
  "age": 30,
  "weight": 75.0,
  "height": 175.0,
  "gender": "male",
  "goal": "lose",
  "activityLevel": "light"
}
Response Parameters
ParameterTypeRange / OptionsDescription
bmrNumberkcalBasal Metabolic Rate. Base required human energy.
tdeeNumberkcalTotal Daily Energy Expenditure multiplied by factor.
recommendedCaloriesNumberkcalCalories recommended according to Goal deficit/surplus.
macrosObject[proteinGrams, fatGrams, carbsGrams]Macro boundaries needed.
flagsArray[String]Warning linesAlgorithmic suggestions passed along with the profile limit.
summaryStringtextConclusion response mapping status.
Example JSON Response (Click to expand)
{
  "bmr": 1850.5,
  "tdee": 2400.0,
  "recommendedCalories": 1900,
  "macros": {
    "proteinGrams": 142.5,
    "carbsGrams": 190.0,
    "fatGrams": 63.3
  },
  "flags": ["Slight caloric deficit recommended"],
  "summary": "Basic profile generated"
}
Pro Tier

Macros Builder

Extrapolates distinct macronutrient splits partitioned by specific dietary frameworks.

POST /v1/nutrition/macros
Request Parameters
ParameterTypeRange / OptionsDescription
DietTypeStringketo, paleo, vegan, balanced, low-carb, high-proteinThe nutritional paradigm dividing the caloric ceiling.
AgeNumber1-120Age in years.
WeightNumber> 0 (kg)Body mass in kilograms.
HeightNumber> 0 (cm)Height in centimeters.
GenderStringmale, femaleBiological sex for calculating base equations.
GoalStringlose, gain, maintainThe weight management goal. Deficits or surpluses are applied automatically.
ActivityLevelStringsedentary, light, moderate, activeMetabolic multiplier for total expenditure.
Example JSON Request (Click to expand)
{
  "age": 30,
  "weight": 75.0,
  "height": 175.0,
  "gender": "male",
  "goal": "lose",
  "activityLevel": "light",
  "dietType": "keto"
}
Response Parameters
ParameterTypeRange / OptionsDescription
recommendedCaloriesNumberkcalCalories mapped to the profile limits.
macrosObjectGrams output mapReconfigured boundaries according to Diet ratios.
dietTypeStringechoParsed diet type targeted.
summaryStringtextReporting parameter completion.
Example JSON Response (Click to expand)
{
  "recommendedCalories": 1900,
  "macros": {
    "proteinGrams": 142.5,
    "carbsGrams": 95.0,
    "fatGrams": 105.5
  },
  "dietType": "keto",
  "summary": "Keto structured macro partitioning."
}
Ultra Tier

Daily Meal Plan

Allocates daily macronutrients systematically across individualized meal frequencies.

POST /v1/nutrition/daily-meal-plan
Request Parameters
ParameterTypeRange / OptionsDescription
MealsPerDayNumber1-6Total count of feeding windows desired throughout the day.
DietTypeStringketo, paleo, vegan, plant-based, balanced, low-carb, high-proteinPartition ratio logic for the macros base constraint.
AgeNumber1-120Age in years.
WeightNumber> 0 (kg)Body mass in kilograms.
HeightNumber> 0 (cm)Height in centimeters.
GenderStringmale, femaleBiological sex for calculating base equations.
GoalStringlose, gain, maintainThe weight management goal. Deficits or surpluses are applied automatically.
ActivityLevelStringsedentary, light, moderate, activeMetabolic multiplier for total expenditure.
Example JSON Request (Click to expand)
{
  "age": 30,
  "weight": 75.0,
  "height": 175.0,
  "gender": "male",
  "activityLevel": "moderate",
  "goal": "maintain",
  "dietType": "balanced",
  "mealsPerDay": 3
}
Response Parameters
ParameterTypeRange / OptionsDescription
totalCaloriesNumberkcalRoot caloric output allocated.
mealCountNumberecho itemsTotal requested partitions.
dailyMacrosObjectGram mappingMacro boundaries aggregated across the entire day.
mealsArray[Object][calories, proteinGrams, carbsGrams, fatGrams]List of the separated meal macro components mapped directly over the time.
summaryStringtextConclusion response.
Example JSON Response (Click to expand)
{
  "totalCalories": 2400,
  "mealCount": 3,
  "dailyMacros": {
    "proteinGrams": 180.0,
    "carbsGrams": 240.0,
    "fatGrams": 80.0
  },
  "meals": [
    {
      "mealNumber": 1,
      "calories": 800.0,
      "proteinGrams": 60.0,
      "carbsGrams": 80.0,
      "fatGrams": 26.6
    },
    ...
  ],
  "summary": "Divided evenly across 3 meals."
}
Mega Tier

Bulk Grocery Rotation

Derives massive volumetric raw food requirements for bulk nutritional meal prepping over a custom duration.

POST /v1/nutrition/bulk-grocery-list
Request Parameters
ParameterTypeRange / OptionsDescription
PrepDaysNumber1-365The exact number of days this grocery list should cover (multiplier).
MealsPerDayNumber1-6Determines how many containers to meal-prep per day (splits the daily required macros into distinct meals to accompany the bulk list).
DietTypeStringketo, paleo, vegan, plant-based, balanced, low-carb, high-proteinPulls distinct categorical source ingredients based on allowance paradigms.
AgeNumber1-120Age in years.
WeightNumber> 0 (kg)Body mass in kilograms.
HeightNumber> 0 (cm)Height in centimeters.
GenderStringmale, femaleBiological sex for calculating base equations.
GoalStringlose, gain, maintainThe weight management goal. Deficits or surpluses are applied automatically.
ActivityLevelStringsedentary, light, moderate, activeMetabolic multiplier for total expenditure.
Example JSON Request (Click to expand)
{
  "age": 30,
  "weight": 75.0,
  "height": 175.0,
  "gender": "male",
  "activityLevel": "moderate",
  "goal": "gain",
  "prepDays": 14,
  "mealsPerDay": 4,
  "dietType": "keto"
}
Response Parameters
ParameterTypeRange / OptionsDescription
totalBulkCaloriesNumberkcalSum aggregate calorie need corresponding horizontally across the specified PrepDays.
groceryListArray[Object][fdcId, description, totalGrams]Detailed USDA ingredients linked to their FDC source ID necessitated for shopping.
dietTypeStringechoFiltered type of allowed foods generating the list.
prepScheduleArray[Object][day, meals]A multi-day chronological timeline spanning PrepDays mapping unique randomized ingredients scaled into isolated daily meal plans.
summaryStringtextConclusion response.
Example JSON Response (Click to expand)
{
  "totalBulkCalories": 33600.0,
  "groceryList": [
    {
      "fdcId": 175167,
      "description": "Salmon, raw",
      "totalGrams": 1250.0
    },
    {
      "fdcId": 170209,
      "description": "Beef, grass-fed ribeye",
      "totalGrams": 1250.0
    },
    {
      "fdcId": 168462,
      "description": "Spinach, raw",
      "totalGrams": 236.0
    }
  ],
  "dietType": "keto",
  "prepSchedule": [
    {
      "day": 1,
      "meals": [
        {
          "mealNumber": 1,
          "calories": 600.0,
          "proteinGrams": 45.0,
          "carbsGrams": 15.0,
          "fatGrams": 40.0,
          "suggestedIngredientsGrams": {
            "Salmon, raw": 180.0,
            "Spinach, raw": 45.0,
            "Avocado, raw": 80.0
          }
        }
      ]
    }
  ],
  "summary": "To hit your 33600 kcal bulk target on a keto diet for 14 days, follow your dynamic PrepSchedule to divide these ingredients into 4 containers per day. Daily macro targets: 180g Protein, 60g Carbs, and 160g Fats."
}