Branded products from Open Food Facts
Product data: Open Food Facts, ODbL license.
Self Menu shows branded products from Open Food Facts as an extra reference, without checking them: the values are the ones typed in by the Open Food Facts community, and people use them at their own risk. The database is made available under the Open Database License (ODbL) 1.0, and each value under the Database Contents License (DbCL) 1.0.
How the list is built
This is the description of the method used to alter the database (ODbL 1.0, section 4.6 b).
-
Source: the newest full Open Food Facts export in JSONL (
https://openfoodfacts-ds.s3.eu-west-3.amazonaws.com/openfoodfacts-products.jsonl.gz). The list is updated once a month. -
Filter: products with the country “Brazil” (
en:brazil) among the countries where they are sold, that:- have a valid barcode (EAN-8, UPC-A, EAN-13 or GTIN-14, with a correct check digit);
- have a name;
- say whether the values are per 100 g or per 100 ml (from the consolidated set,
nutrition.aggregated_set; for products still in the old model, fromnutrition_data_perand, when the value is per serving, from the serving unit); - have the complete basic table: energy, total fat, saturated fat, carbohydrate, sugars, protein and sodium.
-
Only declared values: those from the label (
packaging) or the manufacturer (manufacturer), for the product as sold. Open Food Facts’ own estimates (estimate, such as added sugars calculated from the ingredients) and the values for the prepared product are left out. -
Impossible values: a value that is negative, above 900 kcal, above 100 g per 100 g (140 g per 100 ml) or with sodium above 40 g per 100 g is discarded. If it is one of the seven in the basic table, the whole product is left out.
-
Fields:
- barcode;
- name (the Portuguese name, when there is one; otherwise the main name);
- brand;
- quantity, as printed and, when Open Food Facts has it in g or ml, also as a number;
- whether the values are per 100 g or per 100 ml;
- date of the last change on Open Food Facts;
- the nutrients present, per 100 g or 100 ml: energy-kcal (ENERC_KCAL, kcal), fat (FAT, g), saturated-fat (FASAT, g), trans-fat (FATRN, g), monounsaturated-fat (FAMS, g), polyunsaturated-fat (FAPU, g), cholesterol (CHOLE, mg), carbohydrates (CHOCDF, g), sugars (SUGAR, g), added-sugars (SUGAR_ADDED, g), fiber (FIBTG, g), proteins (PROCNT, g), sodium (NA, mg), calcium (CA, mg), iron (FE, mg), potassium (K, mg), magnesium (MG, mg), zinc (ZN, mg), phosphorus (P, mg), copper (CU, mg), manganese (MN, mg), selenium (SE, ug), vitamin-a (VITA_RAE, ug), vitamin-d (VITD, ug), vitamin-e (TOCPHA, mg), vitamin-k (VITK1, ug), vitamin-c (VITC, mg), vitamin-b1 (THIA, mg), vitamin-b2 (RIBF, mg), vitamin-pp (NIA, mg), vitamin-b6 (VITB6A, mg), vitamin-b9 (FOLDFE, ug), vitamin-b12 (VITB12, ug), pantothenic-acid (PANTAC, mg).
-
Conversions:
- grams to milligrams or micrograms, depending on the nutrient;
- energy in kJ to kcal (÷ 4.184), when the kcal value is missing;
- salt to sodium (÷ 2.5), when sodium is missing;
- per-serving values to 100 g or 100 ml (× 100 ÷ serving), when Open Food Facts hasn’t consolidated the product yet.
-
Free sugars (FREESUGAR), estimated and marked as an estimate: calculated from the declared values, the categories and the ingredient list on Open Food Facts, in this order:
- fruit juice and nectar: the total sugars;
- declared added sugars: that value;
- with added sugar in the ingredients (sugar, syrups, honey, glucose, fructose, dextrose, maltose, invert sugar, concentrated juice, malt extract): in dairy products, the total sugars minus the lactose estimated from the protein (1.60 g per gram of protein in milk, milk drinks and dairy desserts; 1.07 in yogurt and fermented milk; never below 0); in other products, the total sugars;
- without added sugar in the ingredients: 0 in milk, plain yogurt, fruit, vegetables, nuts and grains; in other categories, 0 when the Portuguese ingredient list exists and has no sugar at all (counting honey, syrups, malt, invert sugar and concentrated juices or pulps), except when total sugars are above 15 g per 100 g outside dairy, fruit and dried fruit (the list was probably misread: it is left without a value);
- without an ingredient list: the total sugars in processed sweets (breakfast cereals, biscuits, candy, chocolate, soft drinks, ice cream, desserts, sweet baked goods), minus the estimated lactose when the sweet is a dairy product; in other products, no value.
The Portuguese ingredient list comes before the Open Food Facts tags.
-
What is left out: photos, ingredients (used only to estimate free sugars), scores and all other fields.
