# UPC / EAN Barcode Lookup

> UPC / EAN Barcode Lookup is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Validates a UPC/EAN/GTIN barcode checksum offline and looks up product details on Open Food Facts for food and consumer items.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/upc-lookup
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/upc-ean-barcode-lookup-2c939188
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FaN1ZwIzp6H9mWxF6e1-C

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 upc-ean-barcode-lookup-2c939188
```

Example prompt: Can you look up the barcode 3017620422003 and tell me what product it is and whether the checksum is valid?

## When to prefer this

Use this endpoint when you need to identify a consumer product from its UPC, EAN, or GTIN barcode — especially for food items where Open Food Facts coverage is strong. It is a cost-effective single-call solution combining offline checksum validation with a live product lookup, making it ideal for lightweight product identification without needing a paid barcode database subscription.

## Known failure modes

- Valid checksum but no product found (common for non-food/industrial barcodes)
- Invalid barcode digits fail checksum validation immediately
- Malformed or non-numeric input rejected
- Product exists but Open Food Facts has no data for it
- Network timeout on Open Food Facts lookup

## How this service works

Validate UPC/EAN/GTIN checksum offline, then look up the barcode on Open Food Facts when it is a food/consumer item. Non-food codes often checksum-ok with no product match.

## Output

Returns whether the barcode checksum is valid (offline check), and if the code matches a food/consumer item, returns product details from Open Food Facts such as product name, category, and other available metadata. Non-food barcodes may pass checksum validation but return no product match.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Barcode 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/upc-ean-barcode-lookup-2c939188/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
