# German & DACH Impressum Scraper (Emails, CEO, VAT, HRB) (`liebreich-software/imprintpulse-dach-impressum-extractor`) Actor

German, Austrian & Swiss Impressum & legal notice scraper (§ 5 DDG / ECG): extracts company name, legal form, Geschäftsführer/CEO, emails, phone numbers, USt-IdNr. (EU VAT ID), Handelsregister (HRB/HRA/FN + court) & address ($0.015/company).

- **URL**: https://apify.com/liebreich-software/imprintpulse-dach-impressum-extractor.md
- **Developed by:** [Seyithan Akay](https://apify.com/liebreich-software) (community)
- **Categories:** Lead generation, Business, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$15.00 / 1,000 imprint extracteds

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

## ImprintPulse — DACH Impressum, Geschäftsführer, USt-IdNr. & Handelsregister Extractor

**by Liebreich Software** — Apify Store Actor · Python API · MCP Server

Jede Website in Deutschland, Österreich und der Schweiz ist per Gesetz
(§ 5 DDG / § 5 ECG / OR Art. 716b) verpflichtet, ein **öffentliches Impressum**
mit Rechtsform, Geschäftsführer/Vorstand, Adresse, E-Mail, Telefon,
**Handelsregister** (HRB/HRA + Amtsgericht) und **USt-IdNr.** (DE…/ATU…/CHE-…)
zu veröffentlichen. ImprintPulse extrahiert all das **deterministisch** —
0 CAPTCHAs, 0 Proxies, ~80 % Marge bei 512 MB RAM.

### Pricing — Pay Per Event

| Event | Price | Charged when |
|---|---|---|
| `imprint-extracted` | **$0.015** ($15 / 1.000 Firmen) | Status `ok`/`partial` **mit ≥1 Pflichtfeld** (companyName, vatId, registerNumber, executives, email oder phone) |

**Zero-Charge-Garantie:** `not_found`, `unreachable`, `ssrf_blocked` und
`error` werden transparent ins Dataset gepusht, kosten aber **$0.00**.
Deduplizierung pro Host: `https://LiebreichSoftware.com/` +
`liebreichsoftware.com` = **1 Crawl & 1 Charge**.

### Was es extrahiert

- `companyName` + `legalForm` (GmbH, UG, AG, GmbH & Co. KG, SE, KG, OHG, GbR,
  e.K., e.V., PartG mbB, Stiftung, AT: GmbH/AG/OG/KG, CH: AG/GmbH/Sàrl)
- `executives` — Geschäftsführer, Vorstand, Inhaber, Prokurist,
  Managing Director, Aufsichtsrat (Namen + Rollen, Label-Müll entfernt)
- `vatId` — `DE#########` (ISO-7064-Checksum validiert!), `ATU########`,
  `CHE-###.###.### MWST/TVA/IVA` → `vatIdFormatValid`
- `taxNumber` (Steuernummer), `registerCourt`, `registerType`
  (HRB/HRA/PR/VR/GnR/FN/UID) + `registerNumber`
- `street`, `postalCode`, `city`, `country` (DE/AT/CH)
- `emails` (mailto + `[at]`/`&#64;`-Deobfuskierung, Bild-Assets gefiltert),
  `phones` (DACH-normalisiert), `supervisoryAuthority` (IHK/HWK/BaFin/Kammer),
  `dpoEmail`
- `completenessScore` (0–100), `confidence` (high/medium/low),
  `evidenceSnippet` (≤300 Zeichen)

### Sicherheit

- **SSRF- & DNS-Rebinding-sicher:** Loopback, RFC1918, CGNAT, Link-Local
  (`169.254.169.254`), IPv6-ULA, `.local`/`.internal`, IP-Literale,
  URL-Credentials und Nicht-HTTP(S)-Schemes werden blockiert.
- **IP-Pinning:** Aufgelöste öffentliche IPs werden direkt angesteuert;
  `Host`-Header & TLS-SNI bleiben auf der Originaldomain. Jeder Redirect-Hop
  wird neu validiert.
- Streaming-Download mit harter Limit von **1,5 MB** pro Seite.

### Use Cases

- **B2B-Vertrieb:** Accounts-research & Contact-Enrichment für DACH-Leads
- **KYC / KYB:** Automatische Firmenidentität + Register-Verifikation
- **Clay / n8n / Make:** Enrichment-Column „Impressum & GF" per HTTP-Webhook
- **Compliance:** USt-IdNr.-Validierung + Vollständigkeits-Scoring
- **Lead-Listen-Hygiene:** tote/unreachable Domains sofort erkennen ($0.00)

### Schnellstart

#### Apify Store (1-Klick-Test, $0.015)

Default-Input `liebreichsoftware.com` ist im Actor vorausgefüllt —
`apify push` aus diesem Verzeichnis deployed den Actor
`imprintpulse-dach-impressum-extractor`.

#### Lokale CLI

```bash
python3 -m apify_main --domains liebreichsoftware.com,sap.com,siemens.de
## oder
.venv/bin/python apify_main.py --domains "https://example.de/impressum" --timeout 10
```

Output: JSON mit `extractedCount`, `billableCount` und `items[]`
(siehe Beispiel unten).

#### Python API

```python
import asyncio
from imprintpulse.service import ImprintPulseEngine
from imprintpulse.models import ImprintOptions

async def main():
    engine = ImprintPulseEngine()
    results = await engine.extract_many(
        ["siemens.de", "https://muster-gmbh.at/impressum"],
        options=ImprintOptions(timeout_seconds=8.0),
        max_concurrency=5,
    )
    for r in results:
        print(r.domain, r.status, r.company_name, r.vat_id, r.executives)

asyncio.run(main())
```

#### MCP Server (Batch)

```bash
python mcp_server.py            # stdio JSON-RPC
## oder FastAPI: create_mcp_router() → POST /mcp
```

Tools: `extract_dach_imprint`, `batch_extract_dach_imprints` (≤25 Domains).

### Beispiel-Output (Dataset-Record)

```json
{
  "domain": "liebreichsoftware.com",
  "status": "ok",
  "companyName": "Liebreich Software",
  "legalForm": "Einzelunternehmen",
  "executives": [{"name": "Max Liebreich", "role": "Inhaber"}],
  "vatId": "DE123456786",
  "vatIdFormatValid": true,
  "taxNumber": "123/456/78901",
  "registerCourt": "Amtsgericht München",
  "registerType": "HRB",
  "registerNumber": "HRB 123456",
  "street": "Musterstraße 12",
  "postalCode": "80331",
  "city": "München",
  "country": "DE",
  "emails": ["hallo@liebreichsoftware.com"],
  "phones": ["+491234567890"],
  "supervisoryAuthority": "IHK für München und Oberbayern",
  "dpoEmail": "datenschutz@liebreichsoftware.com",
  "completenessScore": 92,
  "confidence": "high",
  "extractedFieldsCount": 14,
  "imprintUrl": "https://liebreichsoftware.com/impressum",
  "evidenceSnippet": "Impressum Anbieterkennzeichnung gemäß § 5 DDG ..."
}
```

### Status-Semantik & Charging

| status | Bedeutung | Charge |
|---|---|---|
| `ok` | ≥1 Pflichtfeld, Score ≥ 40 | **$0.015** |
| `partial` | ≥1 Pflichtfeld, Score < 40 | **$0.015** |
| `not_found` | Seiten erreichbar, aber kein verwertbares Impressum | $0.00 |
| `unreachable` | DNS/TLS/Timeout/HTTP-Fehler | $0.00 |
| `ssrf_blocked` | Ziel verletzt Public-IP-Policy | $0.00 |
| `error` | Unerwarteter interner Fehler | $0.00 |

Budget-sicher: Charging erfolgt **vor** jedem `push_data` mit
deterministischem `idempotency_key` (`{run_id}:imprint-extracted:{domain}`).
Bei `event_charge_limit_reached` wird das bezahlte Item gepusht und der Run
stoppt sofort — keine weiteren Crawls.

### CSV-Export

Bei `exportCsvToKeyValueStore: true` (Default) landet eine
formula-injection-gesicherte `IMPRINTS_CSV` im Key-Value Store
(Spalten: domain, status, companyName, legalForm, executives, vatId,
registerType, registerNumber, registerCourt, postalCode, city, country,
emails, phones, completenessScore, imprintUrl, …).

### Tests

```bash
PYTHONDONTWRITEBYTECODE=1 .venv/bin/python -m pytest -p no:cacheprovider
```

> 50+ Unit- & Integrationstests: DE/AT/CH-Extraktion, HRB/FN/UID-Register,
> USt-IdNr.-Checksummen, `[at]`/Entity-Decoding, Impressum-Link-Discovery,
> Fallback-Pfade, SSRF/DNS-Rebinding, Deduplizierung, OWASP-CSV,
> Budget-sichere PPE-Charges (Limit 0 & Mid-Batch), Zero-Charge-Statuses.

### Technical

- Python 3.13, `httpx` AsyncClient, deterministische Regex-Pipeline (kein LLM)
- Max. 1,5 MB pro Seite, max. 5 Redirects (jeder Hop SSRF-revalidiert)
- `minMemoryMbytes: 256`, `maxMemoryMbytes: 512`
- Keine Cookies, keine Sessions, keine CAPTCHAs, keine Proxies

# Actor input Schema

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

List of domains or URLs (e.g. siemens.de, https://example.com/impressum). Normalized, deduplicated per host — one crawl & one charge per company domain. Direct /impressum URLs skip homepage discovery.

## `maxConcurrency` (type: `integer`):

Number of domains to process concurrently (1-10).

## `timeoutSeconds` (type: `number`):

Network timeout per HTTP page fetch in seconds (3.0 to 20.0).

## `followFallbackPaths` (type: `boolean`):

If no imprint link is found on the homepage, probe /impressum, /impressum.html, /imprint and /legal-notice (max 4 targeted probes).

## `exportCsvToKeyValueStore` (type: `boolean`):

Write an OWASP formula-injection-safe IMPRINTS_CSV file (all extracted fields) to the Apify Key-Value Store.

## Actor input object example

```json
{
  "domains": [
    "liebreichsoftware.com",
    "sap.com"
  ],
  "maxConcurrency": 5,
  "timeoutSeconds": 8,
  "followFallbackPaths": true,
  "exportCsvToKeyValueStore": true
}
```

# Actor output Schema

## `imprints` (type: `string`):

Dataset containing one record per input domain with extracted Impressum fields, status and quality signals.

# 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 = {
    "domains": [
        "liebreichsoftware.com",
        "sap.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("liebreich-software/imprintpulse-dach-impressum-extractor").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 = { "domains": [
        "liebreichsoftware.com",
        "sap.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("liebreich-software/imprintpulse-dach-impressum-extractor").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 '{
  "domains": [
    "liebreichsoftware.com",
    "sap.com"
  ]
}' |
apify call liebreich-software/imprintpulse-dach-impressum-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,liebreich-software/imprintpulse-dach-impressum-extractor"
        }
    }
}
```

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/a3fxiZ4ITFjt43mJp/builds/mlvWBFllf3nZpLH0o/openapi.json
