Open Food Facts
Healthworld.openfoodfacts.org
Food product data by barcode: ingredients, allergens, additives, Nutri-Score and nutrition facts.
Capabilities (6)
GET /v1/data/openfoodfacts/autocomplete1 creditReturns suggested taxonomy entries matching a partial string, each with its canonical id, display text and taxonomy name.
GET /v1/data/openfoodfacts/indexed-product1 creditReturns the search index's own document for one barcode, with every field already split per language, as the search hits are shaped.
GET /v1/data/openfoodfacts/product1 creditReturns the full crowd-sourced record for one barcode: names, brands, ingredients, allergens, additives, per-100g nutrition, Nutri-Score, NOVA group, Eco-Score, packaging and images.
GET /v1/data/openfoodfacts/search1 creditReturns a page of products matching tag filters such as category, brand, label, country, Nutri-Score grade or NOVA group, with a total count and page count.
GET /v1/data/openfoodfacts/taxonomy1 creditReturns a complete Open Food Facts controlled vocabulary as a static JSON map of canonical tag to translated names, synonyms and parent tags.
GET /v1/data/openfoodfacts/text-search1 creditReturns products matching a free-text or Lucene-syntax query from the Open Food Facts search-a-licious index, with hits, total count and optional facets.
Response example
The shape of data from openfoodfacts/autocomplete (Taxonomy autocomplete). A sample, not live data.
{
"took": 2,
"timed_out": false,
"options": [
{
"id": "en:sprinkles",
"text": "Chocolat or sugar sprinkles",
"taxonomy_name": "category"
},
{
"id": "en:chocolate-advent-calendars",
"text": "Chocolate Advent calendars",
"taxonomy_name": "category"
},
"… 3 more items"
],
"debug": {
"query": {
"suggest": {
"taxonomy_suggest": {
"text": "choco",
"completion": {
"field": "names.en",
"size": 5,
"contexts": {
"taxonomy_name": [
"category"
]
}
}
}
}
}
}
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Taxonomy autocomplete
Use Open Food Facts (openfoodfacts) from fastCRW Pergamon, capability "Taxonomy autocomplete" (autocomplete). A user is typing a category, brand or label and you need to resolve it to a canonical tag. Example options: q=choco, taxonomy_names=category, lang=en. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "openfoodfacts" and capability "autocomplete". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Indexed product document
Use Open Food Facts (openfoodfacts) from fastCRW Pergamon, capability "Indexed product document" (indexed-product). You got a hit from the full-text search and want that exact indexed document rather than the live product record. Example options: barcode=3017620422003. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "openfoodfacts" and capability "indexed-product". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Product by barcode
Use Open Food Facts (openfoodfacts) from fastCRW Pergamon, capability "Product by barcode" (product). You have a barcode (EAN/UPC) and want everything known about that food product. Example options: barcode=3017624010701, fields=product_name,brands,nutriscore_grade,nova_group,ingredients_text, lc=en. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "openfoodfacts" and capability "product". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Filter products by tag
Use Open Food Facts (openfoodfacts) from fastCRW Pergamon, capability "Filter products by tag" (search). You want products that match structured criteria (a category, a brand, a Nutri-Score) rather than a text query. Example options: page_size=5, categories_tags=en:chocolate-spreads, brands_tags=ferrero. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "openfoodfacts" and capability "search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
The Open Food Facts database is available under the Open Database License (ODbL): commercial use and redistribution are permitted, but a derived database must be shared under the same licence and Open Food Facts must be credited.
https://world.openfoodfacts.org/terms-of-useAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: Open Food Facts (ODbL)
Cache: up to 86400s
