# Barcode Lookup (UPC/EAN) via Open Food Facts & UPC ItemDB

> Barcode Lookup (UPC/EAN) via Open Food Facts & UPC ItemDB is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-14).

Look up product information by UPC or EAN barcode, returning product name, brand, nutrition facts, and images.

## Facts

- Endpoint: GET https://api.strale.io/x402/barcode-lookup
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-7aed2dfb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iPJ2lkU3q5S3coJwobOvF

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 api-strale-io-7aed2dfb
```

Example prompt: Can you look up the product info for barcode 049000028911 — I want to know the name, brand, and nutrition facts?

## When to prefer this

Use this endpoint when you need to identify a physical product by its UPC or EAN barcode, especially for food and grocery items where nutrition data is valuable. Prefer this over manual product databases when you need aggregated data from both Open Food Facts and UPC ItemDB in a single call.

## Known failure modes

- Barcode not found in either database — returns empty or null product data
- Invalid barcode format — schema requires a barcode string query parameter
- Payment not completed (x402 protocol) — returns 402 status before data is delivered
- Upstream Open Food Facts or UPC ItemDB unavailable — may return partial or error response

## How this service works

Look up product information by UPC/EAN barcode. Uses Open Food Facts and UPC ItemDB. Returns product name, brand, nutrition, images.

## Output

Returns product name, brand name, nutritional information, and product images sourced from Open Food Facts and UPC ItemDB for the queried barcode.

## Example request

```json
{
 "barcode": "049000028911"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "barcode"
 ],
 "properties": {
  "barcode": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "brand": {
  "type": "string"
 },
 "found": {
  "type": "boolean"
 },
 "barcode": {
  "type": "string"
 },
 "nutrition": {
  "type": "object"
 },
 "product_name": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-7aed2dfb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
