# IBAN Validator API — Bulk MOD-97 Preflight (`vivid_astronaut/iban-validator`) Actor

Validate IBAN format, country length, and MOD-97 locally in Apify. Up to 1,000 items, masked output, no bank or payee-verification claim.

- **URL**: https://apify.com/vivid\_astronaut/iban-validator.md
- **Developed by:** [BRAINIALL Team](https://apify.com/vivid_astronaut) (community)
- **Categories:** Developer tools
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## IBAN format & MOD-97 validator

Validate one IBAN or a batch of up to 1,000 inside the Apify run. The Actor checks country-specific length, characters, prefix, and the ISO 13616 MOD-97 checksum.

### Honest scope

This is a **format and checksum validator**. It does not contact a bank, prove that an account exists, verify the account holder, run Confirmation/Verification of Payee, perform sanctions screening, or authorize a payment.

The Actor has no external upstream. It does not write full IBANs to logs or datasets. Results contain a masked value and a short SHA-256 fingerprint so callers can correlate a result without persisting the full bank identifier in the output dataset. Apify still receives the Actor input as part of running the job; follow your own retention and access policies.

### Input

Single validation:

```json
{
  "action": "validate",
  "iban": "GB82 WEST 1234 5698 7654 32"
}
```

Batch validation:

```json
{
  "action": "validate_bulk",
  "ibans": [
    "DE89 3704 0044 0532 0130 00",
    "GB00 WEST 1234 5698 7654 32"
  ]
}
```

Use `{"action":"countries"}` to list the supported country codes and expected lengths.

### Output

```json
{
  "success": true,
  "action": "validate",
  "valid": true,
  "reasons": [],
  "countryCode": "GB",
  "expectedLength": 22,
  "actualLength": 22,
  "masked": "GB82**************5432",
  "fingerprint": "a1b2c3d4e5f60708",
  "scope": "format_and_mod97_only",
  "accountExistsVerified": false,
  "accountHolderVerified": false,
  "verificationOfPayeePerformed": false,
  "dataHandling": "processed_inside_apify_run_not_sent_to_external_upstream"
}
```

Invalid IBANs return a successful computation with `valid: false` and machine-readable reasons such as `invalid_country_length` or `invalid_mod97_checksum`. Missing input and unsupported actions fail without creating a validation result.

### Pricing

The Apify Store pricing panel is authoritative. Each dataset validation result is billable under the configured pay-per-event plan; the Actor-start event may also apply. A batch creates one result per IBAN.

### Integration

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('vivid_astronaut/iban-validator').call({
  action: 'validate',
  iban: 'GB82 WEST 1234 5698 7654 32',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
```

Use synthetic fixtures in tests. Do not send personal bank data unless your use case and Apify configuration permit it.

# Actor input Schema

## `action` (type: `string`):

Validate one IBAN, validate a batch, or list supported country lengths.

## `iban` (type: `string`):

IBAN to check. The output is masked and fingerprinted; the full value is never written to logs or datasets.

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

Up to 1,000 IBANs. Each validation creates one dataset result.

## Actor input object example

```json
{
  "action": "validate"
}
```

# Actor output Schema

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

Default dataset containing masked results or the supported-country registry.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vivid_astronaut/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("vivid_astronaut/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 '{}' |
apify call vivid_astronaut/iban-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vivid_astronaut/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/7EFbf1JbyWIbiaWzb/builds/cWHtD6PTxjCFCdhya/openapi.json
