# EU VAT Number Validator – Bulk VIES Check, Name & Address (`gazidev/eu-vat-validator`) Actor

Validate EU VAT numbers in bulk against the official EC VIES service: valid/invalid, registered company name and address, request date and VIES consultation number. Free local format + checksum pre-check, retries on member-state outages. $1 per 1,000 checks.

- **URL**: https://apify.com/gazidev/eu-vat-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 $1.00 / 1,000 vat number checked in vies

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

## EU VAT Number Validator – Bulk VIES Check, Name & Address

Check whether your customers' and suppliers' **EU VAT numbers are valid** – one number or thousands at once – against the
official **European Commission VIES** service. For every number you get **valid / invalid**, the **registered company
name and address** (where the member state shares them), the VIES **request date** and, if you enter your own VAT
number, the **VIES consultation number** you can keep as proof of verification.

No API key, no login. Obviously wrong numbers are caught by a **free local format + checksum check** and never charged.

> **Validation only.** This Actor checks VAT numbers **you already have** (from your customers, suppliers, invoices or
> CRM). It does not search, list or generate VAT numbers and must not be used to build or enrich company databases.
> The EC VIES disclaimer allows VIES use only to confirm the validity of VAT numbers for intra-Community supplies of goods
> or services, and forbids extracting, retransmitting or reproducing its content for other purposes. You are responsible
> for using the results within those terms.

### What it does

- **Bulk VAT validation** for all 27 EU member states + **XI (Northern Ireland)**: paste a list, a CSV, a file URL or an Apify dataset.
- **Normalises messy input**: `de 811.569.869`, `USt-IdNr.: DE811569869`, `GR...` → `EL...`, numbers without prefix + default country.
- **Free local pre-check** (python-stdnum): wrong length, characters or check digit → `INVALID_FORMAT`, not sent to VIES, not charged.
- **VIES lookup** for the rest: `VALID` / `INVALID`, name, address, request date, consultation number.
- **Polite and robust**: max 4 parallel requests and 2 per member state, retries with backoff on
  `MS_MAX_CONCURRENT_REQ`, `MS_UNAVAILABLE`, `TIMEOUT`, `SERVICE_UNAVAILABLE`; numbers that still fail are saved as
  `ERROR` (not charged) so you can re-run just those.
- **Duplicates removed** (never charged), extra CSV columns copied through (`keepFields`) to join results back to your CRM.
- UK `GB` numbers: VIES stopped covering Great Britain in 2021, so they get a local checksum check only (`NOT_IN_VIES`, free).

### Use cases

- **Reverse-charge invoicing**: confirm a B2B customer's VAT ID before invoicing 0% VAT intra-EU.
- **Customer onboarding / KYB**: check VAT IDs entered at checkout or sign-up, nightly or in bulk.
- **Supplier master-data hygiene**: re-validate the VAT numbers in your ERP each quarter and catch deregistered companies.
- **Audit trail**: store the VIES consultation number per customer and date.

### Input example

```json
{
  "vatNumbers": ["IE6388047V", "LU26375245", "DE 811 569 869", "FR12345678901"],
  "requesterVatNumber": "",
  "dedupe": true
}
```

CSV in `bulkText` (columns are auto-detected: `vat`, `vat_id`, `ust_idnr`, `tva`, `iva`, `btw`, `tax_id`...; a `country` column fills missing prefixes):

```
customer_id;vat_id;country
c1;811569869;DE
c2;IE6388047V;
```

### Output example

```json
{
  "input": "IE6388047V",
  "vatNumber": "IE6388047V",
  "countryCode": "IE",
  "countryName": "Ireland",
  "valid": true,
  "status": "VALID",
  "name": "GOOGLE IRELAND LIMITED",
  "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "requestDate": "2026-10-25T13:59:34.749Z",
  "consultationNumber": null,
  "localCheck": "OK",
  "charged": true
}
```

`status` is one of `VALID`, `INVALID` (not registered / not active for intra-EU trade), `INVALID_FORMAT`, `NO_COUNTRY`,
`UNSUPPORTED_COUNTRY`, `NOT_A_NUMBER`, `NOT_IN_VIES` (GB) or `ERROR` (VIES/member state unavailable – see `errorCode`).
Germany and some other member states do not share name/address through VIES; those rows say so in `reason`.
A run summary (counts, retries, stopped at max charge) is saved to the key-value store record `OUTPUT`.

### Pricing

Pay per event: **$0.001 per VAT number checked in VIES ($1 per 1,000)**. Free: local format failures, duplicates,
non-EU/GB numbers and VIES errors. You can cap the cost with *Maximum cost per run*; the Actor stops cleanly at the limit.

| Actor (Apify Store, Oct 2026) | Price per check |
|---|---|
| **This Actor** | **$0.001**, invalid formats & errors free |
| ryanclinton/eu-vat-validator | $0.004 + $0.01 per run |
| neuton/eu-vies-vat-validator | $0.004 |
| bgfc97/eu-vat-vies-validator | $0.005 |
| scrapemint/vat-number-checker | $0.003 |

### FAQ

**Is a VIES result legal proof?** VIES confirms validity at the moment of the request. Enter your own VAT number in
*Your own VAT number* to receive a consultation number per check; keep it in your records. It is one element of
evidence, not legal or tax advice.

**Why do I get `ERROR` / `MS_UNAVAILABLE`?** National databases go offline for maintenance (often at night or weekends)
or limit concurrent requests. The Actor retries with backoff; leftovers are free – run them again later.

**Can I check UK VAT numbers?** Only `XI` (Northern Ireland) numbers are in VIES. `GB` numbers are checked locally
(checksum) and marked `NOT_IN_VIES`; HMRC's API needs its own credentials.

**Why is a number with a wrong check digit not sent to VIES?** It cannot be valid, so we save you the charge. Set
`verifyChecksumFailures: true` to ask VIES anyway.

**Can I use this to find companies or collect VAT data?** No. Only validate numbers given to you by your business
partners. Enumerating numbers or building databases from VIES is not allowed by the EC disclaimer.

### Use with AI agents / Apify MCP

Add the Actor to your agent through the [Apify MCP server](https://mcp.apify.com) (`gazidev/eu-vat-validator`) and let
it validate a customer's VAT ID during onboarding or invoice checks: input `{"vatNumbers": ["IE6388047V"]}`, read
`status`, `name` and `address` from the dataset. Also callable via the Apify API/SDK, Make, Zapier and n8n.

Data source: European Commission, VIES on the Web (https://ec.europa.eu/taxation_customs/vies/). This Actor is not
affiliated with or endorsed by the European Commission.

# Actor input Schema

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

VAT numbers of your customers or suppliers, with country prefix: `IE6388047V`, `DE 811 569 869`, `ATU13585627`, `EL094014201` (Greece = EL), `XI...` (Northern Ireland). Spaces, dots and dashes are ignored. Numbers without prefix use the default country below.

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

Paste one VAT number per line, or a whole CSV/TSV export with a header row (the VAT column is detected automatically: vat, vat_id, ust_idnr, tva, iva, btw, tax_id...).

## `sourceFileUrl` (type: `string`):

Public URL of a .csv or .txt file (e.g. Google Sheets 'Publish to web' CSV link).

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

Check VAT numbers stored in an Apify dataset (e.g. your CRM export or an invoice parser). Set the field name below (default `vatNumber`, dot paths like `company.vat` work).

## `vatColumn` (type: `string`):

CSV column or dataset field holding the VAT number. Empty = auto-detect for CSV, `vatNumber` for datasets.

## `defaultCountry` (type: `string`):

Two-letter VIES code (DE, FR, IT, ES, NL, EL, XI...) for numbers written without a country prefix. A `country` column in your CSV overrides it per row.

## `keepFields` (type: `array`):

CSV columns or dataset fields to copy into each result under `record` (e.g. `customer_id`, `invoice`) so you can join results back.

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

Optional. If you enter YOUR company's EU VAT number, VIES returns a unique consultation number for every check - keep it as proof for your tax administration that you verified the customer on that date.

## `dedupe` (type: `boolean`):

Keep only the first occurrence of each number (after normalisation, so `de811569869` and `DE 811 569 869` are the same). Duplicates are never charged; with this off they are copied from the first check for free.

## `includeInvalid` (type: `boolean`):

Show numbers with a wrong length, characters or check digit (they are not sent to VIES and not charged).

## `verifyChecksumFailures` (type: `boolean`):

By default a number whose check digit is wrong is reported as INVALID_FORMAT without a VIES call (free). Turn on to ask VIES as well (charged like any check).

## `maxConcurrency` (type: `integer`):

VIES limits concurrent requests per member state. 4 is fast and polite; lower it if you see many busy errors.

## `maxRetries` (type: `integer`):

Retries with exponential backoff on MS_MAX_CONCURRENT_REQ, MS_UNAVAILABLE, TIMEOUT etc. Rows that still fail are saved with status ERROR and not charged.

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

Stop after this many input values (0 = no limit).

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "LU26375245",
    "DE 811 569 869",
    "FR12345678901",
    "ie6388047v"
  ],
  "dedupe": true,
  "includeInvalid": true,
  "verifyChecksumFailures": false,
  "maxConcurrency": 4,
  "maxRetries": 4,
  "maxItems": 0
}
```

# Actor output Schema

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

No description

## `problems` (type: `string`):

No description

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

No description

## `summary` (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",
        "LU26375245",
        "DE 811 569 869",
        "FR12345678901",
        "ie6388047v"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/eu-vat-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 = { "vatNumbers": [
        "IE6388047V",
        "LU26375245",
        "DE 811 569 869",
        "FR12345678901",
        "ie6388047v",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/eu-vat-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 '{
  "vatNumbers": [
    "IE6388047V",
    "LU26375245",
    "DE 811 569 869",
    "FR12345678901",
    "ie6388047v"
  ]
}' |
apify call gazidev/eu-vat-validator --silent --output-dataset

```

## MCP server setup

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