# EU VAT Number Validator (VIES) (`klyve1/eu-vat-number-validator`) Actor

Validate EU VAT numbers in bulk with the official European Commission VIES service: valid or not, company name and address, country, request date. Clean input, format check and clear error codes.

- **URL**: https://apify.com/klyve1/eu-vat-number-validator.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (community)
- **Categories:** Business, 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.00 / 1,000 vat number checkeds

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)

Check **EU VAT numbers in bulk** against **VIES**, the official service of the European Commission. For every number you get whether it is valid, the registered company name and address (when the country shares them) and the date of the check, in a clean table you can export to Excel, CSV or JSON.

### Who uses it

- **Finance and accounting teams**: validate customer VAT numbers before issuing reverse-charge (intra-EU B2B) invoices, and keep proof of the check.
- **E-commerce and SaaS**: clean a customer database or check numbers collected at checkout.
- **Sales ops and CRM admins**: enrich B2B leads with the legal name and address registered for VAT.
- **Compliance**: periodic re-checks of suppliers and customers.

### Example output

```json
{
  "input": "IE6388047V",
  "vatNumber": "IE6388047V",
  "countryCode": "IE",
  "country": "Ireland",
  "number": "6388047V",
  "status": "valid",
  "valid": true,
  "name": "GOOGLE IRELAND LIMITED",
  "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "requestDate": "2026-11-19T17:59:59.585Z",
  "error": null
}
```

`status` is one of `valid`, `invalid`, `invalid_format` (wrong format for the country, VIES not called), `unavailable` (the national server did not answer) or `error` (unknown country prefix).

### Input

| Field | What it does | Default |
|---|---|---|
| `vatNumbers` | VAT numbers with country prefix, one per line. Spaces, dots and dashes are removed, GR is accepted for Greece | required |
| `maxRetries` | Retries with a growing pause when a national VIES server is busy | 4 |

Supported prefixes: AT, BE, BG, CY, CZ, DE, DK, EE, EL (Greece), ES, FI, FR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK and XI (Northern Ireland).

### Pricing

Pay per result: **$0.001 per VAT number checked by VIES** (valid or invalid). Numbers rejected by the format check, duplicates and numbers VIES could not answer are free.

### Good to know

- Some countries (for example Germany and Spain) do not share the name and address through VIES: `valid` is still returned, `name` and `address` are null.
- National servers are sometimes down for maintenance. Those numbers come back as `unavailable` and free: just run them again later.
- Data comes live from the official VIES REST API of the European Commission. Use it to check business VAT numbers, in line with the VIES terms.

# Actor input Schema

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

EU VAT numbers with their country prefix, one per line (for example IE6388047V, DE811569869, FR40303265045). Spaces, dots and dashes are removed. GR is accepted for Greece (EL).

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

National VIES servers are sometimes busy or down. The check is retried this many times with a growing pause. Numbers that still get no answer are marked unavailable and are free.

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "NL004495445B01",
    "IE1234567X"
  ],
  "maxRetries": 4
}
```

# Actor output Schema

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

All rows produced by the run.

# 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",
        "NL004495445B01",
        "IE1234567X"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/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",
        "NL004495445B01",
        "IE1234567X",
    ] }

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

```

## MCP server setup

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