Evaluations
Evaluations cover various analyses of a food selection. All evaluations are based on the nutrient data and classifications of the generic single foods. This is possible because both generic composite foods and branded foods in our database ultimately resolve to recipes composed of generic single foods.
Each evaluation requires a list of foods with consumption amounts (e.g., a day log or a meal) in the request to the respective endpoint. For foods with a processing state, we take into account whether the consumption amount refers to the original form or the processed state. If the food was weighed before preparation, weight changes and nutrient losses are applied.
Nutrition Summary
Section titled “Nutrition Summary”
POST /evaluate/nutrition-summary
The nutrition summary returns the sum of all nutrients consumed across the selected foods. This corresponds to a complete nutrient calculation of the diet. In addition to calories and macronutrients, you can also analyze vitamins, minerals, and other constituents.
Macronutrient Distribution
Section titled “Macronutrient Distribution”
POST /evaluate/macro-distribution
Macronutrient distribution refers to how total energy is split across macronutrients. Specifically, it calculates what share of calories comes from carbohydrates, fats, proteins, and alcohol. The result is reported as a percentage of total energy and gives a quick overview of the diet’s macronutrient balance.
Healthy Eating Index
Section titled “Healthy Eating Index”
POST /evaluate/healthy-eating-index
The metric Healthy Eating Index (mHEI) is a published variant of the U.S. Healthy Eating Index (HEI). It assesses diet quality based on the Dietary Guidelines for Americans 2015. The HEI originated in the U.S. and uses U.S. units and reference portions. The mHEI adopts the 13 scoring components of HEI-2015 unchanged but converts all quantities to the metric system. The core HEI framework has not changed since 2015 and remains current.
Instead of focusing on individual nutrient amounts, the index emphasizes food groups and dietary patterns relative to energy intake. This highlights the importance of a varied selection of primarily nutrient-dense, low-energy foods. Absolute energy is not decisive for the calculation; rather, it’s the quality of the selection relative to its energy content. The mHEI is therefore applicable at different scales, from day- or week-level logs to entire recipe databases. The mHEI is not suitable for individual meals, as they generally contribute to only a few selected components.
For food diaries, we recommend calculating the mHEI on a daily basis and also displaying a moving average over several days. This keeps short-term changes visible without giving too much weight to individual days. At the same time, it makes it easier to see which days or recurring patterns improve or worsen the score. For larger time frames, such as a 30-day meal plan, the mHEI can also be aggregated over the entire period. A recent publication recommends reporting both variants together. The conventional period-averaged mHEI is well-suited to evaluate cumulative dietary exposure and chronic disease risk, whereas the daily mHEI accounts for physiological systems that respond to short-term dietary inputs.
Higher mHEI scores reflect healthier dietary patterns with measurable health relevance. A recent dose-response meta-analysis found that each additional HEI-2015 point was associated with approximately 0.42% lower cancer mortality and 0.51% lower cardiovascular-disease mortality. Another study suggests that HEI may be the best summary measure for capturing gut microbiota variation attributable to habitual diet in comparable populations. However, no publication was identified in which HEI scores were directly reported to participants as feedback to support improved dietary choices.
Energy Density
Section titled “Energy Density”
POST /evaluate/energy-density
Energy density (ED) describes how much energy a food selection provides per unit mass (kcal/g). Beverages are excluded because they often have very low ED and are less satiating than solid foods. Even highly sugary drinks like sodas would typically lower the ED of an entire diet. Their calories are therefore considered separately (“beverage calories”).
The split between “counts as food” and “counts as beverage” is not trivial in practice. Liquids or semi-liquids such as smoothies, soups, or milkshakes can be considered food or beverage depending on context. We therefore classify generic single foods and generic composite foods in the database as is_solid = True/False. For branded foods, we derive the is_solid flag from the included ingredients. If more than 25% of the ingredients (by weight) are solids, the entire item is classified as is_solid = True. Hydration factors are taken into account.
A lower dietary energy density is associated with lower daily energy intake. In a meta-analysis of randomized controlled trials, lowering the energy density of at least one main dish reduced daily energy intake in adults by about 374 kcal without reducing the amount of food consumed in grams. A second meta-analysis estimated that each 100 kcal reduction through lower food energy density translated into about 77 kcal lower daily intake.