# EU VAT Number Validator (VIES): Name, Address (`lx112/eu-vat-validator`) Actor

Validate EU VAT numbers in bulk against the European Commission's VIES service: registered or not, with the company name and address where the member state shares them. Format check per country first. All 27 EU states plus Northern Ireland (XI).

- **URL**: https://apify.com/lx112/eu-vat-validator.md
- **Developed by:** [Jing Peng Xing](https://apify.com/lx112) (community)
- **Categories:** Business, Developer tools, Automation
- **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 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): Name, Address

Check EU VAT numbers in bulk against **VIES**, the European Commission's official VAT validation
service, which asks each member state's own register. For each number you get **registered or not**,
plus the **company name and address** where the member state shares them. The number's format is
checked per country first, so typos come back at once without a VIES call.

- **All 27 EU member states plus Northern Ireland (XI).** UK (GB) numbers left VIES in 2021 and get
  a format check only.
- **Paste numbers as you have them:** `DE 811 569 869`, `de811569869` and `GR...` (VIES calls
  Greece `EL`) are all understood.
- **Honest about outages:** VIES often reports a member state as temporarily unavailable. Those rows
  carry the error and aren't charged; run them again later.

### Who uses this

- **Finance and accounts payable:** confirm a supplier's VAT number before applying the reverse
  charge on an intra-EU invoice.
- **E-commerce and SaaS billing:** validate B2B customers' VAT IDs at checkout or in bulk.
- **KYB and onboarding:** match a VAT number to the company's registered name and address.
- **AI agents:** a structured VIES answer as JSON.

### Input

| Field | Example | Notes |
|---|---|---|
| VAT numbers | `IE6388047V`, `DE811569869` | With the country prefix; one result per number |

### Output (one dataset item per number)

```json
{
  "input": "IE6388047V",
  "country": "IE",
  "number": "6388047V",
  "vatId": "IE6388047V",
  "formatValid": true,
  "valid": true,
  "registered": true,
  "name": "GOOGLE IRELAND LIMITED",
  "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "checkedWith": "vies",
  "reason": null,
  "requestDate": "2026-11-08T17:08:40.730Z",
  "checkedAt": "2026-11-08T17:08:41.000Z",
  "error": null
}
```

`reason` is `not-registered`, `bad-format` or `gb-not-in-vies` when the number isn't confirmed.

### Pricing

Pay per event: charged per **VAT number checked** (registered or not). VIES outages and unparseable
numbers aren't charged.

### Limits

- Some member states, including Germany and Spain, confirm validity but don't share the name and
  address; those fields are then `null`.
- VIES is a public service with per-country capacity limits; the actor checks three numbers at a time.

# Actor input Schema

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

VAT numbers with their country prefix (IE6388047V, DE811569869). Spaces and dots are ignored.

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "DE811569869",
    "ATU33864707"
  ]
}
```

# Actor output Schema

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

One item per VAT number; VIES outages carry an error and are not charged.

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

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

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

```

## MCP server setup

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