Open Food Facts: packaged food products
Open Food Facts, the open database of packaged foods: look up a product by barcode for ingredients, allergens, Nutri-Score, NOVA group and nutrition per 100 g, or search products by name.
No API key needed to call
- Source
- Open Food Facts
- Licence and terms
- ODbL 1.0 (database), DbCL (contents)
- Coverage
- worldwide packaged foods
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
- What are the ingredients and Nutri-Score of the product with barcode 3017620422003?
- Which products are called Nutella in Open Food Facts?
Operations
Food product by barcode
Answers: what is in the product with this barcode (EAN or UPC): ingredients, allergens, Nutri-Score, NOVA processing group and nutrition per 100 g?
| barcode | required, string, EAN-8, UPC-A, EAN-13 or GTIN-14 barcode digits. |
|---|
Example: What are the ingredients and Nutri-Score of the product with barcode 3017620422003?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"openfoodfacts","operation":"openfoodfacts_product_by_barcode","params":{"barcode":"3017620422003"}}}Over HTTP
curl '/v1/connectors/openfoodfacts/openfoodfacts_product_by_barcode?barcode=3017620422003'Search food products by name
Answers: which packaged food products match this name or brand? Returns barcode, name, brand and Nutri-Score for each match.
| q | required, string, Product name or brand words. |
|---|---|
| page_size | optional, integer, default 8 |
Example: Which products are called Nutella in Open Food Facts?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"openfoodfacts","operation":"openfoodfacts_product_search","params":{"q":"nutella","page_size":5}}}Over HTTP
curl '/v1/connectors/openfoodfacts/openfoodfacts_product_search?q=nutella&page_size=5'Source notice
Source: Open Food Facts. Terms were not quoted here: see the terms page. The database is available under the Open Database Licence; share-alike and attribution to Open Food Facts contributors apply. Product data is crowd-sourced and may be incomplete or wrong.