# EU Company KYB, VAT (VIES) & Official Registry Enricher (`clearstack-data/eu-company-kyb-enricher`) Actor

Validate EU VAT numbers via VIES and enrich European companies from official public registries (France SIRENE/RNE, Switzerland Zefix, Norway Brreg, Finland PRH, GLEIF LEI, optional UK Companies House). Built for KYB, billing, and n8n/Make workflows.

- **URL**: https://apify.com/clearstack-data/eu-company-kyb-enricher.md
- **Developed by:** [ClearStack Data](https://apify.com/clearstack-data) (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 company enricheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Company KYB, VAT (VIES) & Official Registry Enricher

Validate European VAT numbers live via the official **European Commission VIES REST API** and enrich B2B entities across official public company registries in one unified, normalized JSON schema.

Designed for **KYB verification**, **B2B billing & ERP validation**, **CRM enrichment**, and automated workflows in **n8n, Make, Zapier**, or custom API pipelines.

### Official Registries Integrated (No Browser, Zero Proxies)

| Registry | Coverage | Data Returned | API Key Required? |
| :--- | :--- | :--- | :--- |
| **EU VIES REST API** | All 27 EU countries + Northern Ireland (`XI`) | Live VAT validity, registered trader name & address, timestamp | No |
| **France DINUM (INSEE SIRENE + RNE)** | All French companies | SIREN/SIRET, legal name, active/closed status, NAF/APE, legal form, headquarters address, officers (dirigeants), latest revenue & net income, official FR VAT | No |
| **Switzerland Zefix** | Swiss Federal Commercial Register | UID (`CHE-xxx.xxx.xxx`), legal name, cantonal seat, status (`EXISTIEREND` / `GELOESCHT`), official cantonal excerpt URL | No |
| **Norway Brreg (Enhetsregisteret)** | All Norwegian companies | Org.nr, legal name, org form, NACE code, employee count, MVA VAT status, business address | No |
| **Finland PRH / YTJ Open Data v3** | All Finnish companies | Business ID (`xxxxxxx-x`), legal name, active status, legal form, main business line, registration date, address | No |
| **GLEIF LEI API** | Pan-European & Global (UK, DE, NL, IE, IT, ES, BE, FR, CH, etc.) | Official 20-char LEI code, legal entity status, jurisdiction, registration authority, registered number, legal address | No |
| **UK Companies House** *(optional)* | United Kingdom | Company number, status, SIC codes, incorporation date, registered office address | Optional free user key |

### Automatic Input Detection

Pass any mix of European identifiers or company names in `queries` — the Actor detects each format automatically:

- **EU VAT numbers** (`IE3206488LH`, `FR27552032534`, `DE811128135`, `NL820646660B01`, `BE0403227515`, `GR094014201`)
- **French SIREN (9 digits) or SIRET (14 digits)** (`552032534`, `552 032 534 00703`) — automatically derives and validates the French intra-community VAT number in VIES
- **Swiss UID** (`CHE-105.909.036`, `CHE105909036`)
- **Norwegian Org.nr** (`NO:923609016`, `NO923609016MVA`)
- **Finnish Business ID** (`0112038-9`) — also validates `FI01120389` in VIES
- **20-character ISO 17442 LEI** (`969500KMUQ2B6CBAF162`)
- **UK Companies House number** (`UK:00445790` or `GB:00445790`)
- **Company names** (`FR:Mistral AI`, `CH:Novartis`, `NO:Equinor`, or plain name with `defaultCountry`)

### Example Input

```json
{
  "queries": [
    "IE3206488LH",
    "FR27552032534",
    "CHE-105.909.036",
    "NO:923609016",
    "0112038-9",
    "FR:Mistral AI"
  ],
  "validateVat": true,
  "enrichGleifLei": true,
  "concurrency": 3,
  "timeoutMs": 12000
}
```

### Example Output

```json
{
  "query": "FR27552032534",
  "detectedType": "EU_VAT",
  "found": true,
  "kybStatus": "VERIFIED_ACTIVE",
  "country": "FR",
  "legalName": "DANONE",
  "registrationNumber": "552032534",
  "vatNumber": "FR27552032534",
  "vatValid": true,
  "leiCode": "969500KMUQ2B6CBAF162",
  "status": "ACTIVE",
  "legalForm": "5599",
  "activityCode": "70.10Z",
  "incorporationDate": "1955-01-01",
  "employeeBand": "32",
  "latestRevenueEur": 27376000000,
  "latestNetIncomeEur": 2100000000,
  "latestFinancialYear": "2025",
  "address": {
    "full": "59-61 RUE LA FAYETTE 75009 PARIS",
    "street": "59-61 Rue La Fayette 75009 Paris",
    "postalCode": "75009",
    "city": "PARIS",
    "country": "FR"
  },
  "officers": [
    {
      "name": "ANTOINE BERNARD DE SAINT AFFRIQUE",
      "role": "Directeur Général",
      "type": "INDIVIDUAL"
    }
  ],
  "sourcesUsed": ["EU_VIES", "FR_DINUM_SIRENE_RNE", "GLEIF_LEI"],
  "registryUrls": [
    "https://annuaire-entreprises.data.gouv.fr/entreprise/552032534",
    "https://search.gleif.org/#/record/969500KMUQ2B6CBAF162"
  ],
  "vies": {
    "valid": true,
    "countryCode": "FR",
    "vatNumber": "27552032534",
    "fullVatNumber": "FR27552032534",
    "name": "SA DANONE",
    "address": "17 BD HAUSSMANN, 75009 PARIS",
    "requestDate": "2026-11-21T22:30:00.000Z",
    "error": null
  },
  "checkedAt": "2026-11-21T22:30:01.000Z",
  "error": null
}
```

#### How to read `vatValid`

- `true`: VIES confirmed the VAT number is registered.
- `false`: VIES answered that the number is not valid.
- `null`: no verdict. Either the input is not a VAT number, or the member state's VIES service was busy or down after three attempts; the reason is in `vies.error` (for example `MS_MAX_CONCURRENT_REQ` or `MS_UNAVAILABLE`). Retry later instead of treating the company as unregistered. If nothing else was found either, the row has `kybStatus: "ERROR"` and is not charged.

### Pricing (Pay-Per-Event)

You pay a fixed per-company price (`company-enriched`) with **zero extra platform usage costs** charged to you:

- Fast pure-HTTP engine running on 256–512 MB RAM
- Automatic deduplication of duplicate identifiers in the same batch
- Graceful handling of `maxTotalChargeUsd` budget limits
- Run summary saved to the `SUMMARY` key-value store record
- Rows with `kybStatus: "ERROR"` (a registry or VIES could not answer) are returned but not charged

### Use Cases

- **Automated B2B Onboarding & KYB:** Verify VAT status, active legal status, and official registered address before issuing credit or signing contracts.
- **Invoice & ERP Compliance:** Validate EU intra-community VAT numbers in bulk for reverse-charge VAT invoicing.
- **n8n / Make / Clay Enrichment:** Turn a raw VAT number, SIREN, Swiss UID, or company name into clean CRM fields (revenue, officers, NACE/NAF, LEI, official registry links).

### Ready-to-Import n8n Template & Claude / Cursor MCP

- **Dedicated MCP server (`verify_eu_company` tool with spending cap & trimmed output):** install [`clearstack-data-mcp`](https://www.npmjs.com/package/clearstack-data-mcp) ([GitHub](https://github.com/Wordhalm/clearstack-data-mcp)) in Claude Code, Claude Desktop, Cursor, Windsurf, or VS Code:
  ```bash
  claude mcp add clearstack-data -e APIFY_TOKEN=your_token -- npx -y clearstack-data-mcp
  ```
- **Free n8n workflow JSON & Clay recipes:** [Wordhalm/clearstack-data-automation-templates](https://github.com/Wordhalm/clearstack-data-automation-templates)
- **Apify remote MCP:** `https://mcp.apify.com?tools=clearstack-data/eu-company-kyb-enricher`

### Related Actors by ClearStack Data

- [Google Ads Transparency Center Scraper & Competitor Monitor](https://apify.com/clearstack-data/google-ads-transparency-scraper)
- [Telegram Public Channel Scraper & Incremental Monitor](https://apify.com/clearstack-data/telegram-public-channel-monitor)
- [EU TED, France BOAMP & UK Public Tenders Monitor](https://apify.com/clearstack-data/eu-public-tenders-monitor)

# Actor input Schema

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

List of EU VAT numbers (e.g. 'IE3206488LH', 'FR27552032534'), French SIREN/SIRET ('552032534'), Swiss UID ('CHE-105.909.036'), Norwegian Org.nr ('NO:923609016'), Finnish Business ID ('0112038-9'), 20-char LEI ('969500KMUQ2B6CBAF162'), UK company number ('UK:00445790'), or company names (optionally prefixed with country code like 'FR:Airbus', 'CH:Novartis').

## `defaultCountry` (type: `string`):

Optional ISO-2 country code (e.g. 'FR', 'CH', 'NO', 'FI', 'GB', 'DE') used when an entry is a plain company name without an identifier or country prefix.

## `validateVat` (type: `boolean`):

Validate EU VAT numbers live against the European Commission VIES REST API (also auto-derives and validates French VAT from SIREN/SIRET).

## `enrichGleifLei` (type: `boolean`):

Look up the official Global Legal Entity Identifier (LEI) record via GLEIF API for KYB verification, legal jurisdiction, and status.

## `companiesHouseApiKey` (type: `string`):

Optional free UK Companies House REST API key. When provided, UK company numbers and GB queries are also enriched with official Companies House filings, SIC codes, and officers.

## `concurrency` (type: `integer`):

Number of companies to enrich in parallel. Keep at 3-5 to respect official government registry rate limits.

## `timeoutMs` (type: `integer`):

Maximum wait time per upstream official API request in milliseconds.

## Actor input object example

```json
{
  "queries": [
    "IE3206488LH",
    "FR22424761419",
    "NL820646660B01",
    "CHE-105.909.036",
    "NO:923609016",
    "0112038-9"
  ],
  "defaultCountry": "",
  "validateVat": true,
  "enrichGleifLei": true,
  "concurrency": 3,
  "timeoutMs": 12000
}
```

# Actor output Schema

## `kybResults` (type: `string`):

Dataset containing one normalized KYB, VAT validation, and official registry record per input query.

## `runSummary` (type: `string`):

JSON summary with total queries processed, verified counts, VAT valid counts, and registry coverage.

# 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 = {
    "queries": [
        "IE3206488LH",
        "FR22424761419",
        "NL820646660B01",
        "CHE-105.909.036",
        "NO:923609016",
        "0112038-9"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearstack-data/eu-company-kyb-enricher").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 = { "queries": [
        "IE3206488LH",
        "FR22424761419",
        "NL820646660B01",
        "CHE-105.909.036",
        "NO:923609016",
        "0112038-9",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("clearstack-data/eu-company-kyb-enricher").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 '{
  "queries": [
    "IE3206488LH",
    "FR22424761419",
    "NL820646660B01",
    "CHE-105.909.036",
    "NO:923609016",
    "0112038-9"
  ]
}' |
apify call clearstack-data/eu-company-kyb-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clearstack-data/eu-company-kyb-enricher"
        }
    }
}
```

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/PWWMHmhQ5oHqvesQK/builds/RHLBIOMWj0xC3vu4Z/openapi.json
