# Eu Vies Vat Number Validator (`real-estate-api/eu-vies-vat-number-validator`) Actor

EU VIES VAT Number Validator is a Python tool to verify European Union VAT registration numbers, check intra-Community tax validity statuses, and retrieve registered company names, addresses, and official consultation references from the European Commission's VAT Information Exchange System

- **URL**: https://apify.com/real-estate-api/eu-vies-vat-number-validator.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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 VIES VAT Number Validator — European VAT Registration Verification

![EU VIES VAT Number Validator cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/eu-vies-vat-number-validator-cover.png)

Validate European Union VAT numbers through the European Commission's VIES service and collect structured verification results. Retrieve VAT validity, registered company names, addresses, country codes, and validation dates. Export your results as JSON, CSV, or Excel.

### Overview

The EU VIES VAT Number Validator helps finance teams, accountants, developers, and businesses verify VAT registration details for EU suppliers and customers.

Provide one or more country-prefixed VAT numbers, configure the collection limit, and retrieve validation results in your Apify dataset.

The results include validity information and available company registration details, making it easier to review VAT numbers and maintain accurate business records.

### Features

- **VAT number validation:** Check EU VAT numbers through the European Commission's VIES service.
- **Multiple VAT numbers:** Submit a list of VAT numbers in one run.
- **Validity status:** Retrieve whether each VAT number is valid.
- **Company information:** Collect registered company names and addresses when available.
- **Country identification:** Capture the VAT registration country code.
- **Validation timestamps:** Retrieve the date and time of each validation.
- **Duplicate prevention:** Skip duplicate VAT number inputs.
- **Configurable collection:** Control the maximum number of validation results and request delay.
- **Dataset exports:** Export results in JSON, CSV, Excel, and other supported formats.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `vatNumbers` | Array | Required | List of country-prefixed EU VAT numbers to validate. |
| `maxItems` | Integer | 100 | Maximum number of validation results to collect. |
| `requestDelayMs` | Integer | 1000 | Delay between requests in milliseconds. |

### Example Input

```json
{
  "vatNumbers": [
    "IE6388047V",
    "DE811363057"
  ],
  "maxItems": 100,
  "requestDelayMs": 1000
}
```

### What Data Does This Actor Extract?

The actor collects VAT validation results and available company registration information, including:

| Field | Description |
|---|---|
| `isValid` | Indicates whether the VAT number is valid |
| `requestDate` | Date and time of the validation request |
| `userError` | Validation status or returned message |
| `name` | Registered company or business name |
| `address` | Registered business address |
| `vatNumber` | VAT number without the country prefix |
| `countryCode` | Two-letter country code |
| `scrapedAt` | Date and time the record was collected |

### Example Output

```json
{
  "isValid": true,
  "requestDate": "2026-10-12T05:22:19.205Z",
  "userError": "VALID",
  "name": "GOOGLE IRELAND LIMITED",
  "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "vatNumber": "6388047V",
  "countryCode": "IE",
  "scrapedAt": "2026-10-12T05:30:00+00:00"
}
```

### Understanding Validation Results

VIES validation results can include different statuses depending on the response from the relevant national VAT registration service.

- **Valid:** The VAT number is recognised as valid.
- **Invalid:** The VAT number is not recognised as valid.
- **MS_UNAVAILABLE:** The relevant member state's national database is temporarily unavailable.

A response indicating that a national database is unavailable does not necessarily mean the VAT number itself is invalid. Consider checking again when the service becomes available.

### Use Cases

- **Invoice verification:** Check supplier VAT numbers before processing business-to-business invoices.
- **CRM data cleanup:** Validate stored EU VAT numbers and refresh available company names and addresses.
- **Customer onboarding:** Verify VAT registration details during new business account registration.
- **Supplier verification:** Review VAT registration information before establishing business relationships.
- **Compliance reviews:** Export validation results for accounting, auditing, and internal checks.
- **Financial data enrichment:** Add VAT validity and registration details to existing customer or supplier datasets.

### Working with Your Dataset

After the actor completes a run, access your validation results in the Apify dataset.

Export your results in formats such as:

- JSON
- CSV
- Excel
- Other supported Apify dataset formats

Use the exported records for accounting workflows, supplier verification, CRM updates, or further data processing.

### FAQ

**Who is this actor for?**

It is designed for accountants, finance teams, business operators, and developers who need to validate EU VAT registration numbers.

**Which VAT numbers can I validate?**

You can submit country-prefixed VAT numbers from EU member states supported by the VIES service.

**Can I validate multiple VAT numbers in one run?**

Yes. Provide multiple VAT numbers in the `vatNumbers` array.

**Does the actor return company names and addresses?**

Yes. It collects company names and addresses when these details are available in the validation response.

**What does MS_UNAVAILABLE mean?**

It means the relevant member state's national VAT database is temporarily unavailable. It does not automatically mean the VAT number is invalid.

**Can I export the results to Excel or CSV?**

Yes. You can export your Apify dataset in CSV, Excel, JSON, and other supported formats.

**Can I run it on a schedule?**

Yes. Configure Apify schedules to periodically revalidate your VAT number list.

**How many results can it collect per run?**

You can collect up to 1,000 results per run. Use `maxItems` to control the collection size.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with the European Commission or its owners. It retrieves information from the publicly available VIES service. Users are responsible for ensuring that their use of collected data complies with applicable laws and relevant terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

EU VAT numbers with country prefix (for example IE6388047V). One per line.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait before each VIES request. Raise if you see 429 responses.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "DE811363057"
  ],
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

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

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/eu-vies-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",
        "DE811363057",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/eu-vies-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/eLtZWdjAP1QuCCHDO/builds/Pv5A4j0rqcZE4w26p/openapi.json
