# EU Company Verification — VAT (VIES) + Official Registry Data (`aspiring_barricade/eu-company-verification`) Actor

Verify EU companies on official state data: validate any intra-EU VAT number against VIES (27 member states) to get the registered legal name and address, enriched with INSEE Sirene official registry data for France (industry/NAF, legal form, active/ceased status). Verified, not guessed.

- **URL**: https://apify.com/aspiring\_barricade/eu-company-verification.md
- **Developed by:** [Joachim Pouchain](https://apify.com/aspiring_barricade) (community)
- **Categories:** Agents, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## EU Company Verification — VAT (VIES) + Official Registry Data

Verify EU companies against **official state data**, not scraped guesses. This actor validates any **intra-EU VAT number** with the **VIES** service (27 member states) to return the **registered legal name and address**, and enriches French companies with **INSEE Sirene** official registry data (industry/NAF code, legal form, active/ceased status, creation date). The clean answer to **EU company verification** and **KYB Europe** from sources that are the legal source of truth.

Generic B2B enrichers scrape websites and guess. This one performs **EU VAT validation** against VIES and reads the **official company registry** — verified, official, multi-country.

### What it does

- **VIES VAT validation** — checks an intra-EU VAT number across all 27 member states; returns `valid` / `invalid` / `unavailable` (correctly distinguishing a non-existent number from a national database being temporarily offline).
- **Registered identity** — official legal name + registered address from VIES when valid.
- **France registry enrichment (INSEE Sirene)** — NAF/industry code, legal form, active/ceased status, creation date, employee range, company category.
- **Flexible input** — accepts a VAT number (prefixed or with a country code), a French SIREN/SIRET, or a company name (FR name search via INSEE).

### Output fields

| Field | Meaning |
|-------|---------|
| `vat_number`, `country_code` | Normalised VAT identity |
| `vat_status` | `valid` / `invalid` / `unavailable` / `not_checked` |
| `vat_valid` | Boolean (or null when unavailable) |
| `legal_name`, `registered_address` | Official registered identity (VIES) |
| `registry` | INSEE Sirene block for FR: `siren`, `naf_code`, `status`, `legal_form_code`, `creation_date`, `employee_range`, `company_category` |
| `input_type` | `vat` / `siren` / `name` |

### Why this one

- **Official, verified — not guessed.** VIES is the EU's own VAT service; INSEE Sirene is the French state business registry.
- **Three-state VAT logic done right.** A temporarily-offline national VAT base is reported as `unavailable`, never as a false `invalid` (a compliance trap most validators get wrong).
- **VAT + registry in one call** — validation *and* a registry profile, multi-country.
- **Agent- & n8n-ready.** One clean JSON row per company; usable as an MCP tool.

### Input

```json
{
  "queries": ["IE6388047V", "FR22424761419"],
  "max_items": 20
}
````

| Field | Type | Description |
|-------|------|-------------|
| `query` | string | A VAT number (`FR22424761419`, `IE6388047V`), a French SIREN/SIRET, or a company name (FR). |
| `queries` | array | Optional list to verify in one run (overrides `query`). |
| `country_code` | string | 2-letter EU code (use `EL` for Greece) when the VAT number has no country prefix. |
| `max_items` | integer | Max records returned/charged. Default 20. |

### Output

Real output for a valid IE number and a French company (with registry enrichment):

```json
{
  "query": "IE6388047V",
  "input_type": "vat",
  "country_code": "IE",
  "vat_number": "IE6388047V",
  "vat_valid": true,
  "vat_status": "valid",
  "legal_name": "GOOGLE IRELAND LIMITED",
  "registered_address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
  "registry": null,
  "source": "EU VIES REST API (ec.europa.eu)",
  "timestamp": "2026-06-29T10:36:00.000Z",
  "disclaimer": "Official data from EU VIES (and INSEE Sirene for FR). Indicative, not a compliance opinion."
}
```

```json
{
  "query": "FR22424761419",
  "input_type": "vat",
  "country_code": "FR",
  "vat_number": "FR22424761419",
  "vat_valid": true,
  "vat_status": "valid",
  "legal_name": "SAS OVH",
  "registry": {
    "source": "INSEE Sirene V3.11 (api.insee.fr)",
    "siren": "424761419",
    "legal_name": "OVH",
    "status": "active",
    "legal_form_code": "5710",
    "naf_code": "63.11Z",
    "creation_date": "1999-10-15",
    "employee_range": "42",
    "company_category": "ETI"
  },
  "source": "EU VIES REST API (ec.europa.eu) + INSEE Sirene V3.11 (api.insee.fr)",
  "timestamp": "2026-06-29T10:36:00.000Z"
}
```

### Use cases

- **KYB / onboarding compliance** — confirm a counterparty's VAT number resolves to the right registered entity.
- **Invoice & tax validation** — validate supplier/customer VAT numbers in bulk before issuing/accepting invoices.
- **Lead data hygiene** — verify and enrich EU company records with official identity + industry code.
- **AI agents / n8n** — a verification tool an agent can call before trusting a company claim.

### Pricing

Pay-per-result: target **$0.005 per record** ($5 / 1,000), plus Apify platform usage. `max_items` caps spend.

### Categories

`Developer tools`, `Automation`, `Agents`, `Business`.

### Setup & notes

- **VIES** works with no key (the default run validates IE/DE/… out of the box).
- **French registry enrichment** needs an INSEE Sirene API key (free at api.insee.fr). Set it as a **secret environment variable** `INSEE_SIRENE_API_KEY` on the actor. Without it, FR records still return VIES validation (graceful degradation).
- VIES rate-limits some national bases (notably FR) — those are reported as `unavailable`, not `invalid`. Re-run to retry.
- Official data, **not a compliance opinion**.

# Actor input Schema

## `query` (type: `string`):

Intra-EU VAT number (e.g. FR22424761419, IE6388047V), a French SIREN/SIRET (9/14 digits), or a company name (FR name search via INSEE).

## `queries` (type: `array`):

Optional list of VAT numbers / SIRENs / names to verify in one run (overrides 'query').

## `country_code` (type: `string`):

2-letter EU code (use EL for Greece) for when the VAT number is given WITHOUT its country prefix. Empty = inferred from the query.

## `max_items` (type: `integer`):

Maximum records returned/charged per run (a name search may return several).

## Actor input object example

```json
{
  "query": "IE6388047V",
  "queries": [
    "IE6388047V",
    "FR22424761419"
  ],
  "max_items": 20
}
```

# 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 = {
    "query": "IE6388047V",
    "max_items": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("aspiring_barricade/eu-company-verification").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 = {
    "query": "IE6388047V",
    "max_items": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("aspiring_barricade/eu-company-verification").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "IE6388047V",
  "max_items": 20
}' |
apify call aspiring_barricade/eu-company-verification --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=aspiring_barricade/eu-company-verification",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "EU Company Verification — VAT (VIES) + Official Registry Data",
        "description": "Verify EU companies on official state data: validate any intra-EU VAT number against VIES (27 member states) to get the registered legal name and address, enriched with INSEE Sirene official registry data for France (industry/NAF, legal form, active/ceased status). Verified, not guessed.",
        "version": "1.0",
        "x-build-id": "U0crSTrHUu97eks2t"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/aspiring_barricade~eu-company-verification/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-aspiring_barricade-eu-company-verification",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/aspiring_barricade~eu-company-verification/runs": {
            "post": {
                "operationId": "runs-sync-aspiring_barricade-eu-company-verification",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/aspiring_barricade~eu-company-verification/run-sync": {
            "post": {
                "operationId": "run-sync-aspiring_barricade-eu-company-verification",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "query"
                ],
                "properties": {
                    "query": {
                        "title": "VAT number / SIREN / company name",
                        "type": "string",
                        "description": "Intra-EU VAT number (e.g. FR22424761419, IE6388047V), a French SIREN/SIRET (9/14 digits), or a company name (FR name search via INSEE)."
                    },
                    "queries": {
                        "title": "Multiple queries (optional)",
                        "type": "array",
                        "description": "Optional list of VAT numbers / SIRENs / names to verify in one run (overrides 'query').",
                        "default": [
                            "IE6388047V",
                            "FR22424761419"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "country_code": {
                        "title": "Country code (optional)",
                        "type": "string",
                        "description": "2-letter EU code (use EL for Greece) for when the VAT number is given WITHOUT its country prefix. Empty = inferred from the query."
                    },
                    "max_items": {
                        "title": "Max results (cost cap)",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum records returned/charged per run (a name search may return several).",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
