Nutritional Information
See also: Ingredients Information and Recommended Daily Intake.
Plan & Token Requirements
Feature available in the following LogMeal Plans:
Accessible by the following User Types:
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.


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 includeenergy_kcal,energy_factor_kcal_per_gandenergy_contribution_percentage. For individual intakes,%ECis calculated against the total calories of that intake. For aggregated daily/weeklynutrient_reportsummaries,%ECuses 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.
| Code | Nutrient | Unit | Interpretation |
|---|---|---|---|
ENERC_KCAL | Energy | kcal | Metabolizable energy |
CHOCDF | Carbohydrates | g | Carbohydrate definition depends on source; US total carbs can include fiber, OFF available carbs exclude it |
SUGAR | Sugars | g | Total naturally occurring and added sugars |
SUGAR.added | Added sugars | g | Subset of sugars introduced during processing or preparation |
PROCNT | Protein | g | Protein content |
FAT | Total fat | g | Total lipids |
FIBTG | Dietary fiber | g | Indigestible dietary fiber |
FASAT | Saturated fat | g | Saturated fatty acids; a subset of total fat |
FAMS | Monounsaturated fat | g | Mono-unsaturated fatty acids; subset of fat |
FAPU | Polyunsaturated fat | g | Poly-unsaturated fatty acids; subset of fat |
FATRN | Trans fat | g | Trans fatty acids; subset of fat |
CHOLE | Cholesterol | mg | Dietary cholesterol |
F18D3CN3 | Omega-3 ALA | g | Essential alpha-linolenic acid |
F20D5 | Omega-3 EPA | g | Long-chain omega-3 eicosapentaenoic acid |
F22D6 | Omega-3 DHA | g | Long-chain omega-3 docosahexaenoic acid |
CA | Calcium | mg | Mineral for bones, muscles and signaling |
NA | Sodium | mg | Electrolyte; not the same as salt (salt ā sodium Ć 2.5) |
K | Potassium | mg | Electrolyte supporting nerve and muscle function |
MG | Magnesium | mg | Essential enzyme cofactor |
P | Phosphorus | mg | Skeletal and cellular metabolism |
FE | Iron | mg | Oxygen transport and metabolism |
ZN | Zinc | mg | Immunity and enzyme function |
VITA_RAE | Vitamin A (RAE) | µg | Retinol activity equivalents; generic vitamin A measurements are not automatically equivalent |
VITC | Vitamin C | mg | Ascorbic acid; connective tissue and iron absorption |
VITD | Vitamin D | µg | Calcium metabolism and bone health |
TOCPHA | Vitamin E | mg | Alpha-tocopherol antioxidant activity |
VITK1 | Vitamin K1 | µg | Phylloquinone, primarily associated with blood clotting |
THIA | Thiamin (B1) | mg | Energy and nervous-system metabolism |
RIBF | Riboflavin (B2) | mg | Flavin coenzyme metabolism |
NIA | Niacin (B3) | mg | NAD/NADP coenzyme metabolism |
VITB6A | Vitamin B6 | mg | Amino acid and neurotransmitter metabolism |
VITB12 | Vitamin B12 | µg | Red blood cell and neurological function |
FOLAC | Folic acid | µg | Added/synthetic folic acid, including fortification |
FOLFD | Folate, food | µg | Naturally occurring food folates |
FOLDFE | Folate, DFE | µg DFE | Dietary folate equivalents, adjusted for synthetic folic-acid bioavailability |
ALC | Alcohol | g | Ethanol mass; OFF's %vol cannot be treated as grams without further data |
CAFFN | Caffeine | mg | Stimulant content |
GI | Glycemic Index | dimensionless | Reference/estimated glycemic response of a food; not summed as a nutrient |
GL | Glycemic Load | dimensionless | GI 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
- POST /nutrition/recipe/nutritionalInfo ā š“ Returns nutrient breakdown for a recognized dish (energy, macro/micro values).
- GET /info/nutrients ā ā« š“ šµ Retrieve the catalog of nutrients available.
- POST /nutrition/confirm/quantity ā š“ šµ Confirm serving size (by imageId); normalizes nutrition to the userās portion.
- POST /nutrition/confirm/ingredients ā š“ šµ Confirm or edit ingredients (and amounts) for the dish before computing nutrition.
- POST /nutrition/recipe/compute_nutrients ā š“ šµ Compute nutrition from a list of ingredients (no image required).
Remember to check applicable request limitations inside each of the endpoints.
Related Use Cases
Capture a meal photo, get top dish predictions, and let the user confirm/refine results before saving. Confirmations feed the food recognition personalization capabilities.
Retrieve standardized recipe ingredients and quantities for confirmed dishes from a food intake.
Extract per-dish macro & micro nutrients from a confirmed intake using standardized ingredients.
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.
Updated 10 days ago
