Nutritional Information

Get a complete nutrient breakdown (energy, macros and micros) for a recognized dish or a list of ingredients. Ideal for calorie tracking, diet planning and clinical follow-up.

See also: Ingredients Information and Recommended Daily Intake.


Plan & Token Requirements

Feature available in the following LogMeal Plans:

Analyse
Monitor
Recommend
Custom

Accessible by the following User Types:

⚫ APICompany | šŸ”“ APIUser | šŸ”µ APIUserManager

What It Does

The Nutritional Information feature returns a nutrient profile for a food item or a recognized dish. Typical outputs include energy (kcal), macronutrients and a selection of micronutrients.
It sits downstream of recognition: you usually call it after detecting dishes and (optionally) confirming quantity and ingredients to make the results user‑specific.
This feature also works for any manually submitted food intake.

nutritional information api food tracking nutritional facts cholesterol calories
nutritional information api food diary recommended daily intake fats carbs

When to Use It / Outcomes

  • You need calories, macros and micros for a recognized dish or an ingredient list (diet logging, coaching apps, dashboards).
  • You want to compare intake vs. goals (pair with Recommended Daily Intake and Daily Goals).
  • You build image‑based or manually reported food diaries and need per‑meal nutrition attached to the user’s history.

Output: JSON with nutrient fields (energy, macro/micro amounts) optionally normalized by portion after quantity confirmation.


Feature-Specific Details

  • Portion‑aware results — quantities are adjusted once you confirm serving size via the quantity confirmation endpoint.
  • Ingredient‑aware results — users can review/modify the detected ingredients to better match their recipe before computing nutrition.
  • Computation from ingredient lists — use the recipe nutrients endpoint to preview nutrition directly from ingredients without an image. The ingredient list can then be used in a reusable Custom Recipe or, when ingredient-only manual intakes are enabled, persisted as a one-off intake by following Create a Custom Dish from Scratch with a Manual Intake.
    Energy contribution (%EC) — nutrients that directly contribute energy may include energy_kcal, energy_factor_kcal_per_g and energy_contribution_percentage. For individual intakes, %EC is calculated against the total calories of that intake. For aggregated daily/weekly nutrient_report summaries, %EC uses a normalized complementary energy denominator: protein + fat + carbohydrates + alcohol. This makes those complementary top-level components sum to 100%. Sub-components such as sugars, saturated fat, mono/polyunsaturated fat or trans fat may also display %EC, but they should be interpreted as sub-components and are not expected to sum to 100% together with their parent nutrient.

Notes & Tips

  • For best accuracy, confirm quantity and ingredients before requesting nutrition.
  • Use user profile preferences (e.g., added sugar/oil/salt) to personalize computed nutrition.
  • Pair with Recommended Daily Intake to provide contextual targets for users.

Glycemic Index and Glycemic Load

Glycemic Index (GI) describes the relative blood-glucose response to a food's
available carbohydrate compared with a reference food. A GI is obtained from an
external reference measurement/estimate (the current ingredient ingestion route
uses Spoonacular); it cannot reliably be derived from sugar content alone.
GI is a property of the food, not a gram-based nutrient amount, and is not added
across ingredients. The public nutrient list intentionally excludes GI.

Glycemic Load (GL) incorporates both GI and the amount of digestible,
available carbohydrate consumed:

GL = GI Ɨ available carbohydrate (g) / 100.

For ingredient-composed dishes, each ingredient's contribution is calculated
using its actual recipe weight; the contributions are summed. For the existing
Nutritionix/USDA ingredient path, CHOCDF denotes total carbohydrate including
fiber, so available carbohydrate is max(CHOCDF - FIBTG, 0).
For Open Food Facts products, carbohydrates already excludes fiber and must
not have fiber subtracted a second time.

A GL value is reported only when the needed composition and valid GI data exist
for all contributing ingredients. Otherwise it is not available, not zero.
A food with zero available carbohydrate has GL zero. These estimates are
nutrition-planning aids, not individual predictions of blood glucose after a meal:
food preparation, combinations and individual physiology affect responses.

Ingredient GI estimates may exceed 100. Invalid, missing or negative GI
sentinels are not used in GL calculations. A product without ingredient-based GI
coverage is not assigned an invented GL.

Reference: Glycemic Index and Glycemic Load, Linus Pauling Institute.

Nutritional Indicator Glossary

LogMeal nutrient codes and units follow the standardized internal nutrient
catalog. Source completeness varies: an absent micronutrient is unknown, not
proof that the food contains none. Sub-components (e.g., saturated fats and
sugars) must not be added to their parent totals.

CodeNutrientUnitInterpretation
ENERC_KCALEnergykcalMetabolizable energy
CHOCDFCarbohydratesgCarbohydrate definition depends on source; US total carbs can include fiber, OFF available carbs exclude it
SUGARSugarsgTotal naturally occurring and added sugars
SUGAR.addedAdded sugarsgSubset of sugars introduced during processing or preparation
PROCNTProteingProtein content
FATTotal fatgTotal lipids
FIBTGDietary fibergIndigestible dietary fiber
FASATSaturated fatgSaturated fatty acids; a subset of total fat
FAMSMonounsaturated fatgMono-unsaturated fatty acids; subset of fat
FAPUPolyunsaturated fatgPoly-unsaturated fatty acids; subset of fat
FATRNTrans fatgTrans fatty acids; subset of fat
CHOLECholesterolmgDietary cholesterol
F18D3CN3Omega-3 ALAgEssential alpha-linolenic acid
F20D5Omega-3 EPAgLong-chain omega-3 eicosapentaenoic acid
F22D6Omega-3 DHAgLong-chain omega-3 docosahexaenoic acid
CACalciummgMineral for bones, muscles and signaling
NASodiummgElectrolyte; not the same as salt (salt ā‰ˆ sodium Ɨ 2.5)
KPotassiummgElectrolyte supporting nerve and muscle function
MGMagnesiummgEssential enzyme cofactor
PPhosphorusmgSkeletal and cellular metabolism
FEIronmgOxygen transport and metabolism
ZNZincmgImmunity and enzyme function
VITA_RAEVitamin A (RAE)µgRetinol activity equivalents; generic vitamin A measurements are not automatically equivalent
VITCVitamin CmgAscorbic acid; connective tissue and iron absorption
VITDVitamin DµgCalcium metabolism and bone health
TOCPHAVitamin EmgAlpha-tocopherol antioxidant activity
VITK1Vitamin K1µgPhylloquinone, primarily associated with blood clotting
THIAThiamin (B1)mgEnergy and nervous-system metabolism
RIBFRiboflavin (B2)mgFlavin coenzyme metabolism
NIANiacin (B3)mgNAD/NADP coenzyme metabolism
VITB6AVitamin B6mgAmino acid and neurotransmitter metabolism
VITB12Vitamin B12µgRed blood cell and neurological function
FOLACFolic acidµgAdded/synthetic folic acid, including fortification
FOLFDFolate, foodµgNaturally occurring food folates
FOLDFEFolate, DFEµg DFEDietary folate equivalents, adjusted for synthetic folic-acid bioavailability
ALCAlcoholgEthanol mass; OFF's %vol cannot be treated as grams without further data
CAFFNCaffeinemgStimulant content
GIGlycemic IndexdimensionlessReference/estimated glycemic response of a food; not summed as a nutrient
GLGlycemic LoaddimensionlessGI weighted by available carbohydrate in the serving

The three B9 indicators are related but not interchangeable. For fortified
food consumed with a meal, a common formulation is
FOLDFE (µg DFE) = FOLFD (µg) + 1.7 Ɨ FOLAC (µg).
For example, 100 µg food folate + 50 µg added folic acid = 185 µg DFE.
Do not sum these three LogMeal indicators: DFE already represents their
combined dietary contribution. The ratio differs for folic-acid supplements
consumed without food.

Nutritionix has exposed the standardized USDA nutrient keys
FOLAC, FOLFD and FOLDFE; their definitions are not proprietary.
Refer to the NIH Office of Dietary Supplements folate fact sheet
for interpretation and dietary reference intake guidance.

Source caveat: generic Open Food Facts values named vitamin-b9, folates,
vitamin-a, and vitamin-k do not by themselves establish synthetic folic acid,
DFE, vitamin-A RAE, or specifically K1. The OFF importer avoids asserting these
unsupported equivalences. Missing values are not estimated from similar products.

Companies may also define custom nutrient indicators via the Custom Nutritional
Indicators feature; these need their own documented units and methodology.


Related Endpoints

Remember to check applicable request limitations inside each of the endpoints.


Related Use Cases


Implementation Examples (Recipes)

Follow these recipes to implement the previously mentioned flow:

Set profile data once to improve label language and regional dishes:

Send the image for segmentation to obtain regions and top dish candidates per region. Display the top 5 candidate dishes per region.

Retrieve the nutritional information (macro & micro nutrients) for the confirmed dishes:

Downloadable Code Examples

These recipes show the core steps in a few languages. For more language options (and complete runnable projects), see Ready-to-Use Code.


Did this page help you?