# Food Barcode Facts Packaged food lookup by barcode: nutrition, allergens, diet fit, additives, comparison, daily values. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://food-barcode.x402tookit.com/openapi.json - x402 manifest: https://food-barcode.x402tookit.com/.well-known/x402 - Catalog (free): https://food-barcode.x402tookit.com/catalog - Health (free): https://food-barcode.x402tookit.com/health - Uptime (free): https://food-barcode.x402tookit.com/uptime ## Endpoints (7) ### GET /additive-info — $0.02 Name and function of a common food additive by E-number (E102, E330, E621 and about 90 more); a reference, not a safety rating. Params: code: string Example: https://food-barcode.x402tookit.com/additive-info?code=E330 ### GET /food-additives — $0.02 Additives (E-numbers) declared for a food barcode, with each additive's name and function and an ultra-processing flag. Params: barcode: string Example: https://food-barcode.x402tookit.com/food-additives?barcode=3017620422003 ### GET /food-allergens — $0.02 Allergens and traces declared for a barcode, checked against allergens you avoid; never claims a product is safe. Params: barcode: string, avoid?: string Example: https://food-barcode.x402tookit.com/food-allergens?barcode=3017620422003&avoid=milk%2Cgluten ### GET /food-compare — $0.05 Compare two packaged foods by barcode: Nutri-Score, NOVA, and per-100 g energy, sugars, saturated fat, salt, fibre and protein. Params: barcode: string, other: string Example: https://food-barcode.x402tookit.com/food-compare?barcode=3017620422003&other=5449000000996 ### GET /food-diet-check — $0.02 Does a packaged food fit a vegan, vegetarian, palm-oil-free or gluten-free diet, per its ingredient analysis and labels. Params: barcode: string, diet: string Example: https://food-barcode.x402tookit.com/food-diet-check?barcode=3017620422003&diet=vegan ### GET /food-product — $0.02 Packaged food profile by barcode: name, brand, Nutri-Score, NOVA processing group, nutrition per 100 g and data quality. Params: barcode: string Example: https://food-barcode.x402tookit.com/food-product?barcode=3017620422003 ### GET /nutrition-calc — $0.02 Scale label nutrition from per 100 g to a serving, with FDA percent daily values and a check that the calories match the macros. Params: serving_g: number, kcal?: number, fat?: number, sat_fat?: number, carbs?: number, sugars?: number, fiber?: number, protein?: number, sodium_mg?: number Example: https://food-barcode.x402tookit.com/nutrition-calc?serving_g=30&kcal=539&fat=30.9&sat_fat=10.6&carbs=57.5&sugars=56.3&protein=6.3&sodium_mg=41 ## Terms Product data comes from Open Food Facts, a community-edited database under the Open Database Licence, and local computation, provided as is. Entries can be incomplete, outdated or wrong, and manufacturers change recipes. Never rely on this for allergy, medical or dietary safety decisions: always read the physical package label. Not medical or nutritional advice.