# EU VAT Number Validator - VIES VAT Validation API (`evaluative_windbreak/eu-vat-number-validator-vies`) Actor

VAT validation API for EU VAT numbers using the official VIES service. Check up to 500 numbers per run, get valid or invalid plus company name and address, with automatic retries and an honest UNAVAILABLE_RETRY status.

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

## Pricing

from $2.00 / 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.

Learn more: https://docs.apify.com/actors/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 VAT validation API)

Validate EU VAT numbers against the official **EU VIES** service and get clean, structured results. Use it as a **VAT validation API** for invoicing, onboarding, B2B checkout and bookkeeping: paste a list, get one row per number.

### What you get for each VAT number

| Field | Meaning |
| --- | --- |
| `status` | `VALID`, `INVALID`, `FORMAT_INVALID`, `UNSUPPORTED_COUNTRY` or `UNAVAILABLE_RETRY` |
| `valid` | `true`, `false`, or `null` when VIES could not answer |
| `name`, `address` | Registered company name and address, when the member state shares them (some member states do not) |
| `countryCode`, `vatNumber` | The number split into parts (Greece `GR` is converted to `EL`) |
| `requestId`, `checkedAt` | VIES request identifier (when returned) and time of the check |
| `note` | Plain-language explanation for edge cases |

### Why it is different: an honest UNAVAILABLE_RETRY

VIES is often busy or a member state's service is down. Many tools then report the number as invalid. This Actor retries with backoff (default 6 retries, set `maxRetries` 0 to 8). If VIES still cannot answer, the row says `UNAVAILABLE_RETRY` with `valid: null`. **That is not the same as invalid**: run it again later.

### Input

- `vatNumbers`: list of VAT numbers with country prefix, for example `IE6388047V`, `DE 169838187`, `FR40303265045`. Spaces, dots and dashes are ignored. Up to 500 numbers per run, duplicates removed.
- `maxRetries`: 0 to 8, default 6.

### Example output

```json
{
  "input": "IE6388047V",
  "status": "VALID",
  "countryCode": "IE",
  "vatNumber": "6388047V",
  "valid": true,
  "name": "GOOGLE IRELAND LIMITED",
  "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "note": null,
  "requestId": null,
  "checkedAt": "2026-12-03T12:27:42.770Z"
}
```

A run summary (totals per status and duplicates removed) is saved in the key-value store as `SUMMARY`.

### Coverage

The 27 EU member states, plus `XI` for Northern Ireland (goods). Numbers from other countries (for example UK `GB`, Norway, Switzerland) return `UNSUPPORTED_COUNTRY`. Format is checked locally first; a number with a wrong format returns `FORMAT_INVALID` without calling VIES.

### Pricing

Pay per result: **$2.00 per 1,000 checked numbers**, plus a very small start fee ($0.00005 per run). No monthly fee. See the pricing tab for the current rates.

### Use from code or AI agents

Call it through the Apify API or any Apify client. For AI agents that speak MCP, see our companion Actor **EU VAT Validator MCP** (one tool, pay per call).

### Limits and disclaimer

- Large lists take time because VIES limits how fast each country can be queried.
- Data comes from the European Commission VIES service. Availability and accuracy depend on VIES and on each member state's database. This Actor adds no data of its own.
- Not affiliated with or endorsed by the European Commission or any tax authority.
- `VALID` means the number is registered in VIES at the time of the check. It is not tax or legal advice. Rules for reverse charge and invoicing differ by case, so confirm with your accountant.

### Feedback

Found a number that gives a wrong result? Open an issue on the Actor page with the number's country (not the number) and what you expected.

# Actor input Schema

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

VAT numbers with the 2-letter country prefix, for example DE123456789 or FR40303265045. Spaces, dots and dashes are ignored. Greece can be EL or GR. Up to 500 per run, duplicates are removed.

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

How many times to retry when VIES or a member state is busy (0 to 8). Default 6.

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "DE169838187",
    "FR40303265045"
  ],
  "maxRetries": 6
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("evaluative_windbreak/eu-vat-number-validator-vies").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",
        "DE169838187",
        "FR40303265045",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,evaluative_windbreak/eu-vat-number-validator-vies"
        }
    }
}
```

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/PBbbnj1Ae1zLvuz8X/builds/EYNpgTCUvHJUEjbmc/openapi.json
