Product-Nutrition-v3.5 Schema
Schema definition for the Product-Nutrition-v3.5 object in product data
Product-Nutrition-v3.5 Schema
This is a data schema, not an API endpoint. The Product-Nutrition-v3.5 object describes the shape of
data returned inside product records by the Product Opener API.
{
"type": "object",
"title": "Product Nutrition Data",
"properties": {
"nutrition": {
"type": "object",
"description": "Fields related to the nutrition facts of a product\n\nInput nutrient sets can be updated directly with API v3.\n\nAPI v2 can still be used to update input sets for the default source (*packaging* on the public platform and *manufacturer* on the pro platform).\n",
"properties": {
"aggregated_set": {
"type": "object",
"description": "A set that combines nutrient data from preferred sources, with normalized units, \nand for a normalized 100g or 100ml quantity.\n\nIt takes values from multiple sources (by priority: manufacturer, packaging, usda, estimate)\nand normalizes all values to the same unit: g for weights, kJ for energy and energy-kj, kcal for energy-kcal.\n\nThe aggregated_set is read-only, and cannot be modified directly. It is computed from the other nutrient sets available for the product.\n",
"allOf": [
{
"type": "object",
"properties": {
"preparation": {
"type": "string",
"enum": [
"as_sold",
"prepared"
],
"description": "Indicates whether the nutrition values refer to the product *as_sold* or *prepared*.\n\nThe preparation state affects nutrient values.\n"
},
"per": {
"type": "string",
"enum": [
"100g",
"100ml",
"serving"
],
"description": "The nutrition data on the package can be per serving, per 100g or per 100ml.\n\nThis is essential to understand if values in the `nutrients` object apply for a serving, for 100g or for 100ml.\n"
}
}
},
{
"type": "object",
"properties": {
"nutrients": {
"type": "object",
"description": "All known nutrients for the product.\n\nYou can get all possible nutrients from the\n[nutrients taxonomy](https://static.openfoodfacts.org/data/taxonomies/nutrients.json).\n\nNew nutrients are regularly added.\n\nClients should not break if they encounter an unexpected nutrient to preserve compatibility.\n",
"properties": {
"energy": {
"description": "It is the same as `energy-kj` if we have it, or computed from `energy-kcal` otherwise\n\n(per 100g or per serving) in kj\n",
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"energy-kcal": {
"description": "energy in kcal, if it is specified\n\n(per 100g or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"energy-kj": {
"description": "energy in kj, if it is specified\n\n(per 100g or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"fat": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"saturated-fat": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"trans-fat": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"cholesterol": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"salt": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"sodium": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"carbohydrates": {
"description": "This is the available carbohydrates (excluding fiber), also known as net carbohydrates\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"carbohydrates-total": {
"description": "This follows the US / Canada definition of carbohydrates which includes fiber, also known as gross carbohydrates\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"fiber": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"sugars": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"added-sugars": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"proteins": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"vitamin-d": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"calcium": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"iron": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
},
"potassium": {
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n",
"example": "packaging"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n",
"enum": [
"100g",
"100ml",
"serving"
]
},
"source_index": {
"type": "integer",
"description": "Index of the source nutrient set in the input_sets array of the nutrition field\n",
"minimum": 0
}
}
}
]
}
},
"additionalProperties": {
"description": "Quantity of other nutrients from the nutrients taxonomy.\n\nSee [nutrients taxonomy file](https://static.openfoodfacts.org/data/taxonomies/nutrients.json) for all nutrients in Open Food Facts.\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
},
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Indicates the original source like “packaging”, “manufacturer”, “estimate”, “usda”\n"
},
"source_per": {
"type": "string",
"description": "Indicates if the original source is per serving or per 100g, 100ml\n"
}
}
}
]
}
}
}
}
]
},
"input_sets": {
"type": "array",
"description": "An array of nutrient sets of the product.\n\nEach nutrient set represents a version of the nutrition facts, defined by a combination of:\n- the source of the data (e.g. *packaging*, *manufacturer*, *estimate*).\n- the preparation state (e.g. *as_sold* or *prepared*),\n- the reference quantity (*per 100g*, *per 100ml* or *per serving*), and \n\nThis structure allows capturing multiple nutritional profiles for a single product.\n",
"items": {
"type": "object",
"allOf": [
{
"type": "object",
"properties": {
"nutrients": {
"type": "object",
"description": "All known nutrients for the product.\n\nYou can get all possible nutrients from the\n[nutrients taxonomy](https://static.openfoodfacts.org/data/taxonomies/nutrients.json).\n\nNew nutrients are regularly added.\n\nClients should not break if they encounter an unexpected nutrient to preserve compatibility.\n",
"properties": {
"energy": {
"description": "It is the same as `energy-kj` if we have it, or computed from `energy-kcal` otherwise\n\n(per 100g or per serving) in kj\n",
"type": "object",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"energy-kcal": {
"description": "energy in kcal, if it is specified\n\n(per 100g or per serving) in a standard unit (g or ml)\n",
"type": "object",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"energy-kj": {
"description": "energy in kj, if it is specified\n\n(per 100g or per serving) in a standard unit (g or ml)\n",
"type": "object",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"fat": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"saturated-fat": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"trans-fat": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"cholesterol": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"salt": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"sodium": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"carbohydrates-total": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"carbohydrates": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"fiber": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"sugars": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"added-sugars": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"proteins": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"vitamin-d": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"calcium": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"iron": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
},
"potassium": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
}
},
"additionalProperties": {
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"allOf": [
{
"type": "object",
"properties": {
"value_string": {
"type": "string",
"description": "A string representing the value of the quantity.\n",
"examples": [
"2.0",
"4.1"
]
}
}
},
{
"type": "object",
"description": "Quantity of a nutrient\n\n(per 100g, per 100ml or per serving) in a standard unit (g or ml)\n",
"properties": {
"value": {
"type": "number",
"description": "A normalized float value for the quantity, computed from `value_string` if it exists.\n",
"examples": [
2,
4.1
]
},
"value_computed": {
"type": "number",
"description": "A normalized float value for the quantity, computed by the system (not entered by a user or manufacturer).\nThis is used only for values that are computed from other nutrient values, like energy computed from fat, carbohydrates and proteins.\nAnd salt or sodium computed from each other.\n",
"examples": [
150,
250.5
]
},
"unit": {
"type": "string",
"description": "The unit of the value entered by the contributor (a user or the manufacturer), for the product.\nIn most cases, this unit is the unit displayed on the product for the nutrient, but it is not guaranteed, as some apps may force specific units when writing nutrient values. \n\nThe possible values depends on the nutrient.\n\n* `g` for grams\n* `mg` for milligrams\n* `μg` for micrograms\n* `cl` for centiliters\n* `ml` for mililiters\n* `dv` for recommended daily intakes (aka [Dietary Reference Intake](https://en.wikipedia.org/wiki/Dietary_Reference_Intake))\n* `% vol` for alcohol vol per 100 ml\n\n🤓 code: see the [Units module][units-module],\nand [Food:default_unit_for_nid function][default-unit]\n\n[units-module]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Units.html\n[default-unit]: https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-perl-pod/ProductOpener/Food.html#default_unit_for_nid_(_%24nid)\n",
"examples": [
"公斤",
"公升",
"kg",
"кг",
"l",
"л",
"毫克",
"mg",
"мг",
"mcg",
"µg",
"oz",
"fl oz",
"dl",
"дл",
"cl",
"кл",
"斤",
"g",
"",
" ",
"kJ",
"克",
"公克",
"г",
"мл",
"ml",
"mmol/l",
"毫升",
"% vol",
"ph",
"%",
"% dv",
"% vol (alcohol)",
"iu",
"mol/l",
"mval/l",
"ppm",
"�rh",
"�fh",
"�e",
"�dh",
"gpg"
]
},
"modifier": {
"type": "string",
"enum": [
"<",
"<=",
"~",
">=",
">"
],
"description": "This property is optional.\n"
}
}
}
]
}
}
}
},
{
"type": "object",
"properties": {
"preparation": {
"type": "string",
"enum": [
"as_sold",
"prepared"
],
"description": "Indicates whether the nutrition values refer to the product *as_sold* or *prepared*.\n\nThe preparation state affects nutrient values.\n"
},
"per": {
"type": "string",
"enum": [
"100g",
"100ml",
"serving"
],
"description": "The nutrition data on the package can be per serving, per 100g or per 100ml.\n\nThis is essential to understand if values in the `nutrients` object apply for a serving, for 100g or for 100ml.\n"
}
}
},
{
"type": "object",
"properties": {
"per_quantity": {
"type": "number",
"minimum": 0,
"description": "The nutrition data on the package can be per serving, per 100g or per 100ml.\nWhen the data is given per serving, \nthe actual quantity that defines one serving may vary between products \nand is stored in this field.\n\nThis is essential to understand to which quantity values in `nutrients` apply for.\n\nFor example, if the label states \"per 250g\", then this field should be *250*.\n",
"example": 250
},
"per_unit": {
"type": "string",
"description": "The nutrition data on the package can be per serving, per 100g or per 100ml.\nWhen the data is given per serving, \nthe actual unit that defines one serving may vary between products \nand is stored in this field.\n\nThis is essential to understand to which quantity values in `nutrients` apply for.\n\nFor example, if the label states \"per 250g\", then this field should be *g*.\n",
"example": "g"
},
"source": {
"type": "string",
"examples": [
"packaging",
"manufacturer",
"usda",
"estimate"
],
"description": "The nutrition data of products can be obtained through several sources.\n"
},
"source_description": {
"type": "string",
"description": "A description of the source used for this nutrition set.\n\nThis provides more information on how and when the source was used.\n\nThis property is optional.\n",
"examples": [
"USDA non-branded foods 2025/04",
"Import from org-nestle-france through Equadis",
"Estimate from ingredients”, “Estimate from category: Olive oils"
]
},
"last_updated_t": {
"type": "integer",
"description": "A timestamp indicating when this nutrition set was last updated.\n",
"examples": [
1631270265,
1512153487
]
},
"unspecified_nutrients": {
"type": "array",
"description": "A list of nutrients that are typically present, but that are not specified for this particular product,\nespecially for packaging source.\n\nThis property is optional.\n",
"items": {
"type": "string"
},
"example": [
"fibers"
]
}
}
}
]
}
}
}
}
}
}