# IBAN Validator

> IBAN Validator is a paid API for AI agents from agentkit-x402.erikssonanton2001.workers.dev, paid per call via x402, $0.001/call, status down (last checked 2026-10-20).

Validates and parses an IBAN (International Bank Account Number), returning validity status, country, check digits, formatted and normalized representations, and any errors.

## Facts

- Endpoint: GET https://agentkit-x402.erikssonanton2001.workers.dev/v1/iban?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iban-validator-6a400e41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gFHzCK90HFW_fdEUtx4n-

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-6a400e41
```

Example prompt: Can you check whether GB82 WEST 1234 5698 7654 32 is a valid IBAN and tell me the country and formatted version?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call IBAN validation without setting up a dedicated banking SDK or subscription service. Ideal for AI agents that sporadically validate IBANs as part of a payment or onboarding workflow, since the $0.001 USDC per-call pricing means no wasted spend on idle subscriptions. Prefer this over free regex-only checks when you also need parsed output like BBAN, country, and formatted string.

## Known failure modes

- Missing `iban` query parameter returns an error response
- Invalid or malformed IBAN returns valid=false with a descriptive errors array
- Unsupported or unknown country prefix may return valid=false
- Payment failure (x402) if USDC balance is insufficient or wallet not configured

## How this service works

Email checks, DNS and email-authentication audits, website contact extraction, SEO audits, URL to Markdown and Swedish validators, paid per call in USDC with x402.

## Output

A JSON object with: `valid` (boolean), `errors` (array of validation error strings, empty if valid), `country` (ISO 2-letter country code), `formatted` (space-grouped human-readable IBAN), `normalized` (compact IBAN without spaces), `bban` (Basic Bank Account Number portion), and `check_digits` (2-digit checksum string).

## 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": [
      "iban"
     ],
     "properties": {
      "iban": {
       "type": "string",
       "description": "IBAN, spaces allowed."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bban": "WEST12345698765432",
  "valid": true,
  "errors": [],
  "country": "GB",
  "formatted": "GB82 WEST 1234 5698 7654 32",
  "normalized": "GB82WEST12345698765432",
  "check_digits": "82"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iban-validator-6a400e41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.erikssonanton2001.workers.dev](https://www.zero.xyz/host/agentkit-x402.erikssonanton2001.workers.dev/llms.txt)
