# EU VAT Validator: VIES Official Checks & Monitor (MCP) (`amygraphics/eu-vat-validator`) Actor

Official EU VIES VAT checks for AI agents: validate EU VAT numbers (name/address when published) and monitor supplier lists for status flips. No key. MCP-ready.

- **URL**: https://apify.com/amygraphics/eu-vat-validator.md
- **Developed by:** [Zakaria el bouami](https://apify.com/amygraphics) (community)
- **Categories:** Lead generation, Automation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Validator: VIES Official Checks & Monitor (MCP)

Validate EU VAT numbers against the **official European Commission VIES service** — keyless SOAP, real-time answers from national tax authorities. Single-run checks for your row of numbers, or a **monitor that re-verifies your supplier list and alerts the moment a status flips**. MCP-compatible, agent-ready.

### Who needs this

Accountants, finance ops, procurement and AP/AP-automation teams: with EU e-invoicing mandates rolling out through 2026–2028, **wrong/fake VAT = rejected invoice + VAT exposure**. VIES is the reference source — but it's a one-number web form. This actor runs single VIES checks in a clean automated way (compliant with EC terms: individual checks only) and turns it into an integratable API with monitoring.

### What you get per row

Full normalized VAT number, member state, `valid` flag, **trader name & registered address** when the member state publishes them (`---` otherwise), the VIES confirmation request date, plus flip/info context.

### Two modes

#### `search` — validate a batch now

```json
{ "mode": "search", "vatNumbers": ["IE6388047V", "FR00000000000"] }
```

Returns one row per number (`checked`, plus `format-error`/`service-error` rows when a number is malformed or a national database is down — honesty-first, you pay only for actual VIES answers).

#### `monitor` — supplier-list radar

```json
{ "mode": "monitor", "vatNumbers": ["IE6388047V", "ATU...your supplier list..."] }
```

- **Run 1 = free baseline** — validates and snapshots every number.
- **Run 2+** emits **`status-flip`** rows only when a VAT changes validity (e.g. supplier deregistered → invoice risk).
- Schedule weekly; a quiet cycle = **$0.001**.

### Limits (by design — EC VIES terms)

- Single checks only; we cap **50 numbers per run** and keep a politeness delay between calls (≥0.3 s default 0.6).
- National VIES databases go offline sometimes — the row carries `service-error` (not billed) so your pipeline can retry later.
- Trader identity: member states decide if name/address are returned.

### Recipes

1. **Invoice gatekeeper (Zapier/Make)** — new supplier → VIES check → approve/flag before paying.
2. **Monthly compliance re-check** — schedule the monitor on your vendor master data; get alerts on deregistered VATs before tax deadlines.
3. **Agent-native validation (MCP)** — "is this EU VAT real and whose is it?" with the official answer + liability note.

### Pricing

| event | price |
|---|---|
| Actor start | $0.001 |
| EU VAT check | $0.001 / row |

Typical: 25-number batch ≈ **$0.026** · weekly monitor with 1 flip ≈ **$0.002**.

### MCP / AI-agent usage

```
https://api.apify.com/v2/acts/YOUR_HANDLE~eu-vat-validator/run-sync-get-dataset-items?token=YOUR_TOKEN
```

# Actor input Schema

## `mode` (type: `string`):

search = validate up to 50 VAT numbers against the official EU VIES service · monitor = re-check weekly/daily and alert on status flips.

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

Full VAT numbers with EU prefix, e.g. \["IE6388047V", "DE811217087"]. Use XI for Northern Ireland, EL for Greece.

## `maxResults` (type: `integer`):

Cap per run — VIES is a single-check service (EC terms). Each checked number bills $0.001 (flips billed in monitor).

## `requestDelaySecs` (type: `number`):

Politeness delay between VIES calls (please keep >= 0.3).

## Actor input object example

```json
{
  "mode": "search",
  "vatNumbers": [],
  "maxResults": 25,
  "requestDelaySecs": 0.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 = {};

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

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

```

## MCP server setup

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