# AgentRXI Barcode Lookup (Open Food Facts)

> AgentRXI Barcode Lookup (Open Food Facts) is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-15).

Looks up packaged food product details — name, brand, ingredients, allergens, Nutri-Score, NOVA group, eco-score, and nutrition per 100g — from an EAN or UPC barcode.

## Facts

- Endpoint: GET https://agentrxi.com/v1/barcode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-barcode-lookup-open-food-facts-2eb06c33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vn6Jd1QEv40O3AZHPhZDF

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 agentrxi-barcode-lookup-open-food-facts-2eb06c33
```

Example prompt: Can you look up the food product with barcode 5449000214911 and tell me its name, brand, allergens, Nutri-Score, and nutrition per 100g?

## When to prefer this

Use this endpoint when you need structured food product metadata from a physical barcode (EAN-13 or UPC-A/E), particularly for nutrition, allergen, or sustainability data on packaged foods. It is backed by Open Food Facts, the largest open food product database. Prefer this over general web search when you need machine-readable, structured nutritional fields rather than free-text descriptions.

## Known failure modes

- Barcode not found in Open Food Facts database — returns empty or 404-style response
- Incomplete product data — some fields (eco-score, NOVA) may be null if not yet crowdsourced
- Invalid barcode format — non-numeric or malformed code triggers validation error
- Product exists but has no nutritional data contributed yet

## How this service works

Product barcode lookup (Open Food Facts): name, brand, ingredients, allergens and traces, Nutri-Score, NOVA processing group, eco-score and nutrition per 100 g for packaged food from its EAN/UPC barcode.

## Output

Returns structured data for the scanned product including product name, brand, full ingredient list, allergens and traces, Nutri-Score grade, NOVA food processing group (1–4), eco-score, and detailed nutritional values per 100g (calories, fat, carbs, sugars, protein, salt, etc.).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "EAN or UPC digits"
      }
     }
    }
   },
   "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/agentrxi-barcode-lookup-open-food-facts-2eb06c33/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
