# IBAN Validator (x402 Pay-per-call)

> IBAN Validator (x402 Pay-per-call) is a paid API for AI agents from agentkit-x402.zenith-ops.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Validates an IBAN number and returns its parsed components including country, check digits, BBAN, formatted and normalized forms, and any validation errors.

## Facts

- Endpoint: GET https://agentkit-x402.zenith-ops.workers.dev/v1/iban?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iban-validator-x402-pay-per-call-73f4757e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xosFnBqx1WxddFappeF9P

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-x402-pay-per-call-73f4757e
```

Example prompt: Can you check if this IBAN is valid: GB82 WEST 1234 5698 7654 32? I need to know the country it belongs to and whether the format and check digits are correct before I send a payment.

## When to prefer this

Choose this endpoint when you need a fast, no-signup, pay-per-call IBAN validation with structured output including country, BBAN, and formatting — especially in agent workflows where managing API keys is impractical. Prefer it for one-off or low-volume checks billed in USDC micro-payments via x402 on Base.

## Known failure modes

- Missing `iban` query parameter returns an error response
- Completely malformed input (non-IBAN string) returns valid=false with descriptive errors array
- Unknown or unsupported country code may return valid=false
- Payment not included or insufficient USDC triggers x402 payment-required response (HTTP 402)
- Network timeout on Cloudflare Worker edge

## How this service works

Pay-per-call API for AI agents with no signup or API key. Email validation, SPF/DMARC audits, DNS lookup, site contacts, URL to Markdown, IBAN and Swedish personnummer/orgnr validation. From $0.001 in USDC on Base via x402.

## Output

A JSON object containing: `valid` (boolean), `errors` (array of validation error strings, empty if valid), `country` (ISO 3166-1 alpha-2 country code), `check_digits` (2-digit string), `bban` (Basic Bank Account Number string), `formatted` (space-grouped IBAN string, e.g. 'GB82 WEST 1234 5698 7654 32'), and `normalized` (compact IBAN without spaces).

## 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-x402-pay-per-call-73f4757e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.zenith-ops.workers.dev](https://www.zero.xyz/host/agentkit-x402.zenith-ops.workers.dev/llms.txt)
