# EU VAT Number Validation (VIES) & IBAN Validator API (`bosco_labs/vat-iban-check`) Actor

EU VAT number validation live in the official VIES service (valid or not, registered name, address, name match) and an IBAN validator (ISO 13616 check digits, length, bank code, country match). Pass, fail or unverified per check, with the source; unverified and malformed input are free.

- **URL**: https://apify.com/bosco_labs/vat-iban-check.md
- **Developed by:** [Bosco Labs](https://apify.com/bosco_labs) (community)
- **Categories:** Business, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 vat or iban checks

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

## VAT Number & IBAN Check API: EU VIES + IBAN validation

**Answers "is this EU VAT number registered, to whom, and is this IBAN real?"** One row per
VAT number, checked live against the European Commission's VIES service (valid, registered
name and address, a name match against the company you expect), and one row per IBAN, checked
against ISO 13616 (check digits, length and layout per country, bank code, country match).
Built for **AI agents** doing supplier onboarding, invoice checks and KYB, and for finance
teams who want one sourced answer per number.

**Pricing (pay per event):** $0.002 per check with a definite answer (`check`): a VAT number
VIES answered valid or not valid, or a valid IBAN. Malformed numbers and anything VIES could not
answer ("unverified") cost nothing.

### What you get

Every row has a `status`: **pass** (valid), **fail** (invalid, with the reason) or
**unverified** (VIES or the member state did not answer; this never means invalid). A `checks`
list says which checks ran, each with its own status and source. A valid number whose name
or country differs from what you expected stays **pass** and says so in `reason`. There is no overall verdict
or risk score: you decide what the checks mean for your case.

Real output for `{"vatNumbers": ["IE6388047V"], "ibans": ["NL91 ABNA 0417 1643 00"],
"expectedName": "Google Ireland Ltd", "expectedCountry": "IE"}` (run on 2026-11-07):

```json
[
  {
    "schema_version": "1",
    "query": "IE6388047V",
    "check_type": "vat",
    "number": "IE6388047V",
    "country_code": "IE",
    "status": "pass",
    "valid": true,
    "reason": null,
    "registered_name": "GOOGLE IRELAND LIMITED",
    "registered_address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
    "request_date": "2026-11-07T16:05:31.393Z",
    "consultation_number": null,
    "bank_code": null,
    "sepa_country": null,
    "expected_name": "Google Ireland Ltd",
    "name_match": true,
    "expected_country": "IE",
    "country_match": true,
    "checks": [
      {"check": "vat_format", "status": "pass", "detail": "IE VAT number format", "source": "VIES FAQ format table"},
      {"check": "vies_registration", "status": "pass", "detail": "valid", "source": "VIES (European Commission), answered by the national tax administration"},
      {"check": "name_match", "status": "pass", "detail": "expected 'Google Ireland Ltd', registered 'GOOGLE IRELAND LIMITED' (case, accents, punctuation and legal forms ignored)", "source": "VIES (European Commission), answered by the national tax administration"},
      {"check": "country_match", "status": "pass", "detail": "expected IE, number is IE", "source": "VIES (European Commission), answered by the national tax administration"}
    ],
    "source": "VIES (European Commission), answered by the national tax administration",
    "source_url": "https://ec.europa.eu/taxation_customs/vies/#/vat-validation",
    "checked_at": "2026-11-07T16:05:31Z"
  },
  {
    "schema_version": "1",
    "query": "NL91 ABNA 0417 1643 00",
    "check_type": "iban",
    "number": "NL91ABNA0417164300",
    "country_code": "NL",
    "status": "pass",
    "valid": true,
    "reason": "Valid, but country_match failed (expected IE, number is NL)",
    "registered_name": null,
    "registered_address": null,
    "request_date": null,
    "consultation_number": null,
    "bank_code": "ABNA",
    "sepa_country": true,
    "expected_name": null,
    "name_match": null,
    "expected_country": "IE",
    "country_match": false,
    "checks": [
      {"check": "iban_structure", "status": "pass", "detail": "NL length 18, layout and check digits", "source": "ISO 13616 check digits (mod 97) and the SWIFT IBAN Registry formats"},
      {"check": "country_match", "status": "fail", "detail": "expected IE, number is NL", "source": "ISO 13616 check digits (mod 97) and the SWIFT IBAN Registry formats"}
    ],
    "source": "ISO 13616 check digits (mod 97) and the SWIFT IBAN Registry formats",
    "source_url": "https://www.swift.com/standards/data-standards/iban-international-bank-account-number",
    "checked_at": "2026-11-07T16:05:32Z"
  }
]
```

A wrong IBAN fails with the reason and is free, e.g. `DE89370400440532013001`: "Check digits
89 do not match the rest (ISO 13616 mod 97): a typo or a made-up number."

### Input

```json
{
  "vatNumbers": ["IE6388047V"],
  "ibans": ["NL91ABNA0417164300"],
  "expectedName": "Google Ireland Ltd",
  "expectedCountry": "IE",
  "requesterVatNumber": "NL123456789B01"
}
```

- `vatNumbers`: 0-10 EU VAT numbers with country prefix (GR is read as EL; XI = Northern
  Ireland). Checked one at a time with a short pause, as VIES asks.
- `ibans`: 0-50 IBANs, electronic or print format. Checked offline; no bank or third-party
  IBAN service is called.
- `expectedName` (optional): compared with the VIES name, ignoring case, accents, punctuation
  and legal forms. Some member states (e.g. Germany) share no names through VIES; `name_match`
  then stays null.
- `expectedCountry` (optional): ISO alpha-2, compared with each number's country.
- `requesterVatNumber` (optional): your own VAT number; VIES then returns a
  `consultation_number`, proof for a tax authority that you checked the number at that time.

### Use from an AI agent (MCP)

Agents can call this Actor as a tool through the
[Apify MCP server](https://github.com/apify/apify-mcp-server). Add this server URL to your MCP
client (Claude, Cursor, VS Code, ...):

```text
https://mcp.apify.com?tools=bosco_labs/vat-iban-check
```

It loads this Actor as a tool, plus the tools that read its results. The hosted server signs you
in with OAuth, or accepts your Apify token as `Authorization: Bearer <APIFY_TOKEN>`.

Example prompt: *"Check that supplier VAT number IE6388047V belongs to Google Ireland and that
IBAN NL91ABNA0417164300 is valid."* The agent passes:

```json
{"vatNumbers": ["IE6388047V"], "ibans": ["NL91ABNA0417164300"], "expectedName": "Google Ireland"}
```

**Output for agents:** one small row per number (typically 1-3 KB), stable `snake_case` fields,
a `checks` list with pass, fail or unverified per check and its source. VIES answers in about
1-3 seconds per VAT number (numbers are sent one at a time); IBANs are checked offline in
milliseconds. **Cost:** $0.002 per check with a definite answer, billed to the Apify account the
MCP server is signed in with.

Also on the Bosco Labs API (`POST https://api.boscolabs.dev/v1/vat-iban-check`, credits or x402).

### FAQ

**Where does the VAT answer come from?** VIES, the European Commission's VAT Information
Exchange System, which asks the tax administration of the member state in real time. The
Commission accepts no responsibility for the data, which comes from national databases. A VIES
answer is not legal or tax advice and does not by itself give a right to a VAT exemption.

**What does "unverified" mean?** VIES or that member state's database did not answer
(maintenance, outage or a request limit). It is not "invalid" and costs nothing; check again
later. The Actor never retries more than once and never sends numbers in parallel.

**Why is a real VAT number "fail"?** Some member states only list numbers registered for
intra-EU trade in VIES. "Not valid" means not valid *in VIES*; the company can ask its tax
administration to update VIES.

**Does a valid IBAN mean the account exists?** No. It means the number is well-formed for its
country and the check digits are right, which catches typos and invented numbers. Whether the
account is open and whose it is only the bank knows. `bank_code` is the bank identifier at the
position the SWIFT IBAN Registry gives for that country.

**Do you store the numbers or answers?** No. VIES answers are returned to you only, not cached
or reused, and numbers are not logged.

**Which countries?** VAT: the 27 EU member states and Northern Ireland (XI); not the UK (GB),
Norway or Switzerland, which VIES does not cover. IBAN: all 89 countries in the SWIFT IBAN
Registry.

**Limits:** 10 VAT numbers and 50 IBANs per run; about 1-3 seconds per VAT number.

# Actor input Schema

## `vatNumbers` (type: `array`):

EU VAT numbers to check live against VIES, each with its country prefix, e.g. \["IE6388047V", "NL004495445B01"]. Spaces, dots and dashes are ignored; GR is read as EL (Greece), XI is Northern Ireland. 0-10 numbers, checked one at a time (about 1-3 s each). Empty = no VAT check.

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

IBANs to validate (check digits, length and layout per country, bank code), in electronic or print format, e.g. \["NL91ABNA0417164300", "DE89 3704 0044 0532 0130 00"]. 0-50 IBANs; no bank or third-party service is called. Empty = no IBAN check.

## `expectedName` (type: `string`):

The company name you expect behind the VAT numbers, e.g. "Google Ireland Ltd". Compared with the name VIES returns after removing case, accents, punctuation and legal forms (Ltd = Limited, B.V., GmbH ...): name_match true or false; null when the member state shares no name (e.g. Germany). Empty = no name check.

## `expectedCountry` (type: `string`):

ISO 3166 alpha-2 code of the country you expect, e.g. "NL". Compared with each IBAN's and VAT number's country (country_match; GB IBANs also match JE, GG and IM, FR IBANs the French overseas territories). Empty = no country check.

## `requesterVatNumber` (type: `string`):

Your own EU VAT number, e.g. "NL123456789B01". VIES then returns a consultation number (consultation_number) that proves to a tax authority that you checked a number at a given time. Empty = no consultation number.

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V"
  ],
  "ibans": [
    "NL91ABNA0417164300"
  ]
}
```

# Actor output Schema

## `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 = {
    "vatNumbers": [
        "IE6388047V"
    ],
    "ibans": [
        "NL91ABNA0417164300"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bosco_labs/vat-iban-check").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 = {
    "vatNumbers": ["IE6388047V"],
    "ibans": ["NL91ABNA0417164300"],
}

# Run the Actor and wait for it to finish
run = client.actor("bosco_labs/vat-iban-check").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 '{
  "vatNumbers": [
    "IE6388047V"
  ],
  "ibans": [
    "NL91ABNA0417164300"
  ]
}' |
apify call bosco_labs/vat-iban-check --silent --output-dataset

```

## MCP server setup

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

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/Antv3FHtf4cOdfC7q/builds/XeEl2FiFGXQjQ9JSd/openapi.json
