changedInput schema / properties / fields / items / enum
Previous value: -[
- "product_name",
- "brands",
- "quantity",
- "ingredients_text",
- "ingredients",
- "allergens_tags",
- "additives_tags",
- "nutriscore_grade",
- "nova_group",
- "ecoscore_grade",
- "nutriments",
- "categories_tags",
- "labels_tags",
- "packaging_tags",
- "origins_tags",
- "image_url",
- "completeness",
- "data_quality_tags"
-]New value: +[
+ "product_name",
+ "brands",
+ "quantity",
+ "ingredients_text",
+ "ingredients",
+ "allergens_tags",
+ "additives_tags",
+ "nutriscore_grade",
+ "nova_group",
+ "ecoscore_grade",
+ "nutriments",
+ "serving_size",
+ "serving_quantity",
+ "serving_quantity_unit",
+ "categories_tags",
+ "labels_tags",
+ "packaging_tags",
+ "origins_tags",
+ "image_url",
+ "completeness",
+ "data_quality_tags"
+]
removedOutput schema / properties / found
Removed value: -{
- "description": "False when the barcode exists in no contributor record (status:0). A false result means no contributor has entered this product yet — not that the product does not exist.",
- "type": "boolean"
-}
changedOutput schema / properties / product / description
Previous value: -"Product data. Absent when found is false."New value: +"Product data. Always present on a successful call — a barcode with no contributor record raises the not_found error instead of returning an empty result."
addedOutput schema / properties / product / properties / nutriments / properties / additional_100g
Added value: +{
+ "additionalProperties": {
+ "additionalProperties": false,
+ "description": "One nutrient figure with the unit it is expressed in.",
+ "properties": {
+ "unit": {
+ "description": "Unit the figure is expressed in (\"g\", \"kcal\", \"kJ\"). Absent when Open Food Facts records no unit for this nutrient.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The figure Open Food Facts reported per 100g.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ },
+ "description": "Every other per-100g nutrient Open Food Facts holds, keyed by normalized name (calcium, iron, vitamin_c, trans_fat, added_sugars, cholesterol, energy in kJ, …). Excludes the named fields above, so a nutrient appears in exactly one place. Micronutrients are usually reported in grams, so calcium 0.071 g is 71 mg — read the unit rather than assuming.",
+ "propertyNames": {
+ "description": "Nutrient name, hyphens normalized to underscores.",
+ "type": "string"
+ },
+ "type": "object"
+}
addedOutput schema / properties / product / properties / nutriments / properties / additional_serving
Added value: +{
+ "additionalProperties": {
+ "additionalProperties": false,
+ "description": "One nutrient figure with the unit it is expressed in.",
+ "properties": {
+ "unit": {
+ "description": "Unit the figure is expressed in (\"g\", \"kcal\", \"kJ\"). Absent when Open Food Facts records no unit for this nutrient.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The figure Open Food Facts reported per serving.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ },
+ "description": "The same nutrients per serving. Also carries the per-serving figures for macros that have a named per-100g field but no named per-serving one (saturated_fat, carbohydrates, fiber, proteins, salt, sodium). Check serving_size for the denominator these figures are measured against.",
+ "propertyNames": {
+ "description": "Nutrient name, hyphens normalized to underscores.",
+ "type": "string"
+ },
+ "type": "object"
+}
addedOutput schema / properties / product / properties / serving_quantity
Added value: +{
+ "description": "Serving size parsed to a number, in serving_quantity_unit. Absent when Open Food Facts could not parse the printed serving size.",
+ "type": "number"
+}
addedOutput schema / properties / product / properties / serving_quantity_unit
Added value: +{
+ "description": "Unit of serving_quantity — usually \"g\" but \"ml\" for liquids, so it is not safe to assume grams. Absent when serving_quantity is absent or Open Food Facts records no unit.",
+ "type": "string"
+}
addedOutput schema / properties / product / properties / serving_size
Added value: +{
+ "description": "Serving size as printed on the label (e.g. \"28 g\", \"1 can (12 fl oz)\"). The denominator for every per-serving figure. Absent when contributors have not entered one, in which case per-serving values cannot be converted to or from the per-100g values.",
+ "type": "string"
+}
changedOutput schema / required
Previous value: -[
- "barcode",
- "found"
-]New value: +[
+ "barcode",
+ "product"
+]