# EU VAT Number Validator: Bulk VIES Check (`hydrocore/eu-vat-number-validator`) Actor

Validate EU VAT numbers in bulk against the official VIES service: valid or not, company name and address (where the country shares them), check date and optional consultation number. A free format pre-check catches typos before any charge. 27 EU countries plus Northern Ireland.

- **URL**: https://apify.com/hydrocore/eu-vat-number-validator.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Automation, AI
- **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 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.
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: VIES Check, Company Name & Address

Validate **EU VAT numbers in bulk** against the European Commission's official **VIES** service. One row per number: **valid or not**, the **registered company name and address** (where the member state shares them), the **check date and time**, and, if you enter your own VAT number, a **VIES consultation number** you can keep as proof of the check. A **free format pre-check** catches typos and wrong lengths before VIES is called, so badly formatted numbers cost nothing. Covers all **27 EU countries plus Northern Ireland (XI)**. No API key.

### ✅ What you get

- Valid / invalid in VIES (live check)
- Company name and address where the country shares them
- Check time, date and optional consultation number
- Free format check for all 27 EU countries + XI
- Filter: valid only or invalid only; sort by input, country or invalid first
- summaryText sentence per number, plus a run summary

### 🏆 Why this Actor

- **Free format pre-check:** numbers that cannot be valid (wrong length or pattern for the country) are flagged without a VIES call and never charged.
- **Proof of check:** add your own VAT number and every valid row carries the VIES consultation number, accepted by tax authorities as evidence that you verified the customer on that date.
- **Messy input welcome:** spaces, dots, dashes and lowercase are cleaned; GR is read as EL; numbers without a prefix can use a default country.
- **Patient with VIES:** member-state outages and "too many requests" answers are retried with back-off; numbers VIES still cannot check get a free status row.
- **Clear GB handling:** Great Britain numbers are explained (not in VIES since 2021) instead of failing silently.

### 💡 Use cases

- Invoicing and accounting: verify B2B customer VAT numbers before applying the reverse charge
- E-commerce and SaaS checkout: confirm a buyer's VAT ID before removing VAT
- KYB and onboarding: confirm a supplier's VAT registration, name and address
- CRM clean-up: bulk-check thousands of stored VAT numbers and flag the dead ones
- AI agents: answer "is this VAT number valid and whose is it?" in one call

### 🚀 How to use

1. Paste **VAT numbers** (one per line, with the country prefix).
2. Optional: enter **your own VAT number** to get consultation numbers, set a default country, filter and sort.
3. Run, then open **Overview** or **Audit trail**, or call it from your billing system or an agent via the API or MCP.

### ⚙️ Input

| Field | What it does |
|---|---|
| `vatNumbers` | One per line with prefix, for example IE6388047V or DE 811 569 869. |
| `defaultCountry` | Country code for numbers without a prefix (empty = skipped, free). |
| `requesterVatNumber` | Your own company VAT number, to get a consultation number per check (optional). |
| `saveOnly` | all (default), valid or invalid. |
| `sortBy` | input (default), country, invalidFirst. |
| `maxResults` | Cap on saved rows, default 1000. |

Example input:

```json
{
  "vatNumbers": [
    "IE6388047V",
    "de 811 569 869",
    "FR00000000000",
    "NL-8547.24.523.B01"
  ],
  "saveOnly": "all",
  "sortBy": "invalidFirst"
}
```

### ⬆️ Output

One row per VAT number. Unreadable inputs, GB numbers, non-EU prefixes and numbers VIES could not check get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 16 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `vatNumber` | string | "IE6388047V" | Normalised number with the country prefix (no spaces). |
| `countryName` | string | "Ireland" | Country name in English. |
| `isValid` | boolean | true | True when VIES says the number is valid and active today. False for invalid numbers and badly formatted numbers. |
| `checkStatus` | string | "valid" | valid, invalid (VIES) or invalid-format (free format check, VIES not called). |
| `companyName` | string | "GOOGLE IRELAND LIMITED" | Registered name returned by VIES. Null when the country does not share it (for example Germany) or the number is invalid. |
| `companyAddress` | string | "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4" | Registered address returned by VIES, on one line. Null when not shared. |
| `checkedDate` | string | "2026-11-17" | Day of the check (YYYY-MM-DD). |

All 16 fields (in order): `recordType`, `vatNumber`, `countryCode`, `countryName`, `isValid`, `checkStatus`, `companyName`, `companyAddress`, `isNameReturned`, `consultationNumber`, `checkedAt`, `checkedDate`, `validationSource`, `summaryText`, `inputValue`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "vat",
  "vatNumber": "IE6388047V",
  "countryCode": "IE",
  "countryName": "Ireland",
  "isValid": true,
  "checkStatus": "valid",
  "companyName": "GOOGLE IRELAND LIMITED",
  "companyAddress": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "isNameReturned": true,
  "consultationNumber": null,
  "checkedAt": "2026-11-17T21:10:35.178Z",
  "checkedDate": "2026-11-17",
  "validationSource": "vies",
  "summaryText": "IE6388047V is a valid Ireland VAT number registered to GOOGLE IRELAND LIMITED, 3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4; checked in VIES on 2026-11-17.",
  "inputValue": "IE6388047V",
  "scrapedAt": "2026-11-17T21:10:27.166Z"
}
```

Views: **Overview**, **Audit trail**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts inputs, unreadable inputs, duplicates, bad formats, VIES checks, valid, invalid, VIES errors, filtered, over the cap, saved and charged, plus whether a requester number was used.

### 💰 Pricing

Competitive pricing, pay per result: **$0.0025 per VAT number checked in VIES** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default run (3 numbers) costs about $0.008; 1,000 numbers cost about $2.50. Badly formatted numbers, unreadable inputs, duplicates, filtered rows and VIES errors are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| VAT number checked in VIES | One VAT number checked live in VIES and saved (valid or invalid, company name and address when shared, check date, consultation number). Badly formatted numbers, unreadable inputs, duplicates, filtered rows and VIES errors are free. | $0.0025 | $0.0023 | $0.0021 | $0.002 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the answer come from?**

From VIES, the European Commission's VAT Information Exchange System, which asks the tax administration of the member state in real time.

**Why is the company name empty for some valid numbers?**

Some member states (Germany, for example) do not share the name and address through VIES. The number is still confirmed valid; isNameReturned shows whether a name came back.

**What is the consultation number?**

When you enter your own VAT number as the requester, VIES returns a unique consultation number for each check. Keep it with the invoice as proof that you checked the customer on that date. Only enter your own company's VAT number.

**What does invalid-format mean?**

The number does not match the official pattern for that country (for example a German number must have 9 digits). VIES is not called and the row is free.

**Can I check UK VAT numbers?**

Northern Ireland (XI) numbers are in VIES and are checked. Great Britain (GB) numbers left VIES in 2021, so they get a free status row; check them with HMRC.

**What if a country's system is offline?**

VIES sometimes reports a member state as unavailable or busy. The Actor retries with back-off; if it still fails, the number gets a free status row so you can re-run it later.

**Does "valid" mean the company is legitimate?**

It means the VAT number is registered and active for intra-EU transactions today. It is not a credit or fraud check.

**Which inputs are cleaned?**

Spaces, dots, dashes, slashes and lowercase letters are removed or upper-cased, GR becomes EL, and duplicates are checked once.

**How fast is it?**

Checks run two at a time and each takes about 1-3 seconds, depending on the member state service. In our tests a 3-number run finished in about 10 seconds including start-up. Large lists take longer when a national service is slow.

**Is it good for AI agents and automations?**

Yes. One number in, a flat JSON row with isValid, the company name and a summaryText sentence out; easy to call from Make, n8n, Zapier or an MCP client.

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-17): first release.

# Actor input Schema

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

One per line, with the country prefix (IE6388047V, DE 811 569 869, NL854724523B01). Spaces, dots and dashes are removed. GR is read as EL (Greece). Numbers without a prefix need the default country below.

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

Two-letter EU country code for numbers typed without a prefix (for example DE). Empty = numbers without a prefix are skipped (free).

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

Your company VAT number, with prefix. VIES then returns a consultation number per check, which tax authorities accept as proof that you checked the customer on that date. Only enter a VAT number of your own company.

## `saveOnly` (type: `string`):

all (default), valid or invalid numbers only. Rows you filter out are free.

## `sortBy` (type: `string`):

input (default), country or invalidFirst.

## `maxResults` (type: `integer`):

Cap after the filter and sort (default 1000).

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "DE811569869",
    "FR00000000000"
  ],
  "saveOnly": "all",
  "sortBy": "input",
  "maxResults": 1000
}
```

# Actor output Schema

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

Number, country, valid, status, company name and address.

## `audit` (type: `string`):

Proof of check: date, time, consultation number and source.

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

Every field for each row.

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

Run summary: inputs, unreadable, duplicates, bad format, VIES checked, valid, invalid, VIES errors, filtered, over the cap, saved, charged and status rows.

# 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",
        "DE811569869",
        "FR00000000000"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/eu-vat-number-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",
        "DE811569869",
        "FR00000000000",
    ] }

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

```

## MCP server setup

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