How to Use Open Food Facts product details in ChatGPT
Fetch a food's ingredients, allergens, nutrition facts, and available scores from its barcode or Open Food Facts URL. Use it to inspect a specific package after finding products by name.
Prompts to try with Open Food Facts product details in ChatGPT
Copy an example into ChatGPT, or ask in your own words.
Use Open Food Facts product details for barcode 3017624010701 and summarize its reported ingredients, nutrition facts, and available scores.
Use Open Food Facts product details for barcode 5449000000996 and explain the returned sugar and energy values, including their measurement basis.
Use Open Food Facts product details to look this up and give me the result as a table.
Pull the latest numbers from Open Food Facts product details and tell me what changed since last week.
Check Open Food Facts product details and summarize what you find in three bullet points.
How to set up Open Food Facts product details in ChatGPT
Pick the way that suits you. Each takes about two minutes.
Use the ChatGPT connector
- Add a custom MCP server
In ChatGPT open Plugins, then Add › Add custom MCP server. Name it Spiral, paste this URL and keep Authentication on OAuth. Tick I understand and want to continue, then click Create.
https://api.spiral.ai/mcp
- Click Connect
ChatGPT asks to connect Spiral. Connect takes you to Spiral in your browser.
- Sign in to Spiral and approve
Sign in, pick the organization ChatGPT should use and click Authorize. Spiral gives the connection its own API key; ChatGPT never sees it, and you can remove the connection under Settings › Connected apps.
Use the Spiral skill
- Send ChatGPT this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Open Food Facts product details
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "world-openfoodfacts-org/foods/product", "input": { "barcode": "<barcode>" } }'
Then paste one of the prompts above: ChatGPT finds Open Food Facts product details on Spiral, shows the price and runs it.
Open Food Facts product details providers and prices
Spiral runs Open Food Facts product details through Alexandria. Open a card for today's price, with every fee included.
What can you do with Open Food Facts product details in ChatGPT?
Turn a grocery question into a shortlist of foods or an explanation of a specific product record. A chat app can use Open Food Facts categories, barcodes, ingredients, and nutrition facts to ground its answer.
Compare foods within a category
Resolve a category such as oat milks, find matching products, and inspect their barcode records to compare reported ingredients and nutrition on the same basis.
Build a grocery catalog in two languages
Use taxonomy identifiers to organize translated category names, find foods for the catalog, and attach ingredients and nutrition from individual product records.
Audit category data completeness
Choose a category from the source's suggestions, collect matching barcodes, and check individual records for missing ingredients, nutrition facts, or scores.
Research a public brand's product range
Resolve the brand name, gather matching foods, and inspect selected barcode records for differences in reported ingredients and nutrition.
Enrich an existing barcode catalog
Look up known grocery barcodes and add the available product names, ingredients, allergens, and nutrition facts to catalog entries.
Review changes to contributed food records
Repeat a defined product search and compare selected barcode records with earlier retrieved results. Flag changed ingredients or nutrition values for editorial review.
More on Open Food Facts product details and ChatGPT
Overview
Open Food Facts product details in other agents
Questions about Open Food Facts product details in ChatGPT
Can ChatGPT use Open Food Facts product details?
Yes. Add Spiral to ChatGPT as an MCP server, and ChatGPT can find and run Open Food Facts product details like any built-in tool.
How much does Open Food Facts product details cost in ChatGPT?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your ChatGPT plan is separate.
Do I need an Alexandria account to use Open Food Facts product details in ChatGPT?
No. Spiral runs Open Food Facts product details on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Open Food Facts product details in ChatGPT?
About two minutes: add a custom MCP server, then click Connect, then sign in to Spiral and approve.
Does ChatGPT wait while Open Food Facts product details runs?
Open Food Facts product details runs in the background. ChatGPT starts the run, checks on it and gives you the json when it's ready.
Which countries does Open Food Facts cover?
Open Food Facts covers food products worldwide and contains millions of records. Its scope extends beyond a single country's food catalog.
Does finding a product mean its record is complete?
No. Open Food Facts explicitly says a listed product may still lack data, so finding a barcode does not establish that its ingredients or nutrition information is complete.
How does product information get updated?
Contributors can edit, correct, and complete existing contributions. Updates therefore depend on changes to the contributed records.
Why might a product have no Nutri-Score?
Missing nutrition data can prevent Open Food Facts from computing a Nutri-Score. The source's tutorial also shows a product missing the category and sodium information needed for the calculation.
How does Open Food Facts handle different languages?
Its taxonomies associate canonical identifiers with translations and synonyms. This lets category terms in different languages refer to the same underlying classification.
Start using Open Food Facts product details in ChatGPT
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into ChatGPT:
set up https://spiral.ai/SKILL.md


