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

Check EU VAT numbers in bulk with the European Commission's official VIES service: valid or not, the registered name and address where shared, and a consultation number when you add your own VAT number. Bad formats are free; numbers that stopped being valid since your last run are flagged.

- **URL**: https://apify.com/niches/eu-vat-validator.md
- **Developed by:** [Niches](https://apify.com/niches) (community)
- **Categories:** Automation, 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 $1.50 / 1,000 vat checks

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

## EU VAT Number Validator: bulk VIES checks with name, address and consultation number

Check **EU VAT numbers in bulk** with the **European Commission's official VIES service**, the same check as the VIES website: **valid or invalid**, plus the **registered name and address** where the member state shares them. Add **your own VAT number** and each check returns a **VIES consultation number**, the proof that you checked.

Numbers are **cleaned and format-checked first** (spaces, dots, GR read as EL), so a number that cannot be valid is answered at once and **costs nothing**. Busy member-state services are **retried automatically**. Run it on a **schedule** and it **flags numbers that stopped being valid** since your last run. Built for **accounting, e-commerce, marketplaces and KYB/compliance teams**. **$1.50 per 1,000 checks** on Gold and above.

### What you get

| Field | What it holds |
|---|---|
| Result | `status` (valid, invalid, invalid format, unavailable), `valid`, `vatNumber`, `countryCode`, `number`, `input` |
| Registered details | `name`, `address` (where the member state shares them) |
| Proof | `consultationNumber` (with your own VAT number), `requestDate` |
| Changes | `previousValid`, `previousCheckAt`, `changed`, `becameInvalid` |
| Run facts | `error`, `checkedAt` |

### What people use it for

- **Invoice compliance:** check customers' VAT numbers before zero-rating an intra-EU invoice
- **Marketplace onboarding:** verify sellers' VAT numbers in bulk
- **KYB and supplier checks:** confirm a counterparty's registered name and address
- **Ongoing monitoring:** a monthly schedule flags customers whose numbers stopped being valid
- **Audit trail:** keep the consultation number VIES returns for each check
- **ERP and CRM clean-up:** fix formats and catch dead numbers across a customer list

### How to use it

1. Paste **VAT numbers**, one per line, with their country code (DE123456789).
2. Optionally add **your own VAT number** for consultation numbers.
3. Click **Start**; schedule it to catch numbers that stop being valid.

### Input

| Field | Example | Notes |
|---|---|---|
| VAT numbers | `DE123456789`, `FR 12 345678901`, `NL123456789B01` | Up to 10,000; spaces and dots fine |
| Default country | `DE` | For numbers without a country code |
| Your own VAT number | `NL000000000B01` | Optional, for consultation numbers |
| Compare with my last run / Tracking name | on | Free |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "input": "nl 0000.000.00 b01",
  "index": 0,
  "vatNumber": "NL000000000B01",
  "countryCode": "NL",
  "number": "000000000B01",
  "status": "valid",
  "valid": true,
  "name": "SAMPLE TRADING B.V.",
  "address": "SAMPLESTRAAT 1, 1000AA AMSTERDAM",
  "consultationNumber": "WAPIAAAAZ0000000",
  "requestDate": "2026-11-07T11:22:34.000Z",
  "previousValid": true,
  "previousCheckAt": "2026-10-07T09:00:00Z",
  "changed": false,
  "becameInvalid": false,
  "checkedAt": "2026-11-07T11:22:34Z"
}
```

A record named `SUMMARY` in the run's key-value store says what each input returned, with any notes (for example an account that does not exist), what was charged and how much traffic the run used.

### Pricing

- **$0.002 per VAT check** ($2 per 1,000), **$1.50 per 1,000 on Gold and above**
- Numbers with a format that cannot be valid are free
- Checks VIES cannot answer after retries are free (run them again later)
- **$0.0005 per run**; change tracking is free

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| One VAT number | $0.0025 (with the run fee) |
| 100 customers | $0.20 |
| 5,000 customers every month | $10 ($7.50 on Gold) |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Add your own VAT number to get a consultation number for every check; keep it with the invoice.
- Germany and some other member states do not share names and addresses through VIES; `name` and `address` are then empty, as on the VIES website.
- UK (GB) numbers left VIES in 2021; Northern Ireland trade uses XI numbers, which are checked.
- Busy member states (France often is) are retried for up to about a minute; anything still unanswered is listed as unavailable and costs nothing.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("Niches/eu-vat-validator").call(run_input={"vatNumbers": ["DE123456789", "NL123456789B01"], "requesterVatNumber": "NL000000000B01"})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('Niches/eu-vat-validator').call({"vatNumbers": ["DE123456789", "NL123456789B01"], "requesterVatNumber": "NL000000000B01"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/Niches~eu-vat-validator/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"vatNumbers": ["DE123456789", "NL123456789B01"], "requesterVatNumber": "NL000000000B01"}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=Niches/eu-vat-validator`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "are these 300 customer VAT numbers still valid, and which ones stopped being valid since last month". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- VIES answers for the moment of the check; it is the official source, but member states update their registers on their own schedules.
- Names and addresses appear only where the member state shares them.
- UK (GB) numbers are not in VIES.
- Apify's free plan: the first 10 numbers.

### FAQ

**Is this the official check?**

Yes. It calls the European Commission's VIES service, the same one behind the VIES website.

**What is a consultation number?**

A reference VIES gives when you check with your own VAT number; it shows you checked that number on that date.

**What does 'invalid format' mean?**

The number cannot be a valid VAT number for that country (wrong length or letters), so VIES is not asked and you pay nothing.

**What does 'unavailable' mean?**

The member state's service was busy or down after several tries. You pay nothing; run those numbers again later.

**Can it monitor my customer list?**

Yes. Schedule it monthly with a tracking name; numbers that stopped being valid are flagged (becameInvalid).

**Which countries?**

All 27 EU member states plus XI (Northern Ireland). Greece is EL in VIES; GR is accepted and converted.

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: eu vat validator, vat number validation, vies vat check, vat checker, vies api, bulk vat validation, vat number lookup, eu vat number check, kyb, vat compliance.

# Actor input Schema

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

One per line, with the country code in front (DE123456789, FR 12 345678901, NL123456789B01). Spaces, dots and dashes are fine; GR is read as EL. Up to 10,000.

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

Used for numbers written without a country code.

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

With it, VIES returns a consultation number for each check, which proves you checked (keep it for your records).

## `trackChanges` (type: `boolean`):

Flags numbers that stopped being valid since your last run, from a store in your own Apify account. Free.

## `trackingName` (type: `string`):

Optional: a separate history for each list you check.

## Actor input object example

```json
{
  "vatNumbers": [
    "DE123456789",
    "NL123456789B01"
  ],
  "trackChanges": true
}
```

# Actor output Schema

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

Dataset: the results.

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

What each input returned, and notes.

# 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": [
        "DE123456789",
        "NL123456789B01"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("niches/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": [
        "DE123456789",
        "NL123456789B01",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("niches/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": [
    "DE123456789",
    "NL123456789B01"
  ]
}' |
apify call niches/eu-vat-validator --silent --output-dataset

```

## MCP server setup

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