zztools API Quickstart
Make your first zztools API call in five minutes: create a key, run a curl, read the envelope and error catalog, and wire up an MCP client.
Written by Faruq Zhao Updated 2026-10-31
The zztools API opens the authoritative data layer behind this site's financial and tax tools to developers, finance systems and AI agents. Bank-code resolution backed by central-bank registers, IBAN format and MOD-97 validation across 89 countries, reverse lookups across 110,000+ BIC/SWIFT institutions, SEPA scheme reachability, and live EU VAT verification through VIES — all callable over standard HTTP REST or the Model Context Protocol (MCP).
Every endpoint lives under the dedicated host https://api.zztools.org. Billing is a transparent credit system (basic lookups cost 1 credit per call), and the metering layer is built around a strong invariant: every request answered with HTTP ≥ 400 is refunded in full, automatically — you never pay for a call that didn't work.
Getting a key: the protected /v1 and /mcp endpoints require an API key. Register a free account, open the console's API key page, and create one. Every new account starts with a free monthly allowance.
Endpoints at a glance
The API is a small, orthogonal set of endpoints covering bank clearing and business tax verification:
The zztools API endpoint and billing matrix
| Endpoint | Method | What it answers | Typical cost |
|---|---|---|---|
/v1/banks |
GET | Which bank holds a national bank code (BLZ, sort code, ABI, …), with name, BIC, LEI and SEPA reachability | 1 credit / call |
/v1/iban |
GET | Is this IBAN structurally valid — MOD-97, BBAN split, plus Germany's 91 national check-digit methods | 1 credit / call |
/v1/bic |
GET | Which institution owns a BIC/SWIFT code (BIC8 and BIC11 both resolve) | 1 credit / call |
/v1/scl |
GET | Does this BIC reach the SEPA schemes (SCT, SDD, COR1, B2B, SCC), per the Bundesbank SCL Directory (a non-binding excerpt) | 1 credit / call |
/v1/vat |
GET | Is an EU VAT number format-valid; with live=1, what does the EU's VIES say about it right now |
offline 1 / live 2 credits |
/v1/banks/batch |
POST | Up to 100–1,000+ bank codes per request, deduplicated and billed per unique item | per deduplicated item |
/v1/iban/batch |
POST | Bulk IBAN format, checksum and bank attribution | per deduplicated item |
/mcp |
POST / SSE | The same tools for AI agents (Claude Desktop, Cursor, …) over Streamable HTTP | same as REST; handshake free |
The quickstart
Three standard steps; you can be done in five minutes, locally or in production.
Get a key and export it
Log in to the console, open API keys, and create one. The key is a 32-character secret starting with zzk_.
Keys are stored as salted Argon2id hashes — the full key is shown exactly once, at creation; afterwards the console shows only an 8-character prefix. Lose it and you revoke and re-create. Put it in an environment variable:
export ZZTOOLS_KEY=zzk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Make your first call
From a terminal, query a German Bankleitzahl — 37040044 is Commerzbank AG:
curl -s -H "Authorization: Bearer $ZZTOOLS_KEY" \
"https://api.zztools.org/v1/banks?cc=DE&code=37040044"
Embedding it in application code looks the same everywhere. Node.js (native fetch):
const apiKey = process.env.ZZTOOLS_KEY;
const response = await fetch("https://api.zztools.org/v1/banks?cc=DE&code=37040044", {
headers: {
"Authorization": `Bearer ${apiKey}`,
"Accept": "application/json"
}
});
const payload = await response.json();
if (payload.ok) {
console.log(`Bank: ${payload.data.name}, BIC: ${payload.data.bic}`);
} else {
console.error(`Failed [${payload.code}]: ${payload.message}`);
}
Python (requests):
import os
import requests
api_key = os.environ.get("ZZTOOLS_KEY")
headers = {"Authorization": f"Bearer {api_key}"}
params = {"cc": "DE", "code": "37040044"}
resp = requests.get("https://api.zztools.org/v1/banks", params=params, headers=headers)
data = resp.json()
if data.get("ok"):
bank = data["data"]
print(f"Bank: {bank['name']}, BIC: {bank['bic']}")
else:
print(f"Miss or error: {data.get('message')}")
Go (net/http):
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
type BankResponse struct {
OK bool `json:"ok"`
Code int `json:"code"`
Message string `json:"message"`
Data struct {
Name string `json:"name"`
BIC string `json:"bic"`
LEI string `json:"lei"`
} `json:"data"`
}
func main() {
req, _ := http.NewRequest("GET", "https://api.zztools.org/v1/banks?cc=DE&code=37040044", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("ZZTOOLS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var result BankResponse
if err := json.NewDecoder(res.Body).Decode(&result); err == nil && result.OK {
fmt.Printf("Bank: %s, BIC: %s\n", result.Data.Name, result.Data.BIC)
}
}
Read the envelope
Every REST endpoint answers with the same five-field envelope — stable and easy to automate on:
{
"ok": true,
"code": 0,
"message": "success",
"data": {
"country": "DE",
"country_name": "DE",
"bank_code": "37040044",
"name": "COMMERZBANK AG",
"bic": "COBADEFFXXX",
"source": "official register: Deutsche Bundesbank",
"lei": "851WYGNLUQLFZBSYGB56",
"sepa": {
"bic": "COBADEFF",
"name": "COMMERZBANK AG",
"sct": true,
"sdd": true,
"cor1": false,
"b2b": true,
"scc": true
}
},
"meta": {
"api_version": "1.0",
"ts": 1793156103375
}
}
Authentication and credential hygiene
The API takes an industry-standard Bearer token, or a custom header:
Authorization: Bearer zzk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
or, equivalently:
X-API-Key: zzk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Never pass the key in a URL query parameter. The platform deliberately does not support
?api_key=.... Query strings end up in gateway logs, CDN monitoring, browser history and reverse-proxy access logs — a request header is the baseline for keeping a credential safe. - Scope and lifecycle: a key belongs to your main account, works everywhere at once, and revokes globally within milliseconds of you revoking it in the console. Completed lookups are unaffected.
- Read-only by design: every endpoint here is a side-effect-free read, so retrying after a network glitch never duplicates anything.
The envelope and the error model
Success or failure, the response body is always the same structured JSON:
Envelope fields
| Field | Type | Meaning |
|---|---|---|
ok |
boolean | Success indicator. true only when code === 0; false otherwise |
code |
integer | Numeric status: 0 on success; a specific business code otherwise — branch on this field |
message |
string | A stable machine-readable identifier (invalid_iban_format, insufficient_credits) for automated triage |
data |
object / null | The payload on success; null on a miss or failure |
meta |
object | Protocol version (api_version: "1.0") and the server's Unix-millisecond timestamp ts |
Two parsing rules worth knowing
- Absent fields are omitted, never nulled. If a bank has no LEI on record, the
leikey is simply not in the JSON tree — the API never backfillsnullor empty strings. - The
sourcefield is a provenance label. On bank lookups it states where the answer came from —official register: Deutsche Bundesbank, orcomposite map (not an official register). High-stakes pipelines can route on it.
The full error catalog
zztools API business codes and what to do about them
code |
message |
HTTP | Cause and remedy |
|---|---|---|---|
0 |
success |
200 OK | The request worked |
1001 |
invalid_country_code |
400 Bad Request | Country code must be a two-letter ISO 3166-1 alpha-2 |
1002 |
missing_country_code |
400 Bad Request | Required cc / country parameter missing |
1003 |
missing_bank_code |
400 Bad Request | Required code / bank_code parameter missing |
1004 |
invalid_iban_format |
400 Bad Request | IBAN has a wrong length, illegal characters, or an unsupported country prefix |
1005 |
iban_checksum_invalid |
400 Bad Request | MOD-97 checksum failed — the number is mistyped |
1006 |
missing_bic |
400 Bad Request | Required bic parameter missing |
1007 |
invalid_request_body |
400 Bad Request | POST body is not valid JSON or has the wrong shape |
1008 |
batch_empty |
400 Bad Request | Batch list contained no items |
1009 |
batch_too_large |
400 Bad Request | Batch exceeded your plan's per-request cap (100 on the free tier) |
2001 |
bank_not_found |
404 Not Found | The register doesn't list this bank code (or it was retired) — refunded |
2002 |
bic_not_found |
404 Not Found | No institution matches this BIC — refunded |
2003 |
country_not_found |
404 Not Found | No clearing table on file for this country |
2004 |
scl_not_found |
404 Not Found | This BIC isn't on the Bundesbank SCL Directory excerpt — refunded |
2005 |
missing_vat |
400 Bad Request | Required vat parameter missing |
2006 |
invalid_vat_format |
400 Bad Request | Prefix isn't an EU-27/XI country, or the format check failed |
2007 |
vies_unavailable |
502 Bad Gateway | The EU's VIES is down or timing out — retry later, refunded |
3002 |
missing_api_key |
401 Unauthorized | No Authorization or X-API-Key header on the request |
3003 |
invalid_api_key |
401 Unauthorized | Key revoked, expired, or mistyped |
3004 |
insufficient_credits |
402 Payment Required | Balance exhausted — top up or buy a pack |
3005 |
rate_limited |
429 Too Many Requests | Over your plan's rate — honor Retry-After |
3006 |
free_quota_exceeded |
402 Payment Required | This month's free allowance is spent; resets next month or upgrade |
9001 |
internal_error |
500 Internal Error | Server-side failure — refunded; contact support if it persists |
The guarantee: failures refund automatically
The metering layer works on a pre-debit, post-settle pattern — refunds aren't a support ticket, they're a state machine:
- Pre-debit. The gateway prices the request (1 credit for a single lookup) and debits the in-memory ledger; an empty balance gets the request rejected outright with
402 Payment Required. - Post-settle. When the handler finishes, the middleware inspects the HTTP status. Anything ≥ 400 — a 400 validation error, a 404 on an unknown bank code, a 500 — triggers an atomic, full refund of the pre-debited credits.
- Only real work bills. A lookup that completed and answered 200 is the only thing that stays charged.
Rate limits and concurrency
The platform combines per-key token buckets with a network-layer flood control:
Rate limits by plan
| Plan | Sustained per key | Burst | Batch cap | Free monthly allowance |
|---|---|---|---|---|
| Free | 5 req/s | 15 req | 100 items / request | 500 calls / month |
| Starter | 100 req/s | 300 req | 1,000 items / request | credits per subscription month |
| Pro | unmetered | unlimited | body-size bound (2 MB) | large monthly credit allotment |
| Developer | unmetered | unlimited | body-size bound (2 MB) | dedicated credits, custom terms |
- The IP-layer gate: unauthenticated traffic gets 20 req/s with a burst of 60, keeping the cluster stable under floods.
- 429 backoff: when a limit trips you get
429 Too Many Requestswith a standardRetry-After: 30header — sleep for it rather than hammering.
AI agents and MCP
zztools natively supports the open Model Context Protocol (MCP) over Streamable HTTP at https://api.zztools.org/mcp — the full bank and VAT toolkit, loadable by Claude Desktop, Cursor, Cline and friends with no glue code.
Client configuration
Add this to your client's MCP config (claude_desktop_config.json or Cursor's MCP settings):
{
"mcpServers": {
"zztools": {
"url": "https://api.zztools.org/mcp",
"headers": {
"Authorization": "Bearer zzk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
The five tools
The server exposes five tools, one per REST endpoint:
lookup_bank(country: string, bank_code: string): the bank behind a national code — name, BIC, LEI, SEPA schemes.parse_iban(iban: string): full structural parse — checksum, BBAN split, bank attribution, German check digits.lookup_bic(bic: string): the institution behind a BIC8 or BIC11.check_sepa(bic: string): SCT/SDD/B2B reachability per the Bundesbank SCL Directory.validate_vat(vat: string): format check plus live VIES verification, returning the registered name and address.
Billing over MCP
- The handshake is free:
initialize,tools/list, keepalive pings and SSE stream monitoring cost nothing. tools/callbills like REST: 1 credit (2 for live VAT), same as the equivalent HTTP call.- Errors surface as
isError: trueinside the standard envelope, so a model can read the context ("the VAT number is missing its country prefix"), correct its input and retry — without the protocol falling over.
Production practices
Never expose the key client-side
A key shipped in a web page, mobile app or mini-program is one DevTools inspection away from public. Call zztools from your own backend, BFF or cloud functions, and let your server do the auth.
Route on the `source` field
For high-stakes settlement or cross-border compliance, let bank.source decide the lane: an official register answer can pass straight through; a composite map answer can flag a human review.
Prefer the batch endpoints
Validating hundreds of rows one GET at a time is the slow way. /v1/iban/batch and /v1/banks/batch do the work in one HTTP round trip — and deduplicate before billing.
Retry with backoff, honor the headers
Reads are idempotent, so retry freely on timeouts and 5xx — with jittered exponential backoff. On 429, wait exactly what Retry-After says.
FAQ
Can I try the API without registering?
The on-site tools (IBAN validator and friends) run on an anonymous, rate-limited same-origin endpoint — you can use them in a browser without an account. The public /v1 and /mcp interfaces on api.zztools.org are key-protected. Registration takes seconds and comes with a free monthly allowance.
Can I call it directly from a browser front end?
Technically CORS could be configured; in production, strongly discouraged — it means shipping your key to every visitor. The same-origin web endpoints exist for the site's own pages and carry Referer and CSRF protection. Third-party integrations go through a server you control.
Is there a sandbox environment?
No separate one — the production system runs on in-memory indexes and answers in milliseconds. With the ≥ 400 refund guarantee and the free allowance on new accounts, you can integrate against the live endpoints directly; the console shows every charge and reversal in real time.
How does a failed batch item bill?
Batch endpoints bill per processed item in the request body. If the whole request fails (malformed JSON, too large) it returns HTTP 400 and the entire request is refunded to zero. If it succeeds, the response array states each item's verdict individually.
Do you offer private deployments?
For institutions with network-isolation or compliance requirements, the bank reference data and validation engine can be deployed on-premises as a Docker image or standalone binary. Contact support for enterprise terms and dedicated capacity.
Further reading
- IBAN & bank data API reference — every endpoint's parameters, response fields, BBAN split rules and error codes.
- VAT validation API reference — the 27-country offline rules, live VIES lookup and the consultation identifier.
- Pricing and plans — free allowances, subscription tiers and credit packs.
- Contact — integration questions, custom requirements and data corrections.
Tools used in this guide
IBAN Validator
Check and validate IBANs from 89 countries free online. MOD-97 and BBAN checks run in your browser; bank name, BIC and SEPA status are looked up via our API.
IBAN Calculator
German IBAN calculator: enter the BLZ bank code and account number to get a compliant 22-character IBAN with MOD-97 check digits. Built in your browser; bank lookup via our API.
EU VAT Number Validator
Validate EU VAT numbers online: 27-state format rules checked offline, a live VIES query for registration status, name, address and a consultation identifier. Free, no signup.
More guides
How Minecraft Locator Bar Colors Are Calculated (Java and Bedrock)
Where locator bar colors come from: the UUID hash on Java Edition, the join-order assignment on Bedrock, the Xbox ID mapping through Geyser, and the /waypoint syntax.
HEIC and JPEG: What iPhone HEIC Files Are and When to Convert Them
How the HEIF container relates to HEVC, why Apple chose it, how it compares with JPEG on size and compatibility, when conversion is mandatory, and how to convert in bulk offline.
Passport and Visa Photo Requirements: Pixels, DPI and File Size Limits
Why ID photos fail at the last step: print sizes to pixels, where 50 KB and 100 KB limits come from, why some are ranges not caps, and how to hit one without losing the face.