# EU VAT Validator (VIES) & B2B Lead Enricher (`vieiracorpori/eu-b2b-vat-enricher`) Actor

Validate European Union VAT numbers against official EU Commission VIES, verify B2B emails (MX/SPF/DMARC & disposable detection), and enrich company domains (RDAP, TLS, 45+ tech stack, socials & Trust Score). Supports Batch runs, Standby REST API, and AI Agent MCP.

- **URL**: https://apify.com/vieiracorpori/eu-b2b-vat-enricher.md
- **Developed by:** [Danilo BRUNO Vieira VIANA](https://apify.com/vieiracorpori) (community)
- **Categories:** Business, Lead generation, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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) & B2B Lead Enricher

Validate **European Union VAT IDs** against the official **European Commission VIES API**, verify **B2B emails** (disposable blocker + live MX/SPF/DMARC), and enrich **company domains** (RDAP domain age, SSL/TLS inspection, 45+ tech stack detections, social profiles, legal/imprint links & Trust Score) — all in one fast, reliable Actor.

Designed for **European B2B SaaS**, **accounting/invoicing automation (n8n, Make, Zapier)**, **CRM lead scoring**, and **AI Agents (Apify MCP / Standby Mode)**.

### Key Features

- **Official EU VIES VAT Validation (All 27 EU Member States + XI):** Local regex validation + real-time European Commission VIES consultation returning official `request_identifier` (for tax audit logs), company name, address, standard VAT rate %, and reverse-charge eligibility.
- **B2B Email Verification:** Detects 200+ throwaway/disposable email domains, free webmail, role accounts (`info@`, `sales@`), typos, and performs live DNS `MX`, `SPF`, and `DMARC` checks with mail provider identification (Google Workspace, Microsoft 365, Proton, Zoho, etc.).
- **Deep Company Domain Intelligence:** Official RDAP registration age & registrar, live TLS certificate expiry & issuer, HTTP security headers, 45+ tech stack detections (Stripe, Shopify, HubSpot, Cloudflare, Next.js, WordPress, GA4, etc.), LinkedIn/X/GitHub links, public emails, and European legal/imprint pages.
- **Unified Lead Enrichment + LLM Summary:** Pass an email, domain, and/or EU VAT ID to get a composite **0–100 B2B Lead Score** plus a concise `llm_summary` ready for AI Agents and CRMs.
- **Dual Mode:** Works in standard **Batch Dataset Mode** AND ultra-low-latency **Standby HTTP Mode** (`/validate-vat`, `/verify-email`, `/analyze-domain`, `/enrich`).

### Example Input (`enrich_leads` mode)

```json
{
  "mode": "enrich_leads",
  "useVies": true,
  "leads": [
    {
      "email": "sales@stripe.com",
      "domain": "stripe.com",
      "vat_number": "IE3206488LH"
    }
  ]
}
```

### Example Output

```json
{
  "overall_b2b_score": 92,
  "recommendation": "high_quality_b2b_lead",
  "llm_summary": "EU VAT IE3206488LH is VIES-verified (STRIPE PAYMENTS EUROPE LIMITED, Ireland)...",
  "eu_vat": {
    "full_vat_number": "IE3206488LH",
    "valid": true,
    "company_name": "STRIPE PAYMENTS EUROPE LIMITED",
    "request_identifier": "WAPIAAAA...",
    "reverse_charge_eligible": true
  },
  "email": {
    "deliverability_score": 90,
    "classification": "role_based",
    "dns": { "has_mx": true, "has_spf": true, "has_dmarc": true, "mail_provider": "Google Workspace" }
  },
  "domain": {
    "b2b_trust_score": 95,
    "rdap": { "domain_age_days": 11000 },
    "website": { "tech_stack": [{ "name": "Stripe", "category": "Payments" }] }
  }
}
```

### Suggested Pay-Per-Event (PPE) Pricing

| Event Name | Description | Suggested Price (USD) |
| :--- | :--- | :--- |
| `vat-validated` | 1 EU VAT VIES verification | `$0.002` ($2 per 1,000) |
| `email-verified` | 1 B2B email & DNS verification | `$0.002` ($2 per 1,000) |
| `domain-analyzed` | 1 Company domain intelligence lookup | `$0.004` ($4 per 1,000) |
| `lead-enriched` | 1 Full combined B2B lead enrichment | `$0.006` ($6 per 1,000) |

# Actor input Schema

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

Select whether to validate EU VAT IDs, verify B2B emails, analyze company domains, or run unified B2B lead enrichment.

## `leads` (type: `array`):

List of lead objects containing any combination of 'email', 'domain', and 'vat_number'.

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

List of EU VAT numbers with 2-letter country prefix (e.g. IE6388047V, DE123456789).

## `emails` (type: `array`):

List of email addresses to verify for deliverability, disposable domains, and MX/SPF/DMARC.

## `domains` (type: `array`):

List of company domains to inspect (RDAP, SSL/TLS, tech stack, social profiles, legal pages).

## `useVies` (type: `boolean`):

When enabled, queries the official European Commission VIES REST API for real-time company registration proof and audit ID.

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

Parallel worker count (1 to 10).

## Actor input object example

```json
{
  "mode": "enrich_leads",
  "leads": [
    {
      "email": "contact@stripe.com",
      "domain": "stripe.com",
      "vat_number": "IE3206488LH"
    }
  ],
  "vatNumbers": [
    "IE6388047V"
  ],
  "emails": [
    "hello@apify.com"
  ],
  "domains": [
    "apify.com"
  ],
  "useVies": true,
  "concurrency": 5
}
```

# Actor output Schema

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

Default dataset containing all validated EU VAT IDs, verified emails, domain intelligence reports, and enriched B2B leads.

## `csvExport` (type: `string`):

Downloadable CSV export of the run results for spreadsheets and CRMs.

# 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 = {
    "leads": [
        {
            "email": "contact@stripe.com",
            "domain": "stripe.com",
            "vat_number": "IE3206488LH"
        }
    ],
    "vatNumbers": [
        "IE6388047V"
    ],
    "emails": [
        "hello@apify.com"
    ],
    "domains": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vieiracorpori/eu-b2b-vat-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 = {
    "leads": [{
            "email": "contact@stripe.com",
            "domain": "stripe.com",
            "vat_number": "IE3206488LH",
        }],
    "vatNumbers": ["IE6388047V"],
    "emails": ["hello@apify.com"],
    "domains": ["apify.com"],
}

# Run the Actor and wait for it to finish
run = client.actor("vieiracorpori/eu-b2b-vat-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 '{
  "leads": [
    {
      "email": "contact@stripe.com",
      "domain": "stripe.com",
      "vat_number": "IE3206488LH"
    }
  ],
  "vatNumbers": [
    "IE6388047V"
  ],
  "emails": [
    "hello@apify.com"
  ],
  "domains": [
    "apify.com"
  ]
}' |
apify call vieiracorpori/eu-b2b-vat-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vieiracorpori/eu-b2b-vat-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/Qz1bxfCFc1eQtpPUY/builds/hXVxiSxf1Q0JtnZII/openapi.json
