# EAN Barcode Checksum Validator

> EAN Barcode Checksum Validator is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-23).

Validates the checksum of an EAN-8 or EAN-13 barcode, auto-detecting the format by digit length.

## Facts

- Endpoint: POST https://x402.agentindex.world/validate/ean?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ean-barcode-checksum-validator-753d8613
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oaWoZIgEbZNRJKW3U96p5

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 ean-barcode-checksum-validator-753d8613 -d '<json body>'
```

Example prompt: Can you check if the barcode 5901234123457 has a valid EAN-13 checksum?

## When to prefer this

Use this endpoint when you need a fast, cheap, stateless checksum verification for EAN-8 or EAN-13 barcodes — ideal for pre-processing pipelines, catalog imports, or scanning workflows where you want to catch corrupted or manually-entered codes before database insertion.

## Known failure modes

- Invalid digit count (not 8 or 13 digits) causes rejection per schema pattern
- Non-numeric characters in the code string cause validation failure
- Correct length but invalid checksum returns a failed validation result
- Missing 'code' parameter causes a bad request error

## How this service works

EAN-8 or EAN-13 barcode checksum validation (auto-detected by length).

## Output

Returns whether the provided EAN-8 or EAN-13 barcode has a valid checksum, with the format auto-detected by the length of the digit string (8 or 13 digits).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "title": "Code",
   "pattern": "^[0-9]{8}$|^[0-9]{13}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "format": "EAN-13"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ean-barcode-checksum-validator-753d8613/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
