Jump to content

Nutrients handling in Open Food Facts: Difference between revisions

Line 56: Line 56:
* indicate if the nutrition facts are per 100g or per serving.
* indicate if the nutrition facts are per 100g or per serving.
* convert the value in g or in kJ to the desired unit.
* convert the value in g or in kJ to the desired unit.
Notes:
* Don't use the nutrient-id_value and nutrient-id_unit fields
** The nutrient-id may be empty as some apps don't pass a unit, and we use a default unit for the field
** The value may be per 100g or per serving


=== Data edit ===
=== Data edit ===