# IBAN Validator – Bulk IBAN Check, Bank Name & BIC Lookup (`gazidev/iban-validator`) Actor

Validate IBANs in bulk, offline: ISO 13616 mod-97 checksum, country length and format, national check digit, bank name and BIC from national registries, plus BIC/SWIFT syntax check. Lists, pasted text or a dataset column. $0.30 per 1,000 IBANs.

- **URL**: https://apify.com/gazidev/iban-validator.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 iban or bic checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## IBAN Validator – Bulk IBAN Check, Bank Name & BIC Lookup

Validate **thousands of IBANs in one run** and get, for every one: **valid / invalid** with a clear error code, the
**country format** check, the **national check digit** check, the **bank name and BIC** (where the national bank
registry has it), the IBAN split into **bank code, branch code and account number**, and whether the country is in
**SEPA**. You can also check **BIC / SWIFT codes** on their own.

Everything runs **offline** inside the Actor with the open-source [schwifty](https://github.com/mdomke/schwifty)
library (MIT). No IBAN is sent to a third-party API, there is no API key and no login. **$0.30 per 1,000 checks.**

### What it does

- **ISO 13616 IBAN validation**: allowed characters, country code, exact length per country, country-specific BBAN
  format, and the **mod-97 check digits** (ISO 7064). 127 country formats (105 from the SWIFT IBAN Registry and 22
  "experimental" formats used by some banks, flagged `isOfficialIbanCountry: false`).
- **National check digit** inside the account number for Belgium, Czech Republic, Estonia, Finland, France, Germany
  (bank-specific methods), Iceland, Italy, Norway, Poland, Portugal and Spain.
  An IBAN whose mod-97 is right but whose national digit is wrong is reported as `INVALID_NATIONAL_CHECKSUM` – the
  kind of typo a plain mod-97 check misses. Countries with a national digit that schwifty cannot verify say
  `notVerified`; countries without one say `notApplicable`.
- **Bank name and BIC (best effort)** from the bank registries bundled with schwifty, built from national
  bank-code publications for 47 countries (about 20,000 bank codes; best coverage in DE, UA, GB, IT, FR, CH, PL, AT, ES). Not every bank is listed: `bankFound: false` just means "not in the registry".
- **BIC / SWIFT syntax check** (ISO 9362): 8 or 11 characters, bank code, country, location, branch, head office or
  branch, test BIC, and the bank name where the registry knows the BIC.
- **Messy input is fine**: spaces, dashes, dots, lower case and an `IBAN:` prefix are removed. Paste a CSV, an e-mail
  or invoice text and every IBAN in it is found.
- **Chain with other Actors**: read IBANs (and optionally BICs) from any Apify dataset column.
- **Fast and cheap**: 100,000 IBANs take about half a minute.

### What this listing does that our siblings do not

This Actor checks **bank account numbers**. For the other parts of a customer or supplier record use our siblings:
[EU VAT Number Validator](https://apify.com/gazidev/eu-vat-validator) (live VIES check of VAT IDs),
[Phone Number Validator](https://apify.com/gazidev/phone-validator) and
[Email Syntax & MX Validator](https://apify.com/gazidev/email-syntax-mx-validator).

### Use cases

- **Payment files and payouts**: catch typos before a SEPA credit transfer or direct-debit batch is rejected.
- **Supplier and customer master data**: clean the IBAN column of your ERP or CRM export and fill in the missing BIC
  and bank name.
- **Sign-up and checkout forms**: re-check IBANs collected by a form, nightly or in bulk.
- **Data pipelines and AI agents**: one cheap call to tell real-looking IBANs from broken ones.

### Input

| Field | What it does |
|---|---|
| `ibans` | List of IBANs, one per line, any format |
| `bulkText` | Free text (CSV, invoices, e-mails); every upper-case IBAN in it is checked |
| `bics` | Optional list of BIC/SWIFT codes to check on their own |
| `datasetId` + `datasetField` | Read IBANs from a dataset field (dot paths such as `payment.iban` work) |
| `datasetBicField` | Optional: also check the BIC in this dataset field |
| `checkNationalChecksum` | Also check the national check digit (default on) |
| `deduplicate` | Check every value once (default on; duplicates are free) |
| `maxItems` | Stop after this many charged checks (0 = all) |

```json
{
  "ibans": ["GB82 WEST 1234 5698 7654 32", "DE89 3704 0044 0532 0130 00", "DE89 3704 0044 0532 0130 01"],
  "bics": ["DEUTDEFF"],
  "checkNationalChecksum": true
}
```

The default input uses only **public documentation examples** (Wikipedia and the SWIFT IBAN Registry), not real
customer accounts. One has a deliberate typo so you can see an invalid row.

### Output (one row per IBAN or BIC)

```json
{
  "type": "iban",
  "input": "DE89 3704 0044 0532 0130 00",
  "source": "input",
  "iban": "DE89370400440532013000",
  "ibanFormatted": "DE89 3704 0044 0532 0130 00",
  "isValid": true,
  "errorCode": null,
  "error": null,
  "nationalChecksum": "valid",
  "countryCode": "DE",
  "countryName": "Germany",
  "expectedLength": 22,
  "actualLength": 22,
  "checksumDigits": "89",
  "bban": "370400440532013000",
  "bankCode": "37040044",
  "branchCode": null,
  "accountNumber": "0532013000",
  "bankName": "Commerzbank",
  "bankShortName": "Commerzbank Köln",
  "bic": "COBADEFF",
  "bankFound": true,
  "isSepaCountry": true,
  "sepaSchemes": ["B2B", "COR", "SCC", "SCT"],
  "isOfficialIbanCountry": true
}
```

`errorCode` is one of `INVALID_COUNTRY`, `INVALID_LENGTH`, `INVALID_STRUCTURE`, `INVALID_CHECKSUM`,
`INVALID_NATIONAL_CHECKSUM` or `NOT_AN_IBAN`. For a checksum error the bank is still shown (from the bank code), so
you can see which bank the IBAN was meant for. BIC rows have `type: "bic"` with `bicInstitutionCode`, `countryCode`,
`bicLocationCode`, `bicBranchCode`, `isPrimaryOffice`, `isTestBic`, `bankFound`, `bankName` and `bankNames`.
The run summary (counts per error code and per country) is saved as `OUTPUT` in the key-value store.

### Limits (please read)

- **A valid IBAN is not proof that the account exists** or belongs to a given person. Only the bank (or a paid
  account-verification service such as Verification of Payee / Confirmation of Payee) can tell that. This Actor
  checks the structure and check digits, offline.
- **Bank names and BICs are best effort.** They come from the registries bundled with schwifty
  ([sources and update scripts](https://github.com/mdomke/schwifty/tree/main/schwifty/bank_registry)), compiled from
  public national bank-code lists and curated files. About 20,000 bank codes in 47 countries (largest: DE, UA, GB, IT,
  FR, CH, PL, AT, ES). Banks merge or change codes, smaller banks can be missing, and countries outside those 47 get
  no bank name. `bankFound: false` is not an error. The registry is as fresh as the schwifty version in the build
  (2026.11.3).
- Free-text extraction (`bulkText`) only finds upper-case IBANs; use the `ibans` list for lower-case values.
- BIC check = format + registry lookup. It does not query SWIFT, so a well-formed BIC that is not in the registry
  shows `isValid: true, bankFound: false`.

### Pricing

Pay per event, no subscription:

| Event | Price | When |
|---|---|---|
| Actor start | $0.00005 | once per run |
| IBAN or BIC checked | **$0.0003** | every IBAN or BIC that was checked, **valid or invalid** (the invalid answer is the result you pay for) |

**$0.30 per 1,000 checks.** Free: empty lines, duplicates, and values that do not even start with a country code and
two digits (`NOT_AN_IBAN`). If you set a maximum charge per run, the Actor stops cleanly at that limit and says so
in `OUTPUT`.

| Actor (Store, Nov 2026) | Price per 1,000 |
|---|---|
| **This Actor** | **$0.30** (+ national check digit, bank/BIC, BIC check, dataset input) |
| sterlingverify IBAN validator | $0.50 |
| maximedupre IBAN validator | $0.90 |

### FAQ

**Does it send my IBANs anywhere?** No. All checks run inside the Actor container; nothing is sent to an outside
service. The results are stored only in your own Apify dataset.

**Why is a German IBAN invalid even though the mod-97 is fine?** German banks use one of more than 100 check-digit
methods inside the account number. With `checkNationalChecksum` on, a wrong digit there is reported as
`INVALID_NATIONAL_CHECKSUM`. Turn the option off if you only want the ISO 13616 check.

**Can it find the BIC for any IBAN?** Only where the bank code is in the bundled registry (good coverage for most EU
countries, weaker elsewhere). Rows without a match keep `bic: null`.

**Can I generate or look up IBANs for a person or company?** No. It only checks the IBANs you supply.

### Use with AI agents / Apify MCP

Add this Actor to the [Apify MCP server](https://mcp.apify.com) (`gazidev/iban-validator`) and an agent can call it
with `{"ibans": ["..."]}` and read `isValid`, `errorCode`, `bankName` and `bic`. Each check costs $0.0003.
From code: `POST https://api.apify.com/v2/acts/gazidev~iban-validator/run-sync-get-dataset-items` with the same JSON.

# Actor input Schema

## `ibans` (type: `array`):

One IBAN per line, with or without spaces, any case. An `IBAN:` prefix is removed. The prefill uses public documentation examples (Wikipedia / SWIFT IBAN Registry); the last one has a deliberate typo.

## `bulkText` (type: `string`):

Every IBAN found in the text is checked (upper-case, printed with or without spaces). Other words are ignored.

## `bics` (type: `array`):

Optional: BIC/SWIFT codes (8 or 11 characters) to check on their own: syntax, country, branch, and the bank name where the bundled registries know it.

## `datasetId` (type: `string`):

Optional: a dataset (for example the output of another Actor run) with an IBAN column.

## `datasetField` (type: `string`):

Field name in that dataset. A dot path such as `payment.iban` works; a list of IBANs in one field works too.

## `datasetBicField` (type: `string`):

Also check the BIC in this field of every dataset item. Leave empty to skip.

## `checkNationalChecksum` (type: `boolean`):

Many countries (Belgium, France, Germany, Spain, Italy, Portugal, Poland, Norway, Finland, ...) have a second check digit inside the account number. When on, an IBAN with a correct mod-97 checksum but a wrong national digit is reported as invalid (INVALID_NATIONAL_CHECKSUM).

## `deduplicate` (type: `boolean`):

Check each IBAN/BIC only once per run (after removing spaces). Duplicates are free and get no row.

## `maxItems` (type: `integer`):

Stop after this many charged checks (0 = all).

## Actor input object example

```json
{
  "ibans": [
    "GB82 WEST 1234 5698 7654 32",
    "DE89 3704 0044 0532 0130 00",
    "FR14 2004 1010 0505 0001 3M02 606",
    "NL91ABNA0417164300",
    "IT60X0542811101000000123456",
    "CH9300762011623852957",
    "DE89 3704 0044 0532 0130 01"
  ],
  "bics": [
    "DEUTDEFF",
    "NWBKGB2L"
  ],
  "datasetField": "iban",
  "checkNationalChecksum": true,
  "deduplicate": true,
  "maxItems": 0
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `parts` (type: `string`):

No description

## `bics` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ibans": [
        "GB82 WEST 1234 5698 7654 32",
        "DE89 3704 0044 0532 0130 00",
        "FR14 2004 1010 0505 0001 3M02 606",
        "NL91ABNA0417164300",
        "IT60X0542811101000000123456",
        "CH9300762011623852957",
        "DE89 3704 0044 0532 0130 01"
    ],
    "bics": [
        "DEUTDEFF",
        "NWBKGB2L"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/iban-validator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "ibans": [
        "GB82 WEST 1234 5698 7654 32",
        "DE89 3704 0044 0532 0130 00",
        "FR14 2004 1010 0505 0001 3M02 606",
        "NL91ABNA0417164300",
        "IT60X0542811101000000123456",
        "CH9300762011623852957",
        "DE89 3704 0044 0532 0130 01",
    ],
    "bics": [
        "DEUTDEFF",
        "NWBKGB2L",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/iban-validator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ibans": [
    "GB82 WEST 1234 5698 7654 32",
    "DE89 3704 0044 0532 0130 00",
    "FR14 2004 1010 0505 0001 3M02 606",
    "NL91ABNA0417164300",
    "IT60X0542811101000000123456",
    "CH9300762011623852957",
    "DE89 3704 0044 0532 0130 01"
  ],
  "bics": [
    "DEUTDEFF",
    "NWBKGB2L"
  ]
}' |
apify call gazidev/iban-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/iban-validator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LMoShz5FKmo8kZ4FE/builds/516M8e2JUaSyJbP0A/openapi.json
