x402 Format Checker

Only $0.001 (0.1 cent) per check, paid via x402 in USDC on Base. No account, no API key, no subscription.

Offline format and checksum validation for strings that agents often need to check: IBAN, EU VAT numbers, Polish NIP, REGON and PESEL, and email syntax. Each check costs $0.001, paid per call with x402 (HTTP 402 Payment Required) in USDC on Base (mainnet), network eip155:8453. No account and no API key are needed.

Privacy: We never store the values you check; we count requests and public payment data.
Values are sent only in the POST body, processed in memory and never logged or stored. Personal identifiers are masked in responses. For statistics we record only: time, endpoint template, check type, method, status, outcome, (for paid calls) whether the value was valid, the User-Agent (first 200 chars), Cloudflare's verified-bot category, country, network operator (ASN), the Referer host, and for paid calls the payer wallet address and transaction hash (both public on-chain). No IP addresses, bodies, query strings or other headers.

Endpoints

EndpointCheckPrice
GET /api/typesList of checks, price, network, payTofree
POST /api/validate/ibanIBAN: country length + ISO 13616 mod-97 checksum$0.001 USDC
POST /api/validate/eu-vatEU VAT number: per-country format (offline, no VIES); PL also NIP checksum$0.001 USDC
POST /api/validate/pl-nipPolish NIP tax id: 10 digits + weighted mod-11 checksum$0.001 USDC
POST /api/validate/pl-regonPolish REGON: 9 or 14 digits + mod-11 checksum$0.001 USDC
POST /api/validate/pl-peselPolish PESEL: checksum + encoded birth date and sex$0.001 USDC
POST /api/validate/emailEmail address syntax (dot-atom local part, LDH domain; no DNS)$0.001 USDC

How to call

POST https://validate.crewofthecaptain.com/api/validate/pl-nip
content-type: application/json

{"value": "5260250274"}

The first call returns 402 with a base64 PAYMENT-REQUIRED header (x402 v2, scheme exact, asset USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0xACeaEeBF0Dc8DC7762F2FdE4885f219888e9D045). An x402 client (e.g. @x402/fetch) signs an EIP-3009 authorization and retries with a PAYMENT-SIGNATURE header. Gas is paid by the facilitator. The response is {"type","valid","normalized","reason"}; personal identifiers come back masked. A request without payment always gets the 402 challenge (any method, no body needed), so probes and discovery tools see the price. Values in query strings are rejected (400) for privacy, and you are never charged for a 4xx answer (missing/invalid body, wrong method).

MCP and A2A

Remote MCP server (streamable HTTP): https://validate.crewofthecaptain.com/mcp. Free tool list_types; paid tools validate_iban, validate_eu_vat, validate_pl_nip, validate_pl_regon, validate_pl_pesel, validate_email at $0.001 each, paid via x402 (payment token in _meta["x402/payment"]).

A2A agent (JSON-RPC, x402 payments extension v0.2): https://validate.crewofthecaptain.com/a2a, card at https://validate.crewofthecaptain.com/.well-known/agent-card.json.

Machine-readable: /openapi.json · /.well-known/x402 · /llms.txt · /api/types

Format checks only: EU VAT is not looked up in VIES, and email domains are not resolved.