# Food Product by Barcode

> Food Product by Barcode is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Looks up detailed food product information (name, brand, ingredients, allergens, Nutri-Score, NOVA group, Eco-Score, nutrients) from an EAN/UPC barcode via Open Food Facts

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/lookup/food?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/food-product-by-barcode-f62ff284
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_56RarMH7yLbtEl7cNEYsi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability food-product-by-barcode-f62ff284
```

Example prompt: Can you look up the food product with barcode 3017620422003 and tell me its ingredients, allergens, and Nutri-Score?

## When to prefer this

Use this endpoint when you need structured food product data keyed by a physical barcode scan, particularly for nutrition apps, shopping assistants, or allergy screening tools. It's ideal when you have the barcode number and need rich data including Nutri-Score, NOVA group, Eco-Score, and allergens in a single call. Prefer this over manual web scraping or general search when you want machine-readable nutritional facts tied to a specific product SKU.

## Known failure modes

- Barcode not found in Open Food Facts database — product may be regional or unlisted
- Invalid barcode format returns an error — must be EAN-13, EAN-8, or UPC
- Incomplete product data if Open Food Facts entry is community-contributed and partially filled
- Service downtime on the Render-hosted endpoint causing HTTP errors
- Rate limits or payment failures returning 402 responses

## How this service works

Food product details from its EAN/UPC barcode: name, brand, quantity, ingredients, allergens, Nutri-Score, NOVA processing group, Eco-Score and nutrients per 100 g, from Open Food Facts. Use for nutrition apps, shopping assistants or allergy checks.

## Output

Returns structured food product data including product name, brand, quantity/serving size, full ingredients list, allergen flags, Nutri-Score letter grade, NOVA food processing group (1-4), Eco-Score environmental rating, and per-100g macro and micro nutrient values sourced from the Open Food Facts database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "barcode"
     ],
     "properties": {
      "barcode": {
       "type": "string",
       "description": "EAN-13, EAN-8 or UPC barcode"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/food-product-by-barcode-f62ff284/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
