# BizIntel API – Open Food Facts Barcode Lookup

> BizIntel API – Open Food Facts Barcode Lookup is a paid API for AI agents from bizintel-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Looks up nutritional information (calories, sugar, etc.) for a food product by its EAN/UPC barcode via Open Food Facts data.

## Facts

- Endpoint: POST https://bizintel-api.hahavoid0.workers.dev/product/open-food-facts
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bizintel-api-open-food-facts-barcode-lookup-a72cae5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xQ0ujMF91jneCLmQTA6e2

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 bizintel-api-open-food-facts-barcode-lookup-a72cae5a -d '<json body>'
```

Example prompt: What are the calories and sugar content for the food product with barcode 3017620422003? I scanned it at the grocery store and want to know its nutritional info.

## When to prefer this

Choose this endpoint when you need fast, pay-per-call nutritional lookup for packaged food products by EAN/UPC barcode without requiring an API key or subscription. It is ideal for diet tracking agents, grocery shopping assistants, and food logging workflows. Prefer this over direct Open Food Facts API calls when you need a managed, x402 USDC micropayment-compatible wrapper with structured confidence scoring.

## Known failure modes

- Barcode not found in Open Food Facts database (supported: false returned)
- Invalid or malformed barcode string causes validation error
- Low confidence result if product data is incomplete in source database
- Stale data if Open Food Facts has not been updated recently for the product
- Network timeout or upstream Open Food Facts service unavailability
- Payment failure if insufficient USDC balance for x402 micropayment

## How this service works

Extracts macronutrients, calories, and additives for a food barcode.

## Output

Returns a JSON object with nutritional fields including calories and sugar (e.g. calories: 539, sugar: 56.3), a 'supported' flag indicating if the barcode is in the database, a confidence level (e.g. 'high'), a data_as_of freshness date, any warnings, and a disclaimer about informational use only.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "barcode"
     ],
     "properties": {
      "barcode": {
       "type": "string",
       "description": "Food EAN/UPC barcode"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "sugar": 56.3,
   "calories": 539
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bizintel-api-open-food-facts-barcode-lookup-a72cae5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bizintel-api.hahavoid0.workers.dev](https://www.zero.xyz/host/bizintel-api.hahavoid0.workers.dev/llms.txt)
