Install
openclaw skills install @patello/openfoodfactsInteract with the Open Food Facts API to search for packaged food products by barcode and retrieve nutritional information. Use when the user asks to look up branded packaged foods (soft drinks, snacks, frozen meals, etc.), scan barcodes for nutrition data, or find products sold in stores with packaging. Only contains products with barcodes - does NOT include fresh produce, generic ingredients, or unpackaged foods. No API key required.
openclaw skills install @patello/openfoodfactsThis skill provides access to the Open Food Facts database - a global, crowd-sourced food products database with strong European coverage.
Packaged Products Only: Open Food Facts only contains products with barcodes (EAN/UPC). This means:
Data Quality: Since this is crowd-sourced data, accuracy and completeness vary by product. Some products may have incomplete nutritional information.
Rate Limits:
Geographic Bias: While global, coverage is strongest in Europe (especially France, where the project started) and North America.
All API requests are made to https://world.openfoodfacts.org/api/v2.
Search for food products by name or keyword.
Usage:
./skills/openfoodfacts/scripts/off_search.sh "search query" [page_size]
Parameters:
search query (required): Keywords to search for (e.g., "chocolate bar")page_size (optional): Number of results (1-100, default: 10)Example:
./skills/openfoodfacts/scripts/off_search.sh "chocolate bar"
./skills/openfoodfacts/scripts/off_search.sh "oat milk" 20
Response Format: Returns a formatted table with:
Retrieve detailed product information including full nutritional data using a barcode (EAN/UPC).
Usage:
./skills/openfoodfacts/scripts/off_product.sh <barcode>
Parameters:
barcode (required): The EAN-13 or UPC barcode number (usually 8-13 digits)Example:
./skills/openfoodfacts/scripts/off_product.sh 5000159325954
./skills/openfoodfacts/scripts/off_product.sh 7622210449283
Response Format: Returns formatted output with:
Barcodes (EAN-13, UPC) are typically found:
Barcodes are numeric and usually 8-13 digits long.
Common errors:
./skills/openfoodfacts/scripts/off_product.sh 5000159325954./skills/openfoodfacts/scripts/off_search.sh "dark chocolate"./skills/openfoodfacts/scripts/off_product.sh <barcode>Products may include a Nutri-Score grade:
Indicates level of food processing: