Automatically computes and posts a daily intake goal given a list of nutrients and a user. There is an optional force parameter that will not take into consideration if the user had previous goals for the nutrients in the list and will recompute and update them. Otherwise the daily nutritional goals a user has will be taken into consideration and won't be updated. If force is not true only the nutrients in the nutrient list that don't have a goal defined for the user will be calculated.
Ā
If the nutrient list is empty or it isn't passed all computable nutrient goals will be recalculated if force is true. Existing goals without a supported automatic calculation are preserved even with force=true. Otherwise only the ones missing in the user's goals. If force is not passed it will be false by default.
Ā
Energy and macronutrients use the revised Harris-Benedict equation (1984) by default, or Mifflin-St Jeor (1990) when bmr_formula='mifflin_st_jeor'; estimated resting calories are multiplied by the lifestyle activity factor, then allocated as 45% carbohydrate, 20% protein, and 35% fat. Macro targets and ranges are in grams. For vitamins and minerals, fiber, folate equivalents and alpha-linolenic acid, the age/sex-based reference values follow US National Academies DRIs (RDAs/AIs), summarized in NASEM (2019) Appendix J, https://doi.org/10.17226/25353. Sodium uses the DRI Adequate Intake and age-specific Chronic Disease Risk Reduction threshold, not a tolerable upper limit. Other nutrient limits are separate heuristic rules and are not DRIs. These estimates are for the general population, not individualized athlete or clinical prescriptions. The user profile attributes used for macro calculations are sex, height, weight, birth and lifestyle; other nutrients use age/sex references or calorie-based rules as appropriate. If the user does not have enough information on its profile, global average values are used for each non-provided user profile attribute.
Ā
The available indicators with their respective units can be found by using the endpoint '/v2/info/nutrients'.
Ā
The following nutrients do not give an autocalculation. They will appear as null in the response (manual goal can still be set): F20D5, F22D6, FOLAC, FOLFD, CAFFN, ALC. GI and GL are not autocomputed either.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests⦠| |||
200Daily nutritional goals successfully calculated!
401Unauthorized, invalid token.
403Forbidden
