# EU VAT Number Validator (VIES) - Bulk (`omar_jarvis/eu-vat-validator`) Actor

Validate EU VAT numbers in bulk against the official EU VIES service and get the registered company name and address.

- **URL**: https://apify.com/omar_jarvis/eu-vat-validator.md
- **Developed by:** [Omar Nassar](https://apify.com/omar_jarvis) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 vat number validateds

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 (VIES)

Validate EU VAT numbers in bulk against the official **EU VIES** service of the European Commission. For each number you get: valid or not, and the registered company name and address where the member state publishes them.

Use it to check customer VAT numbers before you issue a reverse-charge invoice, to clean a CRM export, or to verify suppliers.

### What it does

- Accepts VAT numbers in any common notation: `NL 810.433.941 B01`, `nl810433941b01` and `NL810433941B01` are the same number.
- Checks each number live against VIES (`ec.europa.eu`). No cached or scraped data.
- Retries automatically when a national registry is busy or down (`MS_MAX_CONCURRENT_REQ`, `MS_UNAVAILABLE`). If it is still down after the retries, the item gets an `error` and is not charged. The actor never reports an unknown result as "invalid".
- Germany (DE) and some other countries confirm validity only. VIES returns no name or address for them.

### Input

```json
{
  "vatNumbers": ["NL810433941B01", "IE6388047V", "BE0403170701"],
  "concurrency": 2
}
```

### Output

One dataset item per VAT number:

```json
{
  "input": "NL810433941B01",
  "vat_number": "NL810433941B01",
  "country": "NL",
  "valid": true,
  "registered_name": "COOLBLUE B.V.",
  "registered_address": "WEENA 00664, 3012CN ROTTERDAM",
  "source": "EU VIES",
  "error": null,
  "checked_at": "2026-11-09T20:08:13.156Z"
}
```

| Field | Meaning |
|---|---|
| `valid` | `true` if VIES confirms the number is registered and active. |
| `registered_name`, `registered_address` | From the national register. `null` when the country does not publish them. |
| `error` | Set when VIES could not answer, or when the number has an invalid format. |

### Pricing

**$0.002 per validated VAT number** (pay per event `vat-validated`). Invalid-format numbers and VIES outages are not charged.

### Limits

- Up to 5,000 unique items per run. Duplicates are removed before processing.
- Each item has a hard timeout of 60 seconds. A slow site never blocks the run.
- The actor sets **Max cost per run** from your Apify settings: it stops starting new items when the limit is reached.
- VIES throttles bursts. Concurrency is capped at 4, default 2.

### Source

EU VIES REST API, European Commission. This actor is not affiliated with the European Commission.

# Actor input Schema

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

One EU VAT number per line, with country prefix, e.g. NL810433941B01. Spaces, dots and dashes are ignored. Duplicates are removed.

## `concurrency` (type: `integer`):

How many items to process in parallel.

## Actor input object example

```json
{
  "vatNumbers": [
    "NL810433941B01",
    "IE6388047V",
    "BE0403170701"
  ],
  "concurrency": 2
}
```

# 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": [
        "NL810433941B01",
        "IE6388047V",
        "BE0403170701"
    ]
};

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

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

```

## MCP server setup

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