# IBAN Validator

> IBAN Validator is a paid API for AI agents from tools.rocketman.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Validates an IBAN string and extracts its country code, bank code, and check digits

## Facts

- Endpoint: GET https://tools.rocketman.dev/v1/iban/validate?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iban-validator-0d3194bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_of8QCE2hR5xpQ0k-jXze-

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 iban-validator-0d3194bc
```

Example prompt: Can you check whether the IBAN GB29NWBK60161331926819 is valid and tell me what country and bank code it corresponds to?

## When to prefer this

Use this endpoint when you need a quick, cheap, single-call IBAN validation that also returns parsed components (country, bank code, check digits) without setting up a local library or handling the complex IBAN checksum algorithm yourself. Ideal for payment flows, form validation, or data enrichment pipelines where IBAN accuracy is critical.

## Known failure modes

- IBAN with invalid check digits returns valid=false with an error message
- Malformed or empty IBAN string returns valid=false with an error description
- Unsupported or unknown country prefix may result in null bank_code or country
- Network or service errors may return non-200 HTTP responses

## How this service works

Use when you need to check whether an IBAN is valid and extract its country, bank code and check digits.

## Output

A JSON object with a boolean 'valid' field, a nullable 'country' string (ISO country code), a nullable 'bank_code' string, a nullable 'check_digits' string, and a nullable 'error' string explaining any validation failure.

## 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": [
      "iban"
     ],
     "properties": {
      "iban": {
       "type": "string",
       "description": "IBAN to validate, spaces allowed"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "valid",
      "country",
      "bank_code",
      "check_digits",
      "error"
     ],
     "properties": {
      "error": {
       "type": [
        "string",
        "null"
       ]
      },
      "valid": {
       "type": "boolean"
      },
      "country": {
       "type": [
        "string",
        "null"
       ]
      },
      "bank_code": {
       "type": [
        "string",
        "null"
       ]
      },
      "check_digits": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iban-validator-0d3194bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.rocketman.dev](https://www.zero.xyz/host/tools.rocketman.dev/llms.txt)
