# relay402 Product Barcode Lookup

> relay402 Product Barcode Lookup is a paid API for AI agents from relay402.georgespring.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-16).

Looks up product information by UPC/EAN/GTIN barcode, returning product details for a given barcode number, with payment via x402 USDC on Base.

## Facts

- Endpoint: GET https://relay402.georgespring.workers.dev/api/product-barcode
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relay402-product-barcode-lookup-ff5ce0be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jDt0X6Qycxz85C7Yew34e

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 relay402-product-barcode-lookup-ff5ce0be
```

Example prompt: Can you look up what product this barcode is — 012345678905?

## When to prefer this

Use this endpoint when an agent needs to identify or enrich product data from a barcode (UPC-A, EAN-8, EAN-13, GTIN-14) without requiring API key registration or a subscription. Ideal for lightweight, pay-per-use scenarios where you only need occasional barcode lookups and want to avoid upfront commitment. The x402 micropayment model at $0.008/call makes it cost-effective for low-volume or sporadic lookups. Prefer alternatives if you need bulk barcode resolution, guaranteed database coverage, or richer product catalogs.

## Known failure modes

- Barcode not found in product database — unknown or obscure products may return no results
- Invalid barcode format (must be 8–14 digits) returns a validation error
- Payment failure or insufficient USDC balance causes request rejection
- Network or worker downtime at the Cloudflare edge may cause transient failures
- Barcode exists but product record is incomplete or missing key fields

## How this service works

Resolves an EAN/UPC/GTIN barcode (8-14 digits) to product data: name, brands, quantity, categories, Nutri-Score and image, from the Open Food Facts database (3M+ products, ODbL). For commerce, inventory and shopping agents scanning or comparing physical products.

## Output

Returns structured product information associated with the given barcode, which may include product name, brand, category, description, and other metadata linked to the UPC/EAN/GTIN code. The response is delivered after micropayment of $0.008 USDC on Base via the x402 protocol — no API key required.

## 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",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "barcode"
     ],
     "properties": {
      "barcode": {
       "type": "string",
       "pattern": "^\\d{8,14}$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relay402-product-barcode-lookup-ff5ce0be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay402.georgespring.workers.dev](https://www.zero.xyz/host/relay402.georgespring.workers.dev/llms.txt)
