# Bulk IBAN Validator: Check Digits & Country (`bite-sized-insights/bulk-iban-validator`) Actor

Validate IBANs in bulk. Checks length, country-specific structure and mod-97 check digits for every IBAN, and returns the normalized form, print format, country, check digits and BBAN, with a reason for each failure. Offline format check, no bank or account lookup.

- **URL**: https://apify.com/bite-sized-insights/bulk-iban-validator.md
- **Developed by:** [bite-sized-insights](https://apify.com/bite-sized-insights) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.39 / 1,000 apify-default-dataset-items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

***Validate IBANs in bulk - check the length, the country-specific structure and the mod-97 check digits of every IBAN, and get the compact upper-case form, the grouped print format, the country, the check digits and the BBAN.***

Provide a list of IBANs in any common written format (with or without spaces, dashes or dots, upper or lower case) and get back one structured record per IBAN: whether it is valid, the clean machine-readable form to import, the grouped form to print, the country code, the two check digits and the country-specific BBAN. An invalid IBAN gets a short reason. Typos, truncated numbers and invented IBANs are caught before a payment run bounces or a supplier record is saved.

No login required. No cookies needed. Pay-per-event pricing.

### Why Choose This Actor?

**"Catch mistyped and invented IBANs before they reach your payment run"**

Our Bulk IBAN Validator provides:

- **Full Structure Check**: length, country-specific structure and the ISO 7064 mod-97 check digits
- **Clean Normalized Form**: `normalized_iban` is the compact upper-case IBAN, ready for imports, SEPA files and database keys
- **Print Format and Parts**: `formatted_iban` in groups of four, plus `country_code`, `check_digits` and `bban` for valid IBANs
- **Forgiving Input**: spaces, dashes, dots and lower case are ignored, and surrounding whitespace is trimmed
- **Reasons for Failures**: every invalid IBAN comes back with a short explanation instead of being dropped
- **Bad Entries Never Stop the Run**: a value that is not text or an empty line comes back as a result with `is_valid: false` and a `reason`
- **Cost-Effective**: Pay only for the IBANs you validate: `$0.60 / 1k IBANs`
- **No Third-Party Dependency**: runs entirely offline on bundled country rules - no upstream service to fail or rate-limit you, and your list never leaves the run

### Quick Start

```json
{
  "ibans": ["DE89 3704 0044 0532 0130 00", "GB82WEST12345698765432", "DE00 1234"]
}
```

### Usage Examples

#### Clean Up a Supplier Bank Details List

```json
{
  "ibans": [
    "DE89 3704 0044 0532 0130 00",
    "gb82 west 1234 5698 7654 32",
    "NL91-ABNA-0417-1643-00"
  ]
}
```

Use `normalized_iban` for your system and `formatted_iban` for documents and screens.

#### Check IBANs Before a SEPA Payment Run

Filter the dataset on `is_valid: true` and send only those to your bank. The rest carry a `reason` you can show to whoever typed them.

### Output Example

```json
{
  "iban": "DE89 3704 0044 0532 0130 00",
  "normalized_iban": "DE89370400440532013000",
  "formatted_iban": "DE89 3704 0044 0532 0130 00",
  "country_code": "DE",
  "check_digits": "89",
  "bban": "370400440532013000",
  "is_valid": true,
  "reason": null
}
```

```json
{
  "iban": "gb82 west 1234 5698 7654 32",
  "normalized_iban": "GB82WEST12345698765432",
  "formatted_iban": "GB82 WEST 1234 5698 7654 32",
  "country_code": "GB",
  "check_digits": "82",
  "bban": "WEST12345698765432",
  "is_valid": true,
  "reason": null
}
```

```json
{
  "iban": "DE00 1234",
  "normalized_iban": "DE001234",
  "formatted_iban": null,
  "country_code": null,
  "check_digits": null,
  "bban": null,
  "is_valid": false,
  "reason": "The number's checksum or check digit is invalid."
}
```

### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ibans` | array | Yes | 1-100,000 IBANs (max 64 characters each) |

### Output Fields

| Field | Type | Description |
|-------|------|--------------|
| `iban` | string | The IBAN exactly as provided in the input |
| `normalized_iban` | null/string | Compact upper-case form with spaces and separators removed; null only for an empty value |
| `formatted_iban` | null/string | Print format in groups of four; valid IBANs only |
| `country_code` | null/string | Two-letter country code; valid IBANs only |
| `check_digits` | null/string | The two check digits; valid IBANs only |
| `bban` | null/string | The country-specific basic bank account number part; valid IBANs only |
| `is_valid` | boolean | Whether length, country structure and check digits are correct |
| `reason` | null/string | Short explanation when the IBAN is not valid, otherwise null |

### Pricing

| Cost | Description |
|------|-------------|
| $0.0001 / start | Charged per actor run |
| $0.60 / 1,000 IBANs | Charged per IBAN validated, valid or not |

| Description | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| Charged per IBAN validated | $0.60 / 1,000 IBANs | $0.57 / 1,000 IBANs | $0.51 / 1,000 IBANs | $0.39 / 1,000 IBANs |

Gold, Platinum and Diamond share one price. The price depends on your Apify subscription plan and applies automatically.

IBANs that could not be checked are not charged: they are left out of the dataset and listed in the `FAILED_RECORDS` record of the run's key-value store, and the run ends with a message so you can retry them.

### API Integration

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/bite-sized-insights~validator-iban/runs?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ibans": ["DE89 3704 0044 0532 0130 00", "DE00 1234"]
  }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("bite-sized-insights/validator-iban").call(
    run_input={"ibans": ["DE89 3704 0044 0532 0130 00", "DE00 1234"]}
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{item['iban']}: valid={item['is_valid']} -> {item['normalized_iban']} ({item['reason']})")
```

#### JavaScript

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('bite-sized-insights/validator-iban').call({
    ibans: ['DE89 3704 0044 0532 0130 00', 'DE00 1234'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => {
    console.log(`${item.iban}: valid=${item.is_valid} -> ${item.normalized_iban} (${item.reason})`);
});
```

### Use Cases

- **Supplier and Payee Onboarding**: Catch mistyped IBANs before the first payment bounces
- **Payment Run Preparation**: Split a batch into IBANs that are safe to send and ones that need correction
- **Data Migration**: Normalize bank fields to one compact format before loading them into a new system
- **Form and Import Checks**: Batch-validate IBANs collected through forms, spreadsheets or CSV exports
- **Fraud Signals**: Flag invented numbers and country mismatches as a low-cost first pass

### FAQ

#### Does this check that the bank account exists?

No. The checks cover length, country-specific structure and check digits, which catches typos and invented numbers. A well-formed IBAN can still belong to no account, a closed account or a different holder. There is no bank or account lookup and no name matching; use your bank's verification service if you need that.

#### Which checks does an IBAN have to pass?

It must have the length and character structure defined for its country and pass the mod-97 check on its check digits. `is_valid` is true only when all of that holds.

#### Why does a truncated IBAN report a check digit problem?

The reason names the first check that failed. The check digits are verified before the country-specific layout, so a shortened or garbled IBAN usually reports the checksum. Whatever the wording, `is_valid` is false.

#### Which input formats are accepted?

Upper or lower case, with spaces, dashes or dots between the groups, and with surrounding whitespace. `iban` always echoes your input as provided; `normalized_iban` is the compact upper-case form.

#### What happens to an empty entry or something that is not text?

The run continues. The result has `is_valid: false` and a `reason` such as `Empty IBAN`, and it is counted like any other IBAN.

#### Are the results in the same order as my input?

Yes. Result number N always belongs to IBAN number N of the input.

#### Is my IBAN list stored or shared anywhere?

No. Input is processed for the duration of the run only and results are written to your own private run dataset, same as any other Apify actor.

### Free plan

Free-plan users get 5 runs in total. Each free run validates only the first 10 IBANs of your input (the rest is ignored without an error) and returns at most 10 results. Console test runs have the same cap.

### Related Actors

- [BIC / SWIFT code validator](https://apify.com/bite-sized-insights/validator-bic) - Check the structure and country of BIC codes.
- [email, phone, IBAN and BIC validator](https://apify.com/bite-sized-insights/bulk-email-phone-iban-bic-validator) - Mixed validators in one run.
- [Bulk Email Validator & Verifier](https://apify.com/bite-sized-insights/validator-email) - Find invalid and risky addresses.
- [check phone numbers in bulk](https://apify.com/bite-sized-insights/validator-phone) - Normalize to E.164 and detect line types.

### Disclaimer

This actor validates IBANs against length, structure and check digit rules. It does not contact any bank and cannot confirm that an account exists, is open or belongs to a given person. Country rules change over time; results reflect the data bundled with the current version of the actor.

***

**Need help?** Open an issue on the actor's repository or contact support through Apify Console.

# Actor input Schema

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

IBANs to validate. Spaces and dashes inside a value are ignored. Free and test runs take the first 10.

## Actor input object example

```json
{
  "ibans": [
    "DE89 3704 0044 0532 0130 00",
    "GB82WEST12345698765432",
    "DE00 1234"
  ]
}
```

# Actor output Schema

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

Per-IBAN results: validity, normalized and grouped form, country, check digits, BBAN

# 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": [
        "DE89 3704 0044 0532 0130 00",
        "GB82WEST12345698765432",
        "DE00 1234"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bite-sized-insights/bulk-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": [
        "DE89 3704 0044 0532 0130 00",
        "GB82WEST12345698765432",
        "DE00 1234",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bite-sized-insights/bulk-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": [
    "DE89 3704 0044 0532 0130 00",
    "GB82WEST12345698765432",
    "DE00 1234"
  ]
}' |
apify call bite-sized-insights/bulk-iban-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bite-sized-insights/bulk-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/vFoqwI22NldNLHafa/builds/H2jTxemauqtdyURLO/openapi.json
