# 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](https://world.openfoodfacts.org/)
- Licence and terms: [ODbL 1.0 \(database\), DbCL \(contents\)](https://world.openfoodfacts.org/terms-of-use)
- Coverage: worldwide packaged foods
- 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? (operation `openfoodfacts_product_by_barcode`)
- Which products are called Nutella in Open Food Facts? (operation `openfoodfacts_product_search`)

## 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.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
