post https://api.logmeal.com/v2/nutrition/recipe/compute_nutrients
This endpoint receives a list of ingredients and automatically computes the overall nutritional information for the recipe based on their combined nutritional values.
Ā
Each ingredient must be specified with either:
ingredientId
: the internal ID of the ingredient within the LogMeal system, oringredientName
: a custom ingredient name (used only if the ID is not available)
And must include:
ingredientAmount
: the quantity (in grams) of the ingredient.
Ā
The system aggregates the nutritional contributions of all ingredients and returns a list of computed nutritional indicators (such as calories, proteins, sugars, etc.), including the indicator code and total quantity.