# EU VAT Number Check via VIES (`vizellie/eu-vies-vat-check`) Actor

Look up one or more EU VAT numbers on the European Commission VIES service. Each row says valid, invalid or unconfirmed, with the registered name and address when VIES returns them.

- **URL**: https://apify.com/vizellie/eu-vies-vat-check.md
- **Developed by:** [Vi Zellie](https://apify.com/vizellie) (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.00 / 1,000 completed vat checks

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 Check via VIES

Check one or more EU VAT numbers on the European Commission VIES service. Each row says whether the number came back valid or invalid, or whether VIES could not confirm it. When VIES returns a registered name and address, they are on the row.

Not tax or legal advice. VIES reads national databases at the moment you ask. The Commission does not guarantee that national data.

### Who it is for

Anyone invoicing an EU business who wants the same check they would run on the VIES page, for one number or a short list, including on a schedule.

### What you get

- One row per submitted number. A prefix on the number is used as the country. `GR` is sent as `EL`. Northern Ireland is `XI`. A number with no prefix uses **Country**. If that is empty, the number is not checked.
- `valid` or `invalid` only when VIES completed the check.
- `unconfirmed` when the member state or VIES itself did not answer. That includes a timeout, an unavailable member state, and a requester number VIES rejected. Those rows are not labelled invalid, and they are not charged.
- The registered name and address when VIES returns them. A dash from VIES is stored as an empty name or address.
- A consultation number only when you set both requester fields and VIES returns one. Leave those fields empty and the consultation number stays empty.
- `GB` is not sent to VIES. The UK left the EU VAT system. The row says the number was not checked.

An invalid result can mean the number does not exist, it is not activated for intra-EU trade, or the registration is not finished. It is not a ruling.

### Tutorial

1. Replace **VAT numbers** with the number on the invoice. One line is enough. The form starts with `DE100`, which is a Commission test number, not a company. The live check calls that number invalid.
2. Leave **Country** empty when the number already has a prefix, as `DE100` does. Set it, for example to `DE`, only for a number that has no prefix. A prefix on the number wins.
3. Leave **Max numbers** at 1 for a first look. When the field is omitted, the run checks up to 20.
4. Leave **Requester country** and **Requester VAT number** empty unless you need a consultation number as proof that you asked.
5. Run the Actor. The dataset has one row per number. The `OUTPUT` record says how many checks were completed and how many were unconfirmed.
6. Schedule a task for a standing list. Keep the list short. Numbers that were not confirmed are not charged.

### Example input

```json
{
  "vatNumbers": ["DE100"],
  "maxNumbers": 1
}
```

Replace `DE100` with a number you already have. Paste it with the country prefix, or without a prefix if you also set `country`. A prefix on the number wins over `country`.

### Example output

This is the live check of the form's `DE100`, called on 8 November 2026. VIES returned invalid. The name and address were dashes, so those fields are empty. That is a completed check, so it is charged. A run does not call the Commission test service, where the same number can come back valid.

```json
{
  "submitted": "DE100",
  "countryCode": "DE",
  "countryName": "Germany",
  "vatNumber": "100",
  "status": "invalid",
  "reason": "",
  "requestDate": "2026-11-08T18:56:38.084Z",
  "name": "",
  "address": "",
  "requestIdentifier": "",
  "note": "Invalid means VIES did not find an active intra-EU registration. It can also mean the number does not exist, or the registration is not finished.",
  "source": "European Commission VIES"
}
```

`name` and `address` are filled only when VIES returns them. `requestIdentifier` is filled only after a check that included your requester VAT and only when VIES sent a consultation number. A member state that does not answer is `unconfirmed`, not invalid, and is not charged.

### Pricing

You pay a small fee when the run starts, then a fee for each completed check. A completed check is a number VIES called valid or invalid.

| What | Price |
|---|---|
| Run start | $0.00005 |
| Completed VAT check | $0.002 |

Unconfirmed numbers, GB numbers, malformed lines, duplicates, and numbers past **Max numbers** are not charged. If VIES does not respond, you are not charged for a completed check.

**Examples**

- The form, `DE100`, which the live check calls invalid: 1 x $0.002 = **$0.002**, plus the $0.00005 start fee.
- Twenty completed checks, the omitted-field cap: 20 x $0.002 = **$0.04**, plus the start fee.
- One completed check and one member state that is down: **$0.002**, plus the start fee. The down number is free.
- A run that completes nothing: **$0.00005**.

Use **Max numbers** and Apify's maximum cost per run to cap a single run. The pricing tab on the store is the price you are charged if it ever differs.

### Scheduling and integrations

Save a task with the numbers you invoice often and schedule it. The dataset can go to Google Sheets, Slack, email, Make or Zapier, or you can read it from the Apify API. The rows are small enough to pass to an AI agent over MCP.

### No personal data

The registered name and address are part of the check you asked for. They are stored only when VIES returns them.

- The requester VAT number is sent to VIES only when you fill both requester fields. It is not written to the dataset, the summary, or the log.
- A consultation number is stored only when those fields were set and VIES returned one.
- Email addresses and phone numbers are removed if they appear inside a name or an address.
- Raw responses are not stored.
- Logs do not include the number you submitted, the requester number, or the address that was called.

### FAQ

**What does invalid mean?**
VIES did not find the number as an active registration for intra-EU trade. The number may not exist, it may not be activated for those supplies, or the registration may not be finished yet. National databases are not updated in this tool. For a dispute, use the tax authority.

**Why is a row unconfirmed instead of invalid?**
The member state was unavailable, VIES timed out, the requester details were rejected, or the call did not complete. That is not a finding that the number is invalid. Run it again later. You are not charged for that row.

**Why was a UK number skipped?**
After Brexit, GB is not a VIES member state. The row says so. Northern Ireland numbers use `XI` and are still checked. This tool does not pretend a UK number was checked.

**Where does the answer come from?**
The European Commission VIES service, which reads the national VAT database of the member state. This Actor is not affiliated with the Commission or with any tax authority. The figures here are general information, not a tax opinion.

### Next additions

- A short note when the same number changes between two scheduled runs.

### Feedback

Missing a country or a field? Open an issue on the Actor's Issues tab.

# Actor input Schema

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

One VAT number per line, with or without the country prefix. Greece may be EL or GR. Northern Ireland is XI. GB is not checked: the UK is outside VIES. The line DE100 is a Commission test number, not a company. A live check of DE100 comes back invalid. Replace it with the number on the invoice.

## `country` (type: `string`):

Used only when a line has no country prefix. A 2-letter code such as DE, NL, EL or XI. Greece may be GR. A prefix already on the number wins. Leave empty when every number includes its prefix, including the form's DE100. GB is not checked.

## `maxNumbers` (type: `integer`):

Most numbers checked in one run, from 1 to 40. When this field is omitted the run checks up to 20. The form starts at 1. Numbers past the cap are not checked and are not charged.

## `requesterMemberStateCode` (type: `string`):

Optional. Your own VAT country, such as NL or DE, so VIES can return a consultation number. Leave empty unless you also set the requester number. GB is not accepted.

## `requesterNumber` (type: `string`):

Optional. Your VAT number without the country prefix. A consultation number is stored only when you set both requester fields and VIES returns one.

## Actor input object example

```json
{
  "vatNumbers": [
    "DE100"
  ],
  "country": "DE",
  "maxNumbers": 1,
  "requesterMemberStateCode": "NL",
  "requesterNumber": "100"
}
```

# Actor output Schema

## `checks` (type: `string`):

Valid, invalid, unconfirmed or skipped. Name and address are filled only when VIES returned them.

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

The OUTPUT record in the default key-value store.

# 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": [
        "DE100"
    ],
    "maxNumbers": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("vizellie/eu-vies-vat-check").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": ["DE100"],
    "maxNumbers": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("vizellie/eu-vies-vat-check").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": [
    "DE100"
  ],
  "maxNumbers": 1
}' |
apify call vizellie/eu-vies-vat-check --silent --output-dataset

```

## MCP server setup

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

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/pluFU4I9HfPfHYrzx/builds/WvA8sYr986VhEKwMb/openapi.json
