# EU VIES VAT Batch Validator - Official Check (`zhucl1006/eu-vies-vat-batch-validator`) Actor

Batch-validate EU VAT numbers via the official VIES REST API. Mixed formats, validity plus trader name/address when published, optional consultation ID with your VAT. Flat KYB schema. No API key.

- **URL**: https://apify.com/zhucl1006/eu-vies-vat-batch-validator.md
- **Developed by:** [leo zhu](https://apify.com/zhucl1006) (community)
- **Categories:** AI, Lead generation, Other
- **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 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/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 Batch Validator - Official Check

Batch-validate **EU VAT numbers** against the official [European Commission VIES REST API](https://ec.europa.eu/taxation_customs/vies/). Accepts mixed formats, returns **validity plus trader name and address** when the member state publishes them, and can request a **consultation identifier** with your own VAT ID. Flat, KYB-ready schema. **No API key.**

Differentiates vs thin Store peers by combining batch + format cleanup, optional consultation ID, optional trader-name/address matching, and member-state availability in one Actor, priced at **$0.002 / vat-result**.

### Who uses it

- **KYB / AP automation** teams checking supplier VAT IDs before onboarding or payment.
- **EU marketplace & invoicing** workflows that need official VIES validity (and a consultation number when you supply a requester VAT).
- **Lead-gen / enrichment** pipelines attaching a VIES validity flag and legal name to company lists.
- Complements owned [France SIRENE](https://apify.com/zhucl1006/france-sirene-company-search) and [GLEIF LEI](https://apify.com/zhucl1006/gleif-lei-kyb-lookup) Actors for EU counterparty checks.

### Input

| Field | Description |
|---|---|
| `vatNumbers` | List of VAT IDs, with or without spaces/dashes (e.g. `IE6388047V`, `IE 6388047V`). Greece uses `EL` (`GR` is mapped). Northern Ireland uses `XI`. |
| `requesterVat` | Optional. Your own EU VAT ID, so VIES can return a `requestIdentifier` (consultation number). Public VAT ID, not a secret. |
| `traderName`, `traderStreet`, `traderPostalCode`, `traderCity`, `traderCompanyType` | Optional approximate-match fields sent to VIES. Results include `traderNameMatch` etc. (`VALID` / `INVALID` / `NOT_PROCESSED`). Applied to every number in the batch. |
| `maxResults` | Cap unique country+number checks (default 10, max 200). |
| `requestDelayMs` | Delay between official VIES calls (default 400). Increase if you hit member-state concurrency limits. |
| `includeServiceStatus` | Default `true`. Call `check-status` once and attach `countryAvailability` on each row. |

Default input (Store auto-test) checks three well-known public VAT IDs and returns a non-empty dataset in seconds. Empty input falls back to the same example.

```json
{
  "vatNumbers": ["IE6388047V", "LU20260743", "IE8256796U"],
  "maxResults": 10,
  "requestDelayMs": 400,
  "includeServiceStatus": true
}
```

Requester VAT + name match example:

```json
{
  "vatNumbers": ["IE6388047V", "DE129274202"],
  "requesterVat": "LU20260743",
  "traderName": "GOOGLE IRELAND LIMITED",
  "maxResults": 10
}
```

### Output (one row per unique VAT ID)

```json
{
  "status": "ok",
  "isValid": true,
  "vatId": "IE6388047V",
  "countryCode": "IE",
  "vatNumber": "6388047V",
  "name": "GOOGLE IRELAND LIMITED",
  "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "requestDate": "2026-11-10T02:33:00.000Z",
  "requestIdentifier": null,
  "userError": "VALID",
  "countryAvailability": "Available",
  "traderNameMatch": "NOT_PROCESSED",
  "sourceVat": "IE6388047V",
  "checkedAt": "2026-11-10T02:40:00Z"
}
```

`status` is `ok` (valid), `invalid` (officially not valid), `error` (unparsable / non-VIES country), or `unavailable` (VIES / member state did not answer after retries). Some member states (for example DE) often return name and address as blank even when the number is valid — that is a VIES limitation, not a failed check.

Duplicates are skipped by country + number. Parse errors and exhausted transient VIES failures are pushed **without** charge. Official valid/invalid answers are charged as `vat-result`. `RUN_SUMMARY` in the key-value store shows totals.

### Pricing

**$0.002 per vat-result** (one official VIES answer). Actor start is $0.00005. Revenue is billed only when the runner is on a paid Apify plan.

### Source & limits

- Official API: [VIES REST check-vat-number](https://ec.europa.eu/taxation_customs/vies/) (keyless).
- Supported countries: AT, BE, BG, CY, CZ, DE, DK, EE, EL, ES, FI, FR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK, XI.
- The Actor retries concurrency / unavailability errors with backoff. VIES is a shared public service — keep batches modest and raise `requestDelayMs` if you see `MS_MAX_CONCURRENT_REQ`.
- This Actor does not scrape login walls and does not collect personal consumer lists.

### You might also like

- [France SIRENE Company Search](https://apify.com/zhucl1006/france-sirene-company-search)
- [GLEIF LEI KYB Lookup](https://apify.com/zhucl1006/gleif-lei-kyb-lookup)
- [OFAC SDN Sanctions Screener](https://apify.com/zhucl1006/ofac-sdn-sanctions-screener)

# Actor input Schema

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

EU VAT IDs to check, with or without spaces/dashes (e.g. IE6388047V, IE 6388047V, LU-20260743). Greece uses EL (GR is accepted and mapped). Northern Ireland uses XI. Deduped by country + number.

## `requesterVat` (type: `string`):

Optional. Your own EU VAT ID. When set, VIES may return a requestIdentifier (consultation number) for an official proof of the check. Leave empty for a simple validity check. Do not put secrets here — this is a public VAT ID, not an API key.

## `traderName` (type: `string`):

Optional company name sent to VIES for approximate matching. Results include traderNameMatch (VALID / INVALID / NOT_PROCESSED). Applied to every number in the batch.

## `traderStreet` (type: `string`):

Optional street for VIES approximate address matching.

## `traderPostalCode` (type: `string`):

Optional postal code for VIES approximate address matching.

## `traderCity` (type: `string`):

Optional city for VIES approximate address matching.

## `traderCompanyType` (type: `string`):

Optional legal form / company type for VIES approximate matching.

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

Stop after this many unique (country + number) checks.

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

Polite delay between official VIES requests. Increase if you hit member-state concurrency limits.

## `includeServiceStatus` (type: `boolean`):

When true, call the official check-status endpoint once and add countryAvailability on each row (Available / Unavailable / etc.).

## Actor input object example

```json
{
  "vatNumbers": [
    "IE6388047V",
    "LU20260743",
    "IE8256796U"
  ],
  "requesterVat": "",
  "traderName": "",
  "traderStreet": "",
  "traderPostalCode": "",
  "traderCity": "",
  "traderCompanyType": "",
  "maxResults": 10,
  "requestDelayMs": 400,
  "includeServiceStatus": true
}
```

# Actor output Schema

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

No description

## `runSummary` (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",
        "LU20260743",
        "IE8256796U"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhucl1006/eu-vies-vat-batch-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",
        "LU20260743",
        "IE8256796U",
    ],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("zhucl1006/eu-vies-vat-batch-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",
    "LU20260743",
    "IE8256796U"
  ],
  "maxResults": 10
}' |
apify call zhucl1006/eu-vies-vat-batch-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zhucl1006/eu-vies-vat-batch-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/wxRxyYMS8WZ7IAJIx/builds/vsgjlIQhIhz9LUFmM/openapi.json
