# EU Company, VAT (VIES) & LEI Verifier & Enricher API (`francogb/eu-company-vat-lei-verifier`) Actor

Verify EU VAT numbers via the official European Commission VIES API, look up legal entities & national registry IDs (KvK, Companies House, BORME) via GLEIF LEI API, and enrich European websites—all in one fast HTTP/JSON call for KYB, CRM, and AI agents.

- **URL**: https://apify.com/francogb/eu-company-vat-lei-verifier.md
- **Developed by:** [Franco García Bailez](https://apify.com/francogb) (community)
- **Categories:** Business, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 verified companies

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/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, VAT (VIES) & LEI Verifier & Enricher API

Fast, lightweight HTTP/JSON Apify Actor for **European KYB verification, B2B CRM enrichment, and invoicing compliance**. Validate EU VAT numbers against the official **European Commission VIES API**, resolve legal entities and national registry IDs (KvK, Companies House, BORME, Handelsregister) via the official **GLEIF LEI API**, and enrich European company websites—all in one single API call without browser overhead.

### Official Data Sources

| Capability | Source | Data Returned |
| :--- | :--- | :--- |
| **EU VAT Validation** | [European Commission VIES REST API](https://ec.europa.eu/taxation_customs/vies/) | `vatValid`, registered name & address (when disclosed), `viesRequestIdentifier` (`consultationNumber`) |
| **Legal Entity & Registry IDs** | [GLEIF Global LEI API v1](https://api.gleif.org/) | `lei`, `legalName`, `entityStatus`, `registrationAuthorityId`, `registrationNumber` (e.g. KvK / BORME), `bicCodes`, `legalFormCode` |
| **Website Metadata** | Direct lightweight HTML fetch | `website`, `websiteTitle`, `websiteDescription`, public `emails`, `linkedinUrl`, `twitterUrl`, on-page EU VAT numbers (auto-checked in VIES) |

### Input Parameters

- **vatNumbers** (`array`, optional): EU VAT numbers to validate (e.g. `["ESA15075062", "NL803441529B01", "DE143593636"]`).
- **leiCodes** (`array`, optional): 20-character LEI codes to resolve via GLEIF (e.g. `["724500Y6DUVHQD6OXN27"]`).
- **companies** (`array`, optional): Company legal names or web domains (e.g. `["ASML Holding", "bunq.com"]`).
- **defaultCountry** (`string`, optional): ISO-2 uppercase country code (e.g. `"NL"`, `"ES"`, `"DE"`, `"FR"`, `"GB"`) to disambiguate company name lookups.
- **requesterVatNumber** (`string`, optional): Your EU VAT number so VIES issues an official `viesRequestIdentifier` (`consultationNumber`) for tax audit compliance.
- **enrichWebsite** (`boolean`, default `true`): Extract lightweight HTML metadata and auto-verify any VAT found on the homepage.
- **includeFunds** (`boolean`, default `false`): Include investment funds/ETFs when searching by company name.

### Example Output

```json
{
  "query": "ASML Holding",
  "inputType": "COMPANY_NAME",
  "status": "VERIFIED",
  "vatValid": null,
  "lei": "724500Y6DUVHQD6OXN27",
  "legalName": "ASML Holding N.V.",
  "entityStatus": "ACTIVE",
  "registrationStatus": "ISSUED",
  "entityCategory": "GENERAL",
  "country": "NL",
  "city": "Veldhoven",
  "postalCode": "5504DR",
  "address": "De Run 6501",
  "registrationAuthorityId": "RA000463",
  "registrationNumber": "17085815",
  "legalFormCode": "54M6",
  "bicCodes": [],
  "nextRenewalDate": "2027-04-01",
  "checkedAt": "2026-11-29T09:55:00+00:00"
}
```

### How Much Does It Cost?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing with zero proxy fees and lightweight 128–512 MB HTTP execution:

| Event | Free | Bronze | Silver | Gold / Platinum / Diamond |
| :--- | :---: | :---: | :---: | :---: |
| **Actor Start** (`apify-actor-start`) | `$0.005` | `$0.005` | `$0.005` | `$0.005` |
| **Verified Company** (`apify-default-dataset-item`) | `$0.004` | `$0.0035` | `$0.003` | `$0.0025` |

- **Example cost for 100 companies**: **`$0.405`** on the Free tier (`$0.005 + 100 × $0.004`) down to **`$0.255`** on Gold+ (`$0.005 + 100 × $0.0025`).
- **Strict Budget Protection**: Honors Apify's `maxTotalChargeUsd` limit natively so KYB batch jobs and AI agents never exceed your budget.

### Use with AI Agents (Apify MCP Server — Claude Desktop & Cursor)

Connect this Actor directly to **Claude Desktop**, **Cursor**, or **Windsurf** via the hosted Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=francogb/eu-company-vat-lei-verifier"
    }
  }
}
```

> **Tip:** Load all 5 official-API Actors together in one MCP server by passing a comma-separated list:
> `https://mcp.apify.com/?actors=francogb/eu-public-tenders-aggregator,francogb/eu-company-vat-lei-verifier,francogb/us-stock-insider-darkpool-altdata,francogb/b2b-domain-techstack-dns-email-intel,francogb/clinical-trials-openfda-pharma-api`

**Example AI prompt:**

> *"Verify EU VAT `ESA15075062` and resolve the legal entity details, KvK/registry number, and public website metadata for `ASML Holding` and `bunq.com` in `NL` using `francogb/eu-company-vat-lei-verifier`."*

### Python SDK (`apify-client`) & cURL

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("francogb/eu-company-vat-lei-verifier").call(
    run_input={
        "vatNumbers": ["ESA15075062"],
        "companies": ["ASML Holding", "bunq.com"],
        "defaultCountry": "NL",
        "enrichWebsite": True,
    }
)

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Verified {len(items)} entities")
```

#### cURL (Synchronous Run for n8n, Make & Zapier)

```bash
curl -X POST "https://api.apify.com/v2/acts/francogb~eu-company-vat-lei-verifier/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "vatNumbers": ["ESA15075062"],
    "companies": ["ASML Holding", "bunq.com"],
    "defaultCountry": "NL"
  }'
```

### FAQ

- **Does this Actor require headless browsers or residential proxies?**
  No. It calls the official European Commission VIES REST API and GLEIF Global LEI API v1 over pure HTTP/JSON, plus optional lightweight HTML fetches when `enrichWebsite` is enabled.
- **How fast is each verification run?**
  Typical lookups take ~1–3 seconds total, making the Actor ideal for synchronous webhook pipelines (`run-sync-get-dataset-items`) in n8n, Make, or CRM onboarding forms.
- **Does VIES return an official consultation number for EU invoicing audits?**
  Yes. Supply your own EU VAT in `requesterVatNumber` and VIES returns `viesRequestIdentifier` whenever disclosed by the member state.
- **Can AI agents use it via MCP?**
  Yes. Full input, output, and dataset schemas are included so Claude Desktop, Cursor, and LangGraph agents can invoke it via `mcp.apify.com`.

### More Fast, Official-API Actors by `francogb`

- **[EU Public Tenders & Procurement API (TED, TenderNed, BOAMP, UK)](https://apify.com/francogb/eu-public-tenders-aggregator)** — Aggregate live European public procurement tenders across TED Europa, TenderNed, BOAMP, and UK Contracts Finder in one normalized schema.
- **[US Stock Insider (Form 4), FINRA Dark Pools & Odd-Lots API](https://apify.com/francogb/us-stock-insider-darkpool-altdata)** — Official SEC EDGAR Form 4 insider buys/sells, FINRA daily dark pool short volume ratios, and SEC Odd-Lot corporate actions.
- **[B2B Domain Tech Stack, DNS/DMARC, RDAP & Email Verifier API](https://apify.com/francogb/b2b-domain-techstack-dns-email-intel)** — Bulk tech-stack detection, DNS/MX/SPF/DMARC deliverability verification, RDAP domain age, and public contacts.
- **[ClinicalTrials.gov v2 & openFDA Pharma / Biotech Data API](https://apify.com/francogb/clinical-trials-openfda-pharma-api)** — ClinicalTrials.gov v2 studies (with PI & site contacts), openFDA Drugs@FDA approvals, and FDA drug recalls.

# Actor input Schema

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

EU VAT numbers to validate via the official European Commission VIES API (e.g. ESA15075062, NL803441529B01, DE143593636).

## `leiCodes` (type: `array`):

Optional 20-character Legal Entity Identifiers (LEI) to look up via the official GLEIF API (e.g. 724500Y6DUVHQD6OXN27).

## `companies` (type: `array`):

Company legal names or websites/domains (e.g. ASML Holding, bunq.com) to resolve via GLEIF LEI and optional website metadata enrichment.

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

Optional ISO-2 uppercase country code (e.g. NL, ES, DE, FR, GB) to disambiguate company name lookups in GLEIF.

## `requesterVatNumber` (type: `string`):

Optional EU VAT of the requester (e.g. NL123456789B01) passed to VIES to receive an official consultationNumber proof of verification.

## `enrichWebsite` (type: `boolean`):

When a domain or URL is passed in Companies, fetch lightweight HTML metadata (title, description, public emails, social links, and on-page EU VAT numbers auto-verified in VIES).

## `includeFunds` (type: `boolean`):

Include investment funds or ETFs in GLEIF company name lookups. Keep unchecked to prioritize operating legal entities.

## Actor input object example

```json
{
  "vatNumbers": [
    "ESA15075062"
  ],
  "leiCodes": [],
  "companies": [
    "ASML Holding"
  ],
  "defaultCountry": "",
  "requesterVatNumber": "",
  "enrichWebsite": true,
  "includeFunds": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `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 = {
    "vatNumbers": [
        "ESA15075062"
    ],
    "leiCodes": [],
    "companies": [
        "ASML Holding"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("francogb/eu-company-vat-lei-verifier").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": ["ESA15075062"],
    "leiCodes": [],
    "companies": ["ASML Holding"],
}

# Run the Actor and wait for it to finish
run = client.actor("francogb/eu-company-vat-lei-verifier").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": [
    "ESA15075062"
  ],
  "leiCodes": [],
  "companies": [
    "ASML Holding"
  ]
}' |
apify call francogb/eu-company-vat-lei-verifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,francogb/eu-company-vat-lei-verifier"
        }
    }
}
```

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/fGxOhtSENAu1F9EDB/builds/wgfz9v497TtPDTom5/openapi.json
