For machines and AI agents
IBANGuardian has no server API. Every calculation the checker and calculator perform runs in the visitor's browser, so no account number is ever sent to us. An agent can do the same: fetch the data below and compute in its own environment, or use the pages like a person through the same labelled forms.
Start here
/data/index.json is the entry point. It gives the paths of the country files and the algorithm file. For the bank files, use the path pattern in the last row of the table below.
| File | Holds | Coverage |
|---|---|---|
/data/countries.json | Every country/territory record in one fetch | 127 records: the 105 countries and territories of SWIFT's IBAN Registry, plus 22 additional recognised formats |
/data/countries/{cc}.json | One record, same code as /iban/{cc}/ | One file per record above |
/data/algorithm.json | The mod-97 check-digit rule, the field-assembly rule, which national checks this site validates and where, the territory rule | Applies to every record |
/data/banks/{cc}.json | Bank code → bank name, plus address and BIC where an entry has them | 19 countries and territories, checked between 2026-10-21 and 2026-11-05 |
A complete example: Germany
- Fetch
/data/countries/de.json. It namesdomestic_fields(blz, 8 digits;account, up to 10 digits) andassembly(the BBAN order:blzthenaccount). - Fetch
/data/algorithm.jsonfor the field-assembly rule: left-pad each value to itslength.maxand concatenate inassemblyorder. Inputblz=37040044,account=532013000(padded to0532013000) gives the BBAN370400440532013000. - Compute the two check digits with the same file's ISO/IEC 7064 MOD 97-10 rule. The result is
DE89 3704 0044 0532 0130 00. - Expected result: a structurally valid German IBAN for Commerzbank, routing code 37040044 (verified live against this site's own checker, 2026-11-12; a formally valid IBAN does not prove the account exists or who holds it).
A failing input to try: take the IBAN above and change one digit of its BBAN part. The mod-97 remainder will no longer equal 1, so the IBAN is not well formed. /data/algorithm.json documents the validation side of the same rule.
Fetching from a script
Most HTTP clients fetch these files without any setup. Python's urllib with its default User-Agent (tested as Python-urllib/3.12) does not: the network in front of this site returns a 403. Send your own User-Agent header, as below, or use another client.
import json, urllib.request
req = urllib.request.Request(
"https://ibanguardian.com/data/countries/de.json",
headers={"User-Agent": "my-app/1.0 (+https://example.org/contact)"},
)
with urllib.request.urlopen(req) as response:
record = json.load(response)What this data does not cover
- A territory is a record whose
iban_country_codediffers from its own code. It uses its covering country's IBANs and has nodomestic_fieldsof its own, so build and validate with the covering country's record./data/algorithm.jsonstates the territory rule. - Where a country's
domestic_fieldsandassemblyare both empty, no domestic field mapping is published here for it, though itsbban_structurestill describes the BBAN shape. A territory has no mapping and a nullbban_structure: use its covering country's record, as above. - Bank data exists only for the 19 countries and territories counted in the table above. Every entry carries the bank name; the address and BIC are optional. Every other record in
/data/countries.jsonhas no bank file. - A null
national_checkmeans the checker validates nothing beyond the IBAN's own mod-97 digits for that country. It does not mean the country defines no national check digit of its own. Seenational_checks.null_meansin/data/algorithm.json. - Nothing here verifies that an account exists or who holds it. A structurally valid IBAN is a structural fact, not proof of ownership. Only the bank can confirm that, for example through Verification of Payee.
Versions and attribution
The index, the country files and /data/algorithm.json open with the same envelope: schema_version (the version of the file shape; version holds the same value), generated_at (when the files were generated) and an attribution block that names what is ours and what is not. When an answer comes from our domestic field mapping, cite IBANGuardian, and keep the attribution the bank lists themselves require. Fetch once and cache: the bank lists will be re-checked against their sources once a month.
A summary for language models is at /llms.txt.