# CAS Registry Number Check Digit Validator

> CAS Registry Number Check Digit Validator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.004/call, status unknown (last checked 2026-11-20).

Validates and returns the check digit for a given CAS Registry Number (CAS RN)

## Facts

- Endpoint: GET https://agentshield.live/cas?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cas-registry-number-check-digit-validator-2b35dcb0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8DQ0_dwXcpC_cm9dDGLKM

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 cas-registry-number-check-digit-validator-2b35dcb0
```

Example prompt: Can you validate the check digit for CAS number 64-17-5 and tell me if it's correct?

## When to prefer this

Use this endpoint when you have a CAS Registry Number and need to verify or compute its check digit algorithmically. It is a lightweight, deterministic validation endpoint — ideal for ETL pipelines, lab data entry validation, chemical database QA, or regulatory pre-checks. It does not confirm whether the substance actually exists in a registry, only that the check digit arithmetic is correct.

## Known failure modes

- Invalid or malformed CAS number format returns an error or invalid flag
- CAS number with wrong number of segments may fail parsing
- Non-numeric characters other than hyphens may cause rejection
- Network timeout on rare high-load scenarios

## How this service works

Call when an agent has a CAS Registry Number and needs the check digit. Does not confirm the substance.

## Output

A JSON object with three fields: 'valid' (boolean indicating whether the check digit is correct), 'known' (boolean indicating whether the CAS number is recognized), and 'check_digit' (a string with the expected check digit character).

## 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": "CAS Registry Number. Hyphens optional."
      }
     }
    }
   },
   "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,
  "check_digit": "5"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cas-registry-number-check-digit-validator-2b35dcb0/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)
