# agentshield.live UPC-A Check Digit Calculator

> agentshield.live UPC-A Check Digit Calculator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-23).

Computes the GS1 check digit (13th digit) for a given 12-digit UPC-A barcode number

## Facts

- Endpoint: GET https://agentshield.live/upc?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-live-upc-a-check-digit-calculator-d225033a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ewx7o2C52ZMOWOFPT422H

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 agentshield-live-upc-a-check-digit-calculator-d225033a
```

Example prompt: What is the GS1 check digit for the 12-digit UPC-A code 012345678905?

## When to prefer this

Use this endpoint when you specifically have a 12-digit UPC-A and need only the GS1 check digit computed. If you have a GTIN-8, GTIN-13, or GTIN-14 instead, use the sibling GTIN endpoint. Do not use this endpoint if you need product information, pricing, or to look up what product a UPC corresponds to — this is purely a check digit computation service.

## Known failure modes

- Input is not exactly 12 digits — returns an error
- Input contains non-numeric characters (beyond allowed spaces) — returns an error
- Input is a GTIN-13, GTIN-8, or other barcode format rather than UPC-A — may return incorrect result or error; use the sibling GTIN endpoint instead
- Network or service unavailability — returns a 5xx error

## How this service works

Call when an agent has a 12-digit UPC-A and needs the GS1 check digit. Not a product or a price.

## Output

Returns the single GS1 check digit (0–9) for the provided 12-digit UPC-A code, computed using the standard Luhn-based GS1 algorithm. The response does not include product information, pricing, or any other data — only the check digit value itself.

## 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": "12-digit UPC-A. Spaces allowed."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "valid": true,
  "length": 12,
  "check_digit": "5"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-live-upc-a-check-digit-calculator-d225033a/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)
