# German Imprint Scraper (`codescraper/german-imprint-scraper`) Actor

A powerful Actor scraper to find and extract legal "Impressum" data from German websites. Get company names, addresses, decision-makers, legal IDs, and more, all automatically.

- **URL**: https://apify.com/codescraper/german-imprint-scraper.md
- **Developed by:** [CodeScraper](https://apify.com/codescraper) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 106 total users, 3 monthly users, 100.0% runs succeeded, 6 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$3.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🇩🇪 German Impressum Scraper – Extract Legal Details Automatically

This Apify actor automatically detects and extracts **Impressum (legal disclosure)** data from German websites.
It helps you collect structured company and legal information for **compliance**, **CRM enrichment**, and **business intelligence**.

***

### 🚀 What It Does

The scraper visits each website, finds its Impressum page, and extracts:

- 🏢 **Company name**, **decision maker name** and **decision maker role** (e.g., Geschäftsführer, Inhaber)
- 🏠 **Full address** + separated fields (street, house number, postal code, city, country)
- ☎️ **Phones** and 📧 **emails**
- 🧾 **Register number**, **register court**, and **tax ID**
- 🌐 **Social media links** (Facebook, Instagram, X/Twitter, LinkedIn, etc.)
- 🧠 **Meta title** and **meta description**

The output is fully structured and **Excel-ready**.

***

### ⚙️ Input Configuration

| Field           | Type    | Description                                                       |
| --------------- | ------- | ----------------------------------------------------------------- |
| `startUrls`     | Array   | One or more website URLs to scrape.                               |
| `useProxy`      | Boolean | Enable Apify proxy or custom proxy.                               |
| `proxyConfig`   | Object  | Custom proxy configuration (optional).                            |
| `userAgent`     | String  | Override default User-Agent header.                               |
| `excludeFields` | Object  | Toggle off fields you don’t want (address, phones, emails, etc.). |

***

#### 🧩 Example Input

```json
{
  "startUrls": [
    { "url": "https://www.marley.de" },
    { "url": "https://www.dr-johanna-budwig.de" }
  ],
  "useProxy": false,
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
  "excludeFields": {
    "phones": false,
    "emails": false,
    "taxId": false
  }
}
```

***

#### 📊 Example Output

```json
{
  "mainUrl": "https://www.marley.de",
  "impressumUrl": "https://www.marley.de/impressum",
  "address": "Adolf-Oesterheld-Str. 28, 31515 Wunstorf, DE",
  "address/street": "Adolf-Oesterheld-Str.",
  "address/house number": "28",
  "address/postal code": "31515",
  "address/city": "Wunstorf",
  "address/country": "DE",
  "companyName": "Marley Deutschland GmbH",
  "decisionMakerName": "Stefan Ostertag",
  "decisionMakerRole": "Geschäftsführer",
  "phones": "+495031530",
  "emails": "info@marley.de",
  "registerNumber": "HRB 110009",
  "registerCourt": "Amtsgericht Hannover",
  "taxId": "DE811119134",
  "social/x": "https://twitter.com/marleyeurope",
  "metaTitle": "Marley Deutschland GmbH",
  "metaDescription": "Marley – Innovative Haustechnik und Dachentwässerungssysteme."
}
```

***

### 🧠 Features

- 🇩🇪 Extracts Impressum data from any German website
- 🔍 Automatically finds Impressum links even if nested in menus or footers
- 🏠 Provides both full address and separated address fields
- ☎️ Detects phones, emails, and social links
- 🌍 Supports proxies and custom User-Agent
- ⚙️ Flexible Exclude Fields toggles in input
- 📊 Clean Excel/CSV output with consistent column order

***

### 💡 Use Cases

- Build databases of German businesses
- Legal & compliance verification (Impressum law)
- Contact data enrichment for CRMs
- Market research and lead generation

***

### ⚖️ Legal Disclaimer

This actor only extracts publicly available business information from Impressum pages in accordance with §5 TMG.
Data such as company representative names are collected solely for transparency, compliance, or research purposes — not for unsolicited contact or personal data processing under GDPR.

***

### 🧑‍💻 Developer Info

**Author:** `codescraper`
**Contact:** `codescraper011@gmail.com`

### 🏷️ Tags

`impressum` · `web-scraping` · `legal` · `data-extraction` · `germany` · `automation`

***

# Actor input Schema

## `startUrls` (type: `array`):

Enter one or more website URLs to scrape Impressum data from.

## `userAgent` (type: `string`):

Optional. Use a custom browser user-agent string for requests.

## `excludeAddress` (type: `boolean`):

Exclude full and partial address fields.

## `excludePhones` (type: `boolean`):

Exclude phone numbers.

## `excludeEmails` (type: `boolean`):

Exclude email addresses.

## `excludeTaxId` (type: `boolean`):

Exclude Umsatzsteuer-ID field.

## `excludeRegisterNumber` (type: `boolean`):

Exclude Handelsregister number.

## `excludeRegisterCourt` (type: `boolean`):

Exclude Handelsregister court.

## `excludeDecisionMaker` (type: `boolean`):

Exclude Geschäftsführer, Inhaber, or similar fields.

## `excludeSocial` (type: `boolean`):

Exclude extracted social media links.

## `excludeMeta` (type: `boolean`):

Exclude page meta title and description.

## `excludeMainUrl` (type: `boolean`):

Exclude the website's main homepage URL from the output.

## `excludeImpressumUrl` (type: `boolean`):

Exclude the URL of the Impressum page from the output.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.marley.de"
    },
    {
      "url": "https://www.dr-johanna-budwig.de/"
    }
  ],
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.marley.de"
        },
        {
            "url": "https://www.dr-johanna-budwig.de/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codescraper/german-imprint-scraper").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 = { "startUrls": [
        { "url": "https://www.marley.de" },
        { "url": "https://www.dr-johanna-budwig.de/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("codescraper/german-imprint-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.marley.de"
    },
    {
      "url": "https://www.dr-johanna-budwig.de/"
    }
  ]
}' |
apify call codescraper/german-imprint-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=codescraper/german-imprint-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/0yAZU0yPvGQLGuDXX/builds/6H3taQR2e7y15gcmt/openapi.json
