# EAN Barcode Checksum & GS1 Country Prefix Validator

> EAN Barcode Checksum & GS1 Country Prefix Validator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Validates the checksum of an EAN-8 or EAN-13 barcode and returns the GS1 country prefix associated with it.

## Facts

- Endpoint: GET https://agentshield.live/ean?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ean-barcode-checksum-gs1-country-prefix-validator-229eeadb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XCd45_UiNb1Yy_Hs9rJEA

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-gs1-country-prefix-validator-229eeadb
```

Example prompt: Can you validate this EAN-13 barcode for me — 5901234123457 — and tell me if the checksum is correct and which GS1 country prefix it belongs to?

## When to prefer this

Use this endpoint when you have a raw EAN-8 or EAN-13 barcode string and need to verify its check digit mathematically and identify the GS1 issuing country. It is not a product database lookup — prefer it for data validation, catalog hygiene, and supply chain integrity checks rather than price or product detail retrieval.

## Known failure modes

- Missing or empty 'code' query parameter returns an error
- Non-numeric characters in barcode cause validation failure
- Barcode length other than 8 or 13 digits returns an error
- Invalid or unrecognized GS1 prefix may return unknown country

## How this service works

Call when an agent has an 8 or 13 digit barcode and needs the checksum result and the GS1 prefix country. Does not confirm the product or a price.

## Output

Returns whether the EAN-8 or EAN-13 checksum is valid and identifies the GS1 country associated with the barcode's prefix. Does not look up or confirm any specific product or price.

## 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-8 or EAN-13 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/ean-barcode-checksum-gs1-country-prefix-validator-229eeadb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
