Open Food Facts Barcode Nutrition & Ingredients
Look up packaged food & consumer product metadata by EAN/UPC barcode including product name, brand, Nutri-Score, NOVA ultra-processing group, Eco-Score, full ingredients, allergens, nutriments per 100g, and product photos (ODbL attributed).
curl -sG "https://api.agentapigate.ai/v1/commerce/openfoodfacts/product_by_barcode" \ --data-urlencode "barcode=3017620422003" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Open Food Facts Barcode Nutrition & Ingredients (`commerce.openfoodfacts.product_by_barcode`) **found**: true · **barcode**: 3017620422003 · **product_name**: Nutella · **brands**: Ferrero, Nutella · **nutriscore_grade**: e · **nova_group**: 3 · **ingredients_text**: sugar, palm oil ## nutriments - **energy_kcal_100g**: 539 - **fat_100g**: 30.9 - **saturated_fat_100g**: 10.6 - **carbohydrates_100g**: 57.5 - **sugars_100g**: 56.3 - **fiber_100g**: 0 - **proteins_100g**: 6.3 - **salt_100g**: 0.107 - **sodium_100g**: 0.0428
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:commerce.openfoodfacts.product_by_barcode · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| barcode | string | required | 3017620422003 | EAN-13, UPC-A, or EAN-8 numeric product barcode (e.g. "3017620422003" for Nutella) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | commerce_openfoodfacts_product_by_barcode | OAuth 2.1 Hub & /mcp/commerce |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 355 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 762t → 135t (-85%) | Partner credit: eligible |
More Commerce & Ads Real-Time APIs
Extract structured product SKUs, variants, live pricing, stock availability, and images from any public Shopify store.
Query public WooCommerce Store API v1 product listings, prices, currencies, and stock status (SSRF-guarded).
Search Amazon and major online retail listings for live prices, ratings, review counts, and merchant URLs.
Search Walmart US product catalog with live retail pricing, ratings, and item URLs.
Inspect TikTok Shop product listings, pricing, seller storefront details, and social commerce metadata.
Search active and historical Facebook & Instagram ads in Meta Ad Library by keyword and country with ad copy, CTA, landing URL, and run dates.
Frequently Asked Questions
How do I call Open Food Facts Barcode Nutrition & Ingredients (commerce.openfoodfacts.product_by_barcode) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/commerce/openfoodfacts/product_by_barcode with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool commerce_openfoodfacts_product_by_barcode on https://mcp.agentapigate.ai/mcp.
What does commerce.openfoodfacts.product_by_barcode cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on commerce.openfoodfacts.product_by_barcode?
Passing ?format=md transforms the response into normalized Markdown (~135 tokens vs ~762 raw tokens, saving 85% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only commerce endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["commerce"], optional allowed_endpoints: ["commerce.openfoodfacts.product_by_barcode"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.