Catalog/data-food

Data

Food product lookup (barcode) API

Look up a food product by its barcode (Open Food Facts): name, brand, nutrition per 100g, ingredients, allergens, Nutri-Score, labels (vegan/organic). Answers 'scan this barcode', 'nutrition for this product', 'is this vegan', 'allergens in this'.

Price$0.01per request
MethodPOST
Route/v1/data/food
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache86400s public
datafoodbarcodenutritioningredientsallergensopenfoodfacts
API URLhttps://x402.hexl.dev/v1/data/food
Integration docs
Example request
{
  "barcode": "737628064502"
}
Example response
{
  "barcode": "737628064502",
  "name": "Thai peanut noodle kit",
  "brand": "Simply Asia",
  "nutriScore": "D",
  "allergens": [
    "peanuts",
    "soybeans"
  ],
  "nutritionPer100g": {
    "energyKcal": 380,
    "protein": 12
  }
}
Input schema
{
  "type": "object",
  "required": [
    "barcode"
  ],
  "properties": {
    "barcode": {
      "type": "string",
      "examples": [
        "737628064502"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}