Data
Food barcode lookup with computed Nutri-Score API
Looks up a product on Open Food Facts and, beyond normalizing it, RE-COMPUTES the Nutri-Score nutritional grade (A-E) from the raw per-100g nutriments using the official 2017 points algorithm, then cross-checks the computed grade against the stored one. The value-add: deriving and validating a health metric rather than echoing it, plus a clean ingredient/allergen/nutrition schema. Distinct from data-food (USDA). Answers 'Nutri-Score for this barcode', 'how healthy is this product', 'score this food', 'is this barcode product good or bad for me'.
Price$0.01per request
MethodPOST
Route/v1/data/openfoodfacts
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
dataopenfoodfactsoffnutri-scorebarcodenutritionfoodhealth-grade
API URL
Integration docshttps://x402.hexl.dev/v1/data/openfoodfactsExample request
{
"barcode": "5449000000996"
}Example response
{
"barcode": "5449000000996",
"name": "Coca-Cola",
"brand": "Coca-Cola",
"quantity": "330 ml",
"novaGroup": 4,
"ingredients": "Carbonated water, sugar, ...",
"allergens": [],
"labels": [],
"nutritionPer100g": {
"energyKcal": 42,
"fat": 0,
"saturatedFat": 0,
"carbohydrates": 10.6,
"sugars": 10.6,
"protein": 0,
"salt": 0,
"fiber": null
},
"nutriScore": {
"computedGrade": "E",
"computedScore": 14,
"negativePoints": 14,
"positivePoints": 0,
"storedGrade": "E",
"agreesWithStored": true
}
}Input schema
{
"type": "object",
"required": [
"barcode"
],
"properties": {
"barcode": {
"type": "string",
"examples": [
"5449000000996",
"3017620422003"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}