USE OPENIBAN

Hosted API.
Or your own instance.

Validate IBAN format and checksum and retrieve the bank name and, where available, the BIC. Bank lookup depends on the supported country and an active matching record. Choose the public API or run the GitHub code yourself.

1. Use the hosted API

No installation, registration or API key is required by the current public service. Send a POST request to https://api.openiban.eu/v1/validate, with the IBAN in the JSON body. Never put IBANs in URL parameters.

Interactive API documentation ↗ · Supported countries ↗

cURL · hosted API
curl -sS 'https://api.openiban.eu/v1/validate' \
  -H 'Content-Type: application/json' \
  -d '{"iban":"DE58 1234 5678 0123 4567 89"}'

Python

Uses the Python standard library; no additional package is required.

Python · hosted API
import json
from urllib.request import Request, urlopen
from urllib.error import HTTPError, URLError

# Synthetic example: not a real bank or account relationship.
request = Request(
    "https://api.openiban.eu/v1/validate",
    data=json.dumps({"iban": "DE58 1234 5678 0123 4567 89"}).encode(),
    headers={"Content-Type": "application/json"},
    method="POST",
)
try:
    with urlopen(request, timeout=10) as response:
        result = json.load(response)
    print("Format and checksum:", result["iban_valid"])
    print("Bank lookup:", result["bank_lookup_status"])
    print("Bank details:", result["bank"])
    print("Bank code valid:", result["bank_code_valid"])
except HTTPError as error:
    if error.code == 429:
        print("Rate limit reached. Wait before retrying.")
    else:
        print(f"HTTP error: {error.code}")
except URLError:
    print("Could not reach the service.")
except (ValueError, UnicodeDecodeError):
    print("Could not read the response as JSON.")

JavaScript

Server-side example for Node.js 18+. Browser use depends on the API’s CORS configuration; these examples do not assume cross-origin browser access.

JavaScript · Node.js 18+
// Run on your server with Node.js 18+ (built-in fetch).
// Synthetic example: not a real bank or account relationship.
async function validateIban(iban) {
  const response = await fetch("https://api.openiban.eu/v1/validate", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ iban }),
    signal: AbortSignal.timeout(10000),
  });
  if (response.status === 429) {
    throw new Error("Rate limit reached. Wait before retrying.");
  }
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
  return response.json();
}

validateIban("DE58 1234 5678 0123 4567 89")
  .then(result => {
    console.log("Format and checksum:", result.iban_valid);
    console.log("Bank lookup:", result.bank_lookup_status);
    console.log("Bank details:", result.bank);
    console.log("Bank code valid:", result.bank_code_valid);
  })
  .catch(error => console.error(error.message));

Bank details as well as validation

A successful bank lookup returns the bank name and available bank details in bank. A valid IBAN checksum alone does not guarantee a bank match: check bank_lookup_status and handle bank: null.

Read the validation fields, not just the HTTP status

Documented response fields
FieldMeaning
iban_validFormat and IBAN checksum result; null for unsupported countries.
bank_lookup_statusfound, not_found, deleted, not_checked, unavailable or stale.
bank_code_validWhether the bank code is valid in the active dataset; null if not verifiable.
bankBank details, including the bank name and available BIC, for an active match; otherwise null.
dataDataset version and provenance; otherwise null.

HTTP 200 also covers invalid IBANs and missing bank data. Evaluate the result fields. HTTP 422 indicates an invalid request format; 413 means the body is too large; 400 covers unsupported query parameters. On HTTP 429, wait and use only a limited number of retries.

2. Get the code and self-host

Use the GitHub repository to run your own OpenIBAN instance. The code is MIT-licensed; bank data remains subject to its source’s terms.

Start locally with Python 3.12

Shell · local development
git clone https://github.com/klammerauf/openiban.eu.git
cd openiban.eu
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements-dev.lock
python -m pip install --no-deps -e .
openiban init-db
uvicorn openiban.api:app --host 127.0.0.1 --port 8000 --no-access-log

On Windows PowerShell, activate the environment with .venv\Scripts\Activate.ps1. These commands start a local development server, not a complete production deployment.

Keep bank names and BICs up to date

The German automatic update workflow checks Bundesbank releases daily, validates new datasets and activates approved versions from their validity start date. Unusual changes require review. For your own instance, follow the automatic update installation and monitoring instructions. The workflow updates bank reference data, not customer accounts or individual IBANs.

Import bank data before bank lookup

Format and checksum validation work before importing data. Bank lookup reports unavailable until you import and activate a dataset. Follow the repository’s Bundesbank import instructions, use the validity dates for the downloaded file, review the import and activate its version. Production hosting also requires HTTPS, rate limiting and ongoing updates.

To call your local instance, replace the hosted endpoint in the examples with http://127.0.0.1:8000/v1/validate.

Full setup and data import instructions ↗

Examples based on the repository README, checked 27 October 2026. Consult the interactive documentation for the current service contract.