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.

FileHoldsCoverage
/data/countries.jsonEvery country/territory record in one fetch127 records: the 105 countries and territories of SWIFT's IBAN Registry, plus 22 additional recognised formats
/data/countries/{cc}.jsonOne record, same code as /iban/{cc}/One file per record above
/data/algorithm.jsonThe mod-97 check-digit rule, the field-assembly rule, which national checks this site validates and where, the territory ruleApplies to every record
/data/banks/{cc}.jsonBank code → bank name, plus address and BIC where an entry has them19 countries and territories, checked between 2026-10-21 and 2026-11-05

A complete example: Germany

  1. Fetch /data/countries/de.json. It names domestic_fields (blz, 8 digits; account, up to 10 digits) and assembly (the BBAN order: blz then account).
  2. Fetch /data/algorithm.json for the field-assembly rule: left-pad each value to its length.max and concatenate in assembly order. Input blz=37040044, account=532013000 (padded to 0532013000) gives the BBAN 370400440532013000.
  3. 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.
  4. 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_code differs from its own code. It uses its covering country's IBANs and has no domestic_fields of its own, so build and validate with the covering country's record. /data/algorithm.json states the territory rule.
  • Where a country's domestic_fields and assembly are both empty, no domestic field mapping is published here for it, though its bban_structure still describes the BBAN shape. A territory has no mapping and a null bban_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.json has no bank file.
  • A null national_check means 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. See national_checks.null_means in /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.