Open food facts

From thecolab-ai/.skills · View interactive version

Open food facts is an AI agent skill from the GitHub repository thecolab-ai/.skills. Look up a food product by barcode on Open Food Facts, and run a bounded country or category search. Use for keyless public product name, brand, quantity, category and country facts. Do not use for Open Products Facts, product photos, personal nutrition advice, or database dumps.

How to use this skill

Skill file

Open Food Facts

Look up one food product by barcode, or one page of country/category matches.

Reads stay on world.openfoodfacts.org. This skill does not query Open Products

Facts, download photos, write products, or mirror the database.

Use scripts/cli.py. Every data command accepts --json. Human text is the

default. Read references/source-notes.md for the verified envelope, rate

limits, and licence.

Commands

python3 scripts/cli.py product 3017624010701
python3 scripts/cli.py product 00012345678905 --json
python3 scripts/cli.py search --country new-zealand --category yogurts --limit 5 --json

product takes an 8 to 14 digit barcode and keeps leading zeros in the request.

A missing product is an empty results array, not an outage. Fields the source

omits are listed in missing_fields and are not invented.

search calls the documented v2 structured search only. Pass --country,

--category, or both. --limit is 1 to 10 and selects the first page only.

There is no full-text search command.

Boundaries

references/source-notes.md.

per IP, and search at 10 per minute per IP.

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.