# DACH Supplier KYB Packet (`plym-actor-factory/dach-supplier-kyb-packet`) Actor

For DE/AT/CH supplier domains: extract statutory Impressum identity, live official VIES VAT check, and official Insolvenzbekanntmachungen flag with mismatch events. Not a Northdata clone; not imprint-only. Pay only for unique verified KYB packets.

- **URL**: https://apify.com/plym-actor-factory/dach-supplier-kyb-packet.md
- **Developed by:** [Daniel Witney](https://apify.com/plym-actor-factory) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 kyb packet delivereds

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/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

## DACH Supplier KYB Packet

For **German / Austrian / Swiss supplier domains**, build one JSON **KYB packet**: statutory **Impressum** identity from the supplier’s own site, a **live official VIES** VAT check, and an **official Insolvenzbekanntmachungen** open-insolvency flag — plus typed **mismatch events**. Not a Northdata clone. Not imprint-only email scraping.

**Honest title:** batch / scheduled KYB packet over public HTTP. Not a certified Handelsregister extract, not Creditreform, not real-time gazette push.

### Value proposition

- **Cross-source join:** first-party Impressum × EU VIES × official German insolvency gazette.
- **Mismatch events:** `VAT_INVALID_OR_MISMATCH`, `VIES_UNAVAILABLE`, `INSOLVENCY_OPEN`, `HRB_PARSE_UNVERIFIED` (and incomplete helpers).
- Official / public HTTP only. **No paid Northdata / Creditreform / Handelsregister API.**
- **Pay only for unique verified KYB packets.** Impressum miss, VIES outage, and fixture health ≈ $0 product charges.
- Durable KVS checkpoint + `event_uid` dedupe.

### PRODUCTION USE (required for real KYB)

> **Store default ≠ product.** Schema defaults use `sourceMode=fixture` so Apify Store daily auto-tests leave a non-empty health dataset **without** calling supplier sites, VIES, or the gazette. That fixture path only writes a non-billable `RUN_STATUS` / `FIXTURE_HEALTH` row. It is **not** supplier verification.

For **production KYB** you **must**:

1. Set **`sourceMode` = `live`**
2. Provide `supplierUrls` (domains or URLs)
3. Use fair-use `requestPaceMs` (default 500)
4. Optionally set `viesRequesterVat` (your EU VAT) to obtain a VIES consultation / request identifier

Official references:

- [VIES VAT validation](https://ec.europa.eu/taxation_customs/vies/)
- [Insolvenzbekanntmachungen](https://www.insolvenzbekanntmachungen.de/) (UI: `neu.insolvenzbekanntmachungen.de`)
- Statutory Impressum obligations on the supplier’s own website (TMG / DDV / local equivalents) — first-party pages only

### Data limitations (read before buying)

- **Not a Northdata / Creditreform substitute.** No paid register API; HRB fields are parsed from Impressum text (best-effort) and may be incomplete → `HRB_PARSE_UNVERIFIED`.
- **VIES** can be temporarily unavailable; those runs do **not** charge as verified packets (`VIES_UNAVAILABLE` → retry).
- **Swiss (CH)** VAT is outside EU VIES; packets may still verify with `vies_status=SKIPPED` when Impressum + insolvency succeed.
- **Insolvency** search is the official public UI (fair-use). Name collisions, portal challenges, or rate limits → `INSOLVENCY_CHECK_UNAVAILABLE` (not charged as verified). Austrian/Swiss insolvency gazettes are **not** fully covered by the German portal.
- Impressum HTML varies widely; email/phone/GF parsing is best-effort.
- Fair-use pacing applies; large batches need longer `maxRunSeconds` or chunked runs.
- We cite the supplier site, the European Commission (VIES), and Justizportal Insolvenzbekanntmachungen as data origins. This Actor is not affiliated with or endorsed by them.

### Apify Store daily auto-test / default input

| Field | Default |
|-------|---------|
| `supplierUrls` | `["example-maschine.de","risk-supplier.at"]` |
| `sourceMode` | `fixture` |
| `emitFixtureDemoEvents` | `false` |
| `maxRunSeconds` | `55` |
| `maxEvents` | `500` |

On that path the Actor **SUCCEEDS** quickly, pushes exactly one `RUN_STATUS` / `FIXTURE_HEALTH` row (`billable: false`), and does **not** charge `kyb-packet-delivered`.

### Input (summary)

| Field | Notes |
|-------|--------|
| `supplierUrls` | Domains or URLs (required) |
| `sourceMode` | `fixture` (default) or `live` |
| `emitFixtureDemoEvents` | Default **false** |
| `insolvencyLookbackDays` | Default 3650 |
| `viesRequesterVat` | Optional EU VAT for consultation id |
| `maxRunSeconds` / `maxEvents` | Budgets |
| `resumeFromCheckpoint` | Default true |
| `requestPaceMs` | Fair-use delay (default 500) |

#### Production example

```json
{
  "supplierUrls": ["https://supplier.de", "partner.at"],
  "sourceMode": "live",
  "maxRunSeconds": 120,
  "requestPaceMs": 500,
  "resumeFromCheckpoint": true
}
```

### Output

#### KYB packets (billable under PPE when verified)

Typed rows include: `supplier_domain`, `legal_name`, `vat_id`, `vies_status`, `insolvency_status`, `mismatch_events`, `verified`, `evidence`, `event_uid`, `billable: true`.

#### RUN\_STATUS (never billed)

Every successful run pushes one health row (`FIXTURE_HEALTH` | `MONITOR_IDLE` | `CATCHUP_COMPLETE` | `HEALTH_OK`).

### Pricing

Pay-per-event: **`kyb-packet-delivered`** at **$0.02** per delivered unique **verified** KYB packet ($20 / 1,000). Single tier (see `docs/monetization.md` and ADR 0010). Health / incomplete / duplicate / fixture rows are never charged.

### Local development

```bash
cd actors/dach-supplier-kyb-packet
npm install
npm test
npm run build
## Store-safe fixture health:
apify run -p
## Demo typed packets locally:
## set input emitFixtureDemoEvents=true (still sourceMode=fixture)
```

### Attribution

Impressum text originates from the **supplier’s own website**. VAT validity originates from the **European Commission VIES** service. Insolvency flags originate from **Insolvenzbekanntmachungen** (Justizportal). Not an official product of those bodies.

# Actor input Schema

## `supplierUrls` (type: `array`):

German / Austrian / Swiss supplier website URLs or bare domains. Invalid entries are skipped with no charge.

## `maxRunSeconds` (type: `integer`):

Wall-clock budget for this batch.

## `maxEvents` (type: `integer`):

Stop after this many unique verified KYB packets are delivered (does not include RUN\_STATUS).

## `resumeFromCheckpoint` (type: `boolean`):

If true, resume seen event\_uids and last packet fingerprints from the default Key-Value Store.

## `sourceMode` (type: `string`):

fixture = local/CI / Apify Store daily auto-test default (no network; emits RUN\_STATUS only unless emitFixtureDemoEvents=true). live = first-party Impressum HTTP + official VIES REST + official Insolvenzbekanntmachungen search.

## `emitFixtureDemoEvents` (type: `boolean`):

When sourceMode=fixture, if true push fabricated KYB packets from local fixtures (unit/local demos only). Default false so Store daily auto-tests never emit fake packets or charge kyb-packet-delivered. Production: leave false and use sourceMode=live.

## `insolvencyLookbackDays` (type: `integer`):

Date-range lookback for Insolvenzbekanntmachungen search (default 3650 ≈ 10 years).

## `viesRequesterVat` (type: `string`):

Optional own EU VAT ID (e.g. DE123...) so VIES returns a consultation / request identifier. Not required for validity checks. Never log secrets from other inputs.

## `maxTotalChargeUsd` (type: `number`):

Optional soft budget hint for delivered packets. Platform ACTOR\_MAX\_TOTAL\_CHARGE\_USD also applies when set.

## `requestPaceMs` (type: `integer`):

Minimum delay between outbound official/public HTTP requests (fair-use pacing).

## Actor input object example

```json
{
  "supplierUrls": [
    "example-maschine.de",
    "risk-supplier.at"
  ],
  "maxRunSeconds": 55,
  "maxEvents": 500,
  "resumeFromCheckpoint": true,
  "sourceMode": "fixture",
  "emitFixtureDemoEvents": false,
  "insolvencyLookbackDays": 3650,
  "requestPaceMs": 500
}
```

# Actor output Schema

## `OUTPUT` (type: `string`):

JSON summary: delivered, charged, runStatus, checkpoint, stats

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("plym-actor-factory/dach-supplier-kyb-packet").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("plym-actor-factory/dach-supplier-kyb-packet").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 '{}' |
apify call plym-actor-factory/dach-supplier-kyb-packet --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plym-actor-factory/dach-supplier-kyb-packet"
        }
    }
}
```

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/wcKfcGC621yz4fZTQ/builds/wnpIJ9EkwLZ0VVQV0/openapi.json
