# ISIN Validator

> ISIN Validator is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Validates an ISIN code by checking structure regex and Luhn checksum, returning parsed components and validity status

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/validate/isin
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/isin-validator-c35eb1d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S_6I1vcmbQ7e6APVJPvIV

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 isin-validator-c35eb1d9
```

Example prompt: Can you check whether US0378331005 is a valid ISIN — I want to make sure the structure and check digit are correct before I route the order.

## When to prefer this

Choose this endpoint when you need a fast, purely deterministic, offline ISIN validation with no external dependency — ideal as a pre-flight check before routing orders or calling paid market-data APIs, where a bad ISIN would waste money or cause a rejected trade. Prefer over custom regex implementations because it also handles the Luhn base-36 checksum correctly.

## Known failure modes

- ISIN shorter or longer than 12 characters returns invalid with structural error
- Non-alphanumeric characters in ISIN cause regex failure and invalid result
- Correct structure but wrong Luhn check digit returns valid=false
- Missing isin query parameter returns 400 bad request
- Malformed request returns error response

## How this service works

Deterministic ISIN check before routing an order or paying a market-data API: structure regex (2-letter country or XS/EU, 9-char NSIN, check digit) and the Luhn checksum over the base-36 expansion. Query: ?isin=US0378331005. Returns valid, country_code, nsin, check_digit and is_international. A corrupted ISIN means a rejected order or the wrong instrument. Pure offline computation, 1y cache.

## Output

Returns a JSON object with: valid (boolean), country_code (2-letter ISO or XS/EU prefix), nsin (9-character national securities identifier), check_digit, and is_international (boolean indicating XS/EU prefix instruments).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "isin"
     ],
     "properties": {
      "isin": {
       "type": "string",
       "description": "ISIN to validate, 12 characters"
      }
     }
    }
   },
   "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/isin-validator-c35eb1d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
