{"openapi":"3.1.0","info":{"title":"Food Barcode Facts","version":"1.0.0","description":"Packaged food lookup by barcode: nutrition, allergens, diet fit, additives, comparison, daily values. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"Food Barcode Facts: Packaged food lookup by barcode: nutrition, allergens, diet fit, additives, comparison, daily values. Food Barcode Facts answers questions about packaged food from its barcode: the full product profile with Nutri-Score, NOVA and nutrition (/food-product), which allergens are declared and whether any you avoid are listed (/food-allergens), fit with vegan, vegetarian, palm-oil-free or gluten-free diets (/food-diet-check), named additives (/food-additives), a side-by-side comparison of two products (/food-compare), per-serving nutrition and percent daily value from label numbers (/nutrition-calc) and what an E-number additive is (/additive-info). Allergen and diet answers never say a product is safe, only what the database lists. Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://food-barcode.x402tookit.com"}],"paths":{"/additive-info":{"get":{"operationId":"additive_info","summary":"Name and function of a common food additive by E-number (E102, E330, E621 and about 90 more); a reference, not a safety rating.","description":"Name and function of a common food additive by E-number (E102, E330, E621 and about 90 more); a reference, not a safety rating.","tags":["food","additives","e-numbers","reference"],"parameters":[{"name":"code","in":"query","required":true,"description":"E-number, e.g. E330 or 330","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"code":{"type":["null","string"]},"name":{"type":["null","string"]},"function":{"type":["null","string"]},"exactMatch":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"FOUND","summary":"E330: Citric acid, function: acidity regulator.","reasons":["A reference name and function only, not a safety rating."],"code":"E330","name":"Citric acid","function":"acidity regulator","exactMatch":true,"degraded":false,"notChecked":["safety, allowed amounts or regulatory status in any country","additives outside the built-in list of about 90 common ones","…1 more"],"source":"computed locally","asOf":"2026-10-11T05:19:22.593Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/additive-info"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/additive-info"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/additive-info"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/additive-info"}}]}}},"/food-additives":{"get":{"operationId":"food_additives","summary":"Additives (E-numbers) declared for a food barcode, with each additive's name and function and an ultra-processing flag.","description":"Additives (E-numbers) declared for a food barcode, with each additive's name and function and an ultra-processing flag.","tags":["food","additives","e-numbers","barcode"],"parameters":[{"name":"barcode","in":"query","required":true,"description":"UPC or EAN barcode","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"barcode":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"quantity":{"type":["null","string"]},"additives":{"type":["array","null"],"items":{"type":"object","properties":{"code":{"type":["null","string"]},"name":{"type":["null","string"]},"function":{"type":["null","string"]},"exact":{"type":["boolean","null"]}}}},"additiveCount":{"type":["null","number"]},"novaGroup":{"type":["null","number"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"hasIngredients":{"type":["boolean","null"]},"lastModified":{"type":["null","string"]}}},"attribution":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"ADDITIVES_DECLARED","summary":"Nutella: 1 additive(s): E322 Lecithins.","reasons":["NOVA group 4 (ultra-processed) in the database.","A reference list: naming an additive is not a safety verdict.","…1 more"],"barcode":"3017620422003","name":"Nutella","brands":"Nutella, Ferrero","quantity":"400 g e","additives":[{"code":"E322","name":"Lecithins","function":"emulsifier","exact":true}],"additiveCount":1,"novaGroup":4,"dataQuality":{"completeness":89,"hasIngredients":true,"lastModified":"2026-10-10"},"attribution":"Data: Open Food Facts contributors (ODbL).","degraded":false,"notChecked":["safety or health ratings of additives (this lists what is declared, not whether it is harmful)","additives not tagged in the database entry","…1 more"],"source":"Open Food Facts","sourceUrl":"https://world.openfoodfacts.org","asOf":"2026-10-11T05:19:23.376Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-additives"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-additives"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-additives"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-additives"}}]}}},"/food-allergens":{"get":{"operationId":"food_allergens","summary":"Allergens and traces declared for a barcode, checked against allergens you avoid; never claims a product is safe.","description":"Allergens and traces declared for a barcode, checked against allergens you avoid; never claims a product is safe.","tags":["food","allergens","barcode"],"parameters":[{"name":"barcode","in":"query","required":true,"description":"UPC or EAN barcode","schema":{"type":"string"}},{"name":"avoid","in":"query","required":false,"description":"Comma-separated allergens to check, e.g. milk,nuts,gluten","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"barcode":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"quantity":{"type":["null","string"]},"declaredAllergens":{"type":["array","null"],"items":{"type":"string"}},"traces":{"type":["array","null"]},"checkedAgainst":{"type":["array","null"],"items":{"type":"string"}},"containsFromYourList":{"type":["array","null"],"items":{"type":"string"}},"tracesFromYourList":{"type":["array","null"]},"ingredients":{"type":["null","string"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"hasIngredients":{"type":["boolean","null"]},"lastModified":{"type":["null","string"]}}},"attribution":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CONTAINS_AVOIDED_ALLERGEN","summary":"Nutella: declared allergens milk, nuts, soybeans. Your list: CONTAINS milk.","reasons":["Matches come from the declared allergen tags.","Data: Open Food Facts contributors (ODbL)."],"barcode":"3017620422003","name":"Nutella","brands":"Nutella, Ferrero","quantity":"400 g e","declaredAllergens":["milk","nuts","…1 more"],"traces":[],"checkedAgainst":["milk","gluten"],"containsFromYourList":["milk"],"tracesFromYourList":[],"ingredients":"Sucre, huile de palme, NOISETTES 13%, cacao maigre 7,4%, LAIT écrémé en poudre 6,6%, LACTOSERUM en poudre, émulsifiants: lécithines [SOJA), vanilline. Sans gluten.","dataQuality":{"completeness":89,"hasIngredients":true,"lastModified":"2026-10-10"},"attribution":"Data: Open Food Facts contributors (ODbL).","degraded":false,"notChecked":["cross-contamination in the factory beyond declared traces","recipe changes since the database entry","…2 more"],"source":"Open Food Facts","sourceUrl":"https://world.openfoodfacts.org","asOf":"2026-10-11T05:19:23.743Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-allergens"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-allergens"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-allergens"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-allergens"}}]}}},"/food-compare":{"get":{"operationId":"food_compare","summary":"Compare two packaged foods by barcode: Nutri-Score, NOVA, and per-100 g energy, sugars, saturated fat, salt, fibre and protein.","description":"Compare two packaged foods by barcode: Nutri-Score, NOVA, and per-100 g energy, sugars, saturated fat, salt, fibre and protein.","tags":["food","compare","nutrition"],"parameters":[{"name":"barcode","in":"query","required":true,"description":"First product barcode","schema":{"type":"string"}},{"name":"other","in":"query","required":true,"description":"Second product barcode","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"a":{"type":["null","object"],"properties":{"barcode":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"quantity":{"type":["null","string"]},"nutriScore":{"type":["null","string"]},"novaGroup":{"type":["null","number"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"hasIngredients":{"type":["boolean","null"]},"lastModified":{"type":["null","string"]}}}}},"b":{"type":["null","object"],"properties":{"barcode":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"quantity":{"type":["null","string"]},"nutriScore":{"type":["null","string"]},"novaGroup":{"type":["null","number"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"hasIngredients":{"type":["boolean","null"]},"lastModified":{"type":["null","string"]}}}}},"per100g":{"type":["array","null"],"items":{"type":"object","properties":{"nutrient":{"type":["null","string"]},"a":{"type":["null","number"]},"b":{"type":["null","number"]},"difference":{"type":["null","number"]}}}},"attribution":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SAME_NUTRISCORE","summary":"Nutella (Nutri-Score E) vs Coca-Cola Original (E). Per 100 g sugars 56.3 vs 10.6 g, salt 0.107 vs 0 g.","reasons":["Nutri-Score A is best, E worst; it rates the nutrient profile only, not the whole diet.","Missing numbers are unknown, not zero.","…1 more"],"a":{"barcode":"3017620422003","name":"Nutella","brands":"Nutella, Ferrero","quantity":"400 g e","nutriScore":"E","novaGroup":4,"dataQuality":{"completeness":89,"hasIngredients":true,"lastModified":"2026-10-10"}},"b":{"barcode":"5449000000996","name":"Coca-Cola Original","brands":"COCA-COLA SERVICES SA/NV","quantity":"330 ml","nutriScore":"E","novaGroup":4,"dataQuality":{"completeness":89,"hasIngredients":true,"lastModified":"2026-10-10"}},"per100g":[{"nutrient":"energy (kcal)","a":539,"b":42.4,"difference":496.6},{"nutrient":"sugars (g)","a":56.3,"b":10.6,"difference":45.7}],"attribution":"Data: Open Food Facts contributors (ODbL).","degraded":false,"notChecked":["serving sizes (comparison is per 100 g, not per portion)","ingredients quality beyond the numbers","…1 more"],"source":"Open Food Facts","sourceUrl":"https://world.openfoodfacts.org","asOf":"2026-10-11T05:19:24.404Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0500"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-compare"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-compare"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-compare"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-compare"}}]}}},"/food-diet-check":{"get":{"operationId":"food_diet_check","summary":"Does a packaged food fit a vegan, vegetarian, palm-oil-free or gluten-free diet, per its ingredient analysis and labels.","description":"Does a packaged food fit a vegan, vegetarian, palm-oil-free or gluten-free diet, per its ingredient analysis and labels.","tags":["food","vegan","vegetarian","gluten-free","diet"],"parameters":[{"name":"barcode","in":"query","required":true,"description":"UPC or EAN barcode","schema":{"type":"string"}},{"name":"diet","in":"query","required":true,"description":"vegan, vegetarian, palm-oil-free or gluten-free","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"barcode":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"quantity":{"type":["null","string"]},"diet":{"type":["null","string"]},"analysisTags":{"type":["array","null"],"items":{"type":"string"}},"labels":{"type":["array","null"],"items":{"type":"string"}},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"hasIngredients":{"type":["boolean","null"]},"lastModified":{"type":["null","string"]}}},"attribution":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"DOES_NOT_FIT","summary":"Nutella vs vegan: does not fit.","reasons":["Ingredient analysis tags: non-vegan","At least one ingredient or declared allergen conflicts with the diet.","…1 more"],"barcode":"3017620422003","name":"Nutella","brands":"Nutella, Ferrero","quantity":"400 g e","diet":"vegan","analysisTags":["palm-oil","non-vegan","…1 more"],"labels":["vegetarian","no-gluten","…1 more"],"dataQuality":{"completeness":89,"hasIngredients":true,"lastModified":"2026-10-10"},"attribution":"Data: Open Food Facts contributors (ODbL).","degraded":false,"notChecked":["trace contamination and shared equipment","the physical package (always read the label)","…2 more"],"source":"Open Food Facts","sourceUrl":"https://world.openfoodfacts.org","asOf":"2026-10-11T05:19:24.795Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-diet-check"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-diet-check"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-diet-check"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-diet-check"}}]}}},"/food-product":{"get":{"operationId":"food_product","summary":"Packaged food profile by barcode: name, brand, Nutri-Score, NOVA processing group, nutrition per 100 g and data quality.","description":"Packaged food profile by barcode: name, brand, Nutri-Score, NOVA processing group, nutrition per 100 g and data quality.","tags":["food","barcode","nutrition","nutriscore"],"parameters":[{"name":"barcode","in":"query","required":true,"description":"UPC or EAN barcode, 8 to 14 digits","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"barcode":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"quantity":{"type":["null","string"]},"nutriScore":{"type":["null","string"]},"novaGroup":{"type":["null","number"]},"novaMeaning":{"type":["null","string"]},"ecoScore":{},"per100g":{"type":["null","object"],"properties":{"energyKcal":{"type":["null","number"]},"fatG":{"type":["null","number"]},"saturatedFatG":{"type":["null","number"]},"carbohydratesG":{"type":["null","number"]},"sugarsG":{"type":["null","number"]},"fiberG":{"type":["null","number"]},"proteinsG":{"type":["null","number"]},"saltG":{"type":["null","number"]},"sodiumMg":{"type":["null","number"]}}},"servingSize":{},"labels":{"type":["array","null"],"items":{"type":"string"}},"countriesSold":{"type":["array","null"],"items":{"type":"string"}},"ingredients":{"type":["null","string"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"hasIngredients":{"type":["boolean","null"]},"lastModified":{"type":["null","string"]}}},"attribution":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"FOUND","summary":"Nutella (Nutella, Ferrero): Nutri-Score E, NOVA 4 (ultra-processed food); 539 kcal, 56.3 g sugars, 0.107 g salt per 100 g.","reasons":["Entry completeness 89%, last edited 2026-10-10.","Data: Open Food Facts contributors (ODbL)."],"barcode":"3017620422003","name":"Nutella","brands":"Nutella, Ferrero","quantity":"400 g e","nutriScore":"E","novaGroup":4,"novaMeaning":"ultra-processed food","ecoScore":null,"per100g":{"energyKcal":539,"fatG":30.9,"saturatedFatG":10.6,"carbohydratesG":57.5,"sugarsG":56.3,"fiberG":0,"proteinsG":6.3,"saltG":0.107,"sodiumMg":43},"servingSize":null,"labels":["vegetarian","no-gluten","…1 more"],"countriesSold":["france"],"ingredients":"Sucre, huile de palme, NOISETTES 13%, cacao maigre 7,4%, LAIT écrémé en poudre 6,6%, LACTOSERUM en poudre, émulsifiants: lécithines [SOJA), vanilline. Sans gluten.","dataQuality":{"completeness":89,"hasIngredients":true,"lastModified":"2026-10-10"},"attribution":"Data: Open Food Facts contributors (ODbL).","degraded":false,"notChecked":["whether the recipe has changed since the database entry","regional recipe variants sold under the same barcode","…1 more"],"source":"Open Food Facts","sourceUrl":"https://world.openfoodfacts.org","asOf":"2026-10-11T05:19:25.185Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-product"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-product"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-product"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/food-product"}}]}}},"/nutrition-calc":{"get":{"operationId":"nutrition_calc","summary":"Scale label nutrition from per 100 g to a serving, with FDA percent daily values and a check that the calories match the macros.","description":"Scale label nutrition from per 100 g to a serving, with FDA percent daily values and a check that the calories match the macros.","tags":["nutrition","calculator","daily-value"],"parameters":[{"name":"serving_g","in":"query","required":true,"description":"Serving size in grams","schema":{"type":"number"}},{"name":"kcal","in":"query","required":false,"description":"Calories per 100 g","schema":{"type":"number"}},{"name":"fat","in":"query","required":false,"description":"Fat g per 100 g","schema":{"type":"number"}},{"name":"sat_fat","in":"query","required":false,"description":"Saturated fat g per 100 g","schema":{"type":"number"}},{"name":"carbs","in":"query","required":false,"description":"Carbohydrates g per 100 g","schema":{"type":"number"}},{"name":"sugars","in":"query","required":false,"description":"Sugars g per 100 g","schema":{"type":"number"}},{"name":"fiber","in":"query","required":false,"description":"Fibre g per 100 g","schema":{"type":"number"}},{"name":"protein","in":"query","required":false,"description":"Protein g per 100 g","schema":{"type":"number"}},{"name":"sodium_mg","in":"query","required":false,"description":"Sodium mg per 100 g","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"servingGrams":{"type":["null","number"]},"perServing":{"type":["null","object"],"properties":{"kcal":{"type":["null","number"]},"fatG":{"type":["null","number"]},"satFatG":{"type":["null","number"]},"carbsG":{"type":["null","number"]},"sugarsG":{"type":["null","number"]},"fiberG":{},"proteinG":{"type":["null","number"]},"sodiumMg":{"type":["null","number"]}}},"percentDailyValue":{"type":["null","object"],"properties":{"kcal":{"type":["null","number"]},"fat":{"type":["null","number"]},"satFat":{"type":["null","number"]},"carbs":{"type":["null","number"]},"fiber":{},"protein":{"type":["null","number"]},"sodium":{"type":["null","number"]}}},"energyShare":{"type":["null","object"],"properties":{"fatPct":{"type":["null","number"]},"carbsPct":{"type":["null","number"]},"proteinPct":{"type":["null","number"]}}},"consistency":{"type":["null","object"],"properties":{"caloriesFromMacrosPer100g":{"type":["null","number"]},"labelKcalPer100g":{"type":["null","number"]},"withinTolerance":{"type":["boolean","null"]}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CALCULATED","summary":"30 g serving: 162 kcal (8.1% of 2,000), fat 9.3 g, carbs 17.3 g, protein 1.9 g.","reasons":["No flags."],"servingGrams":30,"perServing":{"kcal":162,"fatG":9.3,"satFatG":3.2,"carbsG":17.3,"sugarsG":16.9,"fiberG":null,"proteinG":1.9,"sodiumMg":12},"percentDailyValue":{"kcal":8.1,"fat":11.9,"satFat":15.9,"carbs":6.3,"fiber":null,"protein":3.8,"sodium":0.5},"energyShare":{"fatPct":5.2,"carbsPct":43.1,"proteinPct":4.7},"consistency":{"caloriesFromMacrosPer100g":533,"labelKcalPer100g":539,"withinTolerance":true},"degraded":false,"notChecked":["added sugars (percent daily value for added sugars needs the added-sugar figure, not total sugars, so it is not computed)","vitamins and minerals","…2 more"],"source":"computed locally","asOf":"2026-10-11T05:19:25.441Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/nutrition-calc"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/nutrition-calc"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/nutrition-calc"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://food-barcode.x402tookit.com/nutrition-calc"}}]}}}}}