# B2B Company Enrichment, EU VAT/KYB & Fraud Risk API (`whthpnd/b2b-company-kyb-risk-api`) Actor

All-in-one B2B Intelligence Actor & Standby REST API (Clearbit & BuiltWith alternative). Enrich any domain or email with legal company name, EU Impressum directors, live VIES VAT & GLEIF LEI verification, OFAC sanctions screening, tech stack, and domain/email fraud risk score.

- **URL**: https://apify.com/whthpnd/b2b-company-kyb-risk-api.md
- **Developed by:** [DirectAPI Labs](https://apify.com/whthpnd) (community)
- **Categories:** MCP servers, Lead generation, Business
- **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

from $2.90 / 1,000 enriched b2b company / kyb / risk records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## B2B Company Enrichment, EU VAT/KYB & Fraud Risk API

All-in-one **B2B Domain Enrichment, European Impressum Extractor, Live KYB/VAT Validator, OFAC Sanctions Screener, and Signup Fraud Risk API** — built as a fast, proxy-free alternative to Clearbit, BuiltWith, and expensive enterprise KYB providers.

Supports **two execution modes** inside a single lightweight (`256 MB` RAM) Actor:

1. **Batch Dataset Mode** — Pass 1 to 500 domains, emails, EU VAT IDs, or company names and export structured records to JSON, CSV, Excel, Clay, HubSpot, or Google Sheets.
2. **Real-Time Standby REST API** — Query synchronous HTTP endpoints (`/v1/full`, `/v1/company`, `/v1/risk`, `/v1/kyb`) directly from `n8n`, `Make`, `Zapier`, AI agents, or your SaaS signup flow with sub-second to ~2s response times.

***

### What Does It Extract & Verify?

#### 1. Company, EU Impressum & Tech Stack (`company`)

- Crawls the company homepage plus legal/contact subpages (`/impressum`, `/mentions-legales`, `/legal`, `/about`, `/contact`).
- Extracts **company brand name**, **legal entity name** (`GmbH`, `AG`, `Ltd.`, `Inc.`, `SAS`, `B.V.`), **managing directors** (`Geschäftsführer` / executives from DACH Impressum notices), **company registration numbers** (`HRB`, `SIREN`), **business emails**, **direct phone numbers**, **social links** (LinkedIn, X, GitHub, YouTube), and **logo URL**.
- Detects **30+ web, payment, analytics, CRM, and infrastructure technologies** (Next.js, Shopify, Webflow, Stripe, Paddle, HubSpot, Intercom, PostHog, Segment, Cloudflare, Vercel, etc.) plus B2B SaaS commercial signals (`hasPricingPage`, `hasDocsOrApi`, `hasCareersPage`).

#### 2. Live KYB, EU VAT (VIES), Global LEI & OFAC Sanctions (`kyb`)

- **Official EU Commission VIES Validation**: Automatically validates VAT IDs discovered on `/impressum` (or passed directly) against the live EU VIES registry, returning `vatValid: true/false`, official registered company name, and registered tax address.
- **GLEIF Global LEI Lookup**: Matches legal entities against the global Legal Entity Identifier registry (`lei`, `leiStatus`, `jurisdiction`, `hqCity`, `leiRegistrationId`).
- **French Sirene Registry Enrichment**: Automatically pulls official `SIREN` and `NAF` industry codes for French entities.
- **US Treasury OFAC SDN Sanctions Screening**: Screens the company legal name, VIES/GLEIF entity name, and extracted managing directors against **19,600+ OFAC SDN sanctioned entities and aliases** in `< 1 ms`.

#### 3. Domain & Signup Fraud Risk Score (`risk`)

- Built for **SaaS free-trial protection**, **AI credit abuse prevention**, and **outbound lead hygiene**:
  - **10,450+ Disposable Email Domains** + **Burner/Temp-Mail MX Fingerprinting** (catches custom abuser domains pointed at disposable or alias-forwarding MX servers!).
  - **DNS Mail Infrastructure**: Detects `Google Workspace`, `Microsoft 365`, `Proton Mail`, `Cloudflare Email Routing`, `Mimecast`, `Proofpoint`, `SPF`, and strict `DMARC`.
  - **RDAP Domain Age**: Queries official RDAP registries to flag newly registered domains (`< 14` or `< 60` days old).
  - Outputs deterministic `riskScore` (`0–100`), human-readable `riskFactors`, and actionable `riskVerdict` (`allow`, `challenge`, or `block`).

***

### Real-Time Standby REST API Endpoints

When called via your Actor's **Standby URL** (`https://<standby-url>/v1/...` with `Authorization: Bearer <APIFY_TOKEN>`):

| Endpoint | Example Query | Latency | Description |
|---|---|---|---|
| `GET /v1/full` | `/v1/full?target=sipgate.de` | `~1.5–3.0s` | Full Company + Impressum + Tech Stack + KYB/VIES + OFAC + Fraud Risk |
| `GET /v1/company` | `/v1/company?domain=stripe.com` | `~1.0–2.5s` | Website, Impressum directors, contacts, socials & tech stack |
| `GET /v1/risk` | `/v1/risk?target=ceo@stripe.com` | `~150–350ms` | Ultra-fast DNS/MX/SPF/DMARC + RDAP domain age + disposable fraud score |
| `GET /v1/kyb` | `/v1/kyb?vat=IE6388047V` | `~300–800ms` | EU VIES VAT check + GLEIF LEI lookup + OFAC SDN sanctions screening |

***

### Batch Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `targets` | Array of strings | `["stripe.com", "sipgate.de", "doctolib.fr"]` | Domains or email addresses to enrich and score. |
| `mode` | String | `"full"` | Intelligence mode: `"full"`, `"company"`, `"risk"`, or `"kyb"`. |
| `vatNumbers` | Array of strings | `[]` | Optional EU VAT numbers (e.g., `DE123456789`, `IE6388047V`) for direct VIES + OFAC verification. |
| `companyNames` | Array of strings | `[]` | Optional legal entity names for direct GLEIF LEI + OFAC sanctions screening. |
| `includeSubpages` | Boolean | `true` | Crawl `/impressum`, `/legal`, `/about`, and `/contact` subpages for deeper legal & contact extraction. |

***

### Example Output Record

```json
{
  "input": "sipgate.de",
  "mode": "full",
  "domain": "sipgate.de",
  "companyName": "sipgate",
  "legalName": "sipgate GmbH",
  "country": "DE",
  "directors": ["Tim Mois", "Thilo Salmon"],
  "registrationNumber": "HRB 39841",
  "vatNumber": "DE218839597",
  "vatValid": true,
  "sanctionsHit": false,
  "riskScore": 0,
  "riskVerdict": "allow",
  "isB2BCorporateDomain": true,
  "mailProvider": "Google Workspace",
  "hasSpf": true,
  "hasDmarc": true,
  "techStack": ["Cloudflare", "Google Tag Manager", "HubSpot"],
  "emails": ["info@sipgate.de"],
  "phones": ["+49 211 63 55 55 0"],
  "hasPricingPage": true
}
```

***

### Pricing & Store Tier Discounts

Transparent **Pay-Per-Event** pricing with automatic discounts for higher Apify plans:

| Plan Tier | Actor Start | Per Enriched Record / API Call |
|---|---|---|
| **Free** | $0.00005 | $0.0035 |
| **Bronze** | $0.00005 | $0.0033 |
| **Silver** | $0.00005 | $0.0031 |
| **Gold / Platinum / Diamond** | $0.00005 | $0.0029 |

***

### Connect as an MCP Server (Claude, Cursor, Windsurf, n8n)

This Actor natively exposes a **Streamable HTTP Model Context Protocol (MCP)** endpoint at `/mcp` with 4 tools (`enrich_b2b_full`, `enrich_company_profile`, `assess_email_domain_risk`, `verify_kyb_vat_sanctions`).

Add it directly to **Cursor**, **Windsurf**, **Claude Desktop** (via remote MCP), or any MCP-compatible AI agent:

```json
{
  "mcpServers": {
    "b2b-company-kyb-risk": {
      "url": "https://whthpnd--b2b-company-kyb-risk-api.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

# Actor input Schema

## `targets` (type: `array`):

List of company domains (e.g., stripe.com, sipgate.de, doctolib.fr) or email addresses (e.g., info@sipgate.de) to enrich and score.

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

Choose 'full' for complete Company + Impressum + Tech Stack + KYB + Fraud Risk, or run a single lightweight module.

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

Optional EU VAT IDs (e.g., IE6388047V, DE218839597) to validate directly via EU Commission VIES + OFAC.

## `companyNames` (type: `array`):

Optional legal names to verify directly against GLEIF Global LEI and US Treasury OFAC SDN sanctions.

## `includeSubpages` (type: `boolean`):

Automatically inspect /impressum, /legal, /about, and /contact pages to extract directors, VAT IDs, phones, and registration numbers.

## Actor input object example

```json
{
  "targets": [
    "stripe.com",
    "sipgate.de",
    "doctolib.fr"
  ],
  "mode": "full",
  "vatNumbers": [],
  "companyNames": [],
  "includeSubpages": true
}
```

# Actor output Schema

## `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 = {
    "targets": [
        "stripe.com",
        "sipgate.de",
        "doctolib.fr"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("whthpnd/b2b-company-kyb-risk-api").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 = { "targets": [
        "stripe.com",
        "sipgate.de",
        "doctolib.fr",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("whthpnd/b2b-company-kyb-risk-api").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 '{
  "targets": [
    "stripe.com",
    "sipgate.de",
    "doctolib.fr"
  ]
}' |
apify call whthpnd/b2b-company-kyb-risk-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,whthpnd/b2b-company-kyb-risk-api"
        }
    }
}
```

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/y4Ouhvfj491oIfJoa/builds/VEk3v9ybhb8pYhG9h/openapi.json
