# German Insolvency API — Insolvenzbekanntmachungen (`pat1987/german-insolvency-notices-monitor`) Actor

German insolvency API. Monitor official company insolvency notices (Insolvenzbekanntmachungen, §9 InsO) from neu.insolvenzbekanntmachungen.de. Filter by company, court, date & notice type; consumer (Verbraucher) cases excluded. JSON output for KYB, credit risk & Bonität monitoring. Unofficial.

- **URL**: https://apify.com/pat1987/german-insolvency-notices-monitor.md
- **Developed by:** [Patrick Lierse](https://apify.com/pat1987) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 3 total users, 1 monthly users, 87.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.005 / actor start

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Insolvency Notices Monitor (Company / Regelinsolvenz)

Unofficial Apify actor that monitors **official German company insolvency
announcements** (Insolvenzbekanntmachungen, published under §9 InsO) from
[`neu.insolvenzbekanntmachungen.de`](https://neu.insolvenzbekanntmachungen.de).
Not affiliated with or endorsed by any German authority. Data source
attribution: neu.insolvenzbekanntmachungen.de (official announcements, §5 UrhG).

### Example

**Input**

```json
{
    "court": "München",
    "noticeType": "eroeffnung",
    "maxResults": 1
}
````

**Output** (one dataset item per company notice, trimmed)

```json
{
    "companyName": "CL Capital Investments GmbH",
    "court": "München",
    "caseNumber": "1542 IN 1744/25",
    "noticeType": "Eröffnung",
    "noticeDate": "2026-06-12",
    "registeredAddress": "Hettstedt",
    "registerReference": "HRB 12345"
}
```

(Each item also carries `sourceUrl`, `cachedAt` and `dataSource`. Consumer /
personal-debtor notices are never emitted — see below.)

### Please read first

- **What this is.** This actor searches the official German insolvency portal by
  company name, insolvency court, publication-date range and notice type, and
  returns **structured, company-only** notices (court, case number, notice type,
  date, registered seat, register reference). It is a monitoring tool for
  counterparty, supplier and debtor risk.
- **Unofficial tool — not affiliated with or endorsed by any German authority.**
  The data comes from the official portal but this actor is an independent
  third-party tool. Notices may contain errors; verify against the source before
  relying on them.
- **Public-data basis (§9 InsO) and robots.txt.** Insolvency announcements are
  *published to the public by statute* under §9 InsO and are freely readable in a
  browser. The portal's `robots.txt` disallows the search path (it targets
  indexing crawlers of a session-bound JSF app, not statutory public-record
  lookups). By **default the actor searches** the portal; set
  `respectRobots: true` to strictly honour robots.txt, in which case the actor
  will refuse to search. Either way it never evades rate limits or anti-bot
  measures.
- **Company data only — no consumer / personal data (GDPR).** Consumer
  (Verbraucher / "IK") notices and bare natural-person debtors are **filtered out
  in code** and never appear in the output; the Vorname (first-name) field is
  never searched and the free-text notice body is never fetched. If you process
  the output you become the data controller for it under the GDPR.
- **Full legal basis.** See [`COMPLIANCE.md`](./COMPLIANCE.md) for the complete
  Legitimate Interest Assessment (LIA) and design rules.

### What it does

Searches the official portal by company name, insolvency court, publication
date range, and notice type, and returns **structured, company-only** results.
Use it to monitor counterparties, suppliers, and debtors for insolvency events
(openings, dismissals for lack of assets, decisions in proceedings, …).

#### Company notices only — by design

This actor returns **company / legal-entity** insolvencies only. Consumer
(Verbraucher / "IK") notices and bare natural-person debtors are **filtered out
in code** and never appear in the output. The Vorname (first-name) search field
is never used, and the free-text notice body is not fetched. See
[`COMPLIANCE.md`](./COMPLIANCE.md) for the full design rule and Legitimate
Interest Assessment.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `companyName` | string | — | Debtor name/keyword (Firma/Nachname). Optional. |
| `court` | string | — | Insolvency court name, e.g. "München". Optional. |
| `dateFrom` | string | 14 days ago | Publication date from, `YYYY-MM-DD`. |
| `dateTo` | string | today | Publication date to, `YYYY-MM-DD`. |
| `noticeType` | enum | All | Eröffnung, Abweisung mangels Masse, … (Gegenstand). |
| `maxResults` | int | 20 | 1–100. |
| `respectRobots` | bool | `false` | See "robots.txt" below. |

The portal lists at most **1000 hits** per search and refuses to list beyond
that — keep date ranges tight for broad (no-name) queries.

### Output (one dataset item per notice)

```json
{
  "companyName": "CL Capital Investments GmbH",
  "court": "München",
  "caseNumber": "1542 IN 1744/25",
  "noticeType": "Eröffnung",
  "noticeDate": "2026-06-12",
  "registeredAddress": "Hettstedt",
  "registerReference": "HRB 12345",
  "sourceUrl": "https://neu.insolvenzbekanntmachungen.de/ap/suche.jsf",
  "cachedAt": "2026-06-12T20:00:00.000Z",
  "dataSource": "neu.insolvenzbekanntmachungen.de/ap"
}
```

No persons / personal-debtor fields are ever emitted. `sourceUrl` is the search
page: individual notices are JSF postbacks with no stable GET URL.

### Polite by construction

- **30 requests/hour** hard limit (sliding window, persisted across runs).
- **12-hour cache** — repeat queries cost zero HTTP requests.
- **Audit log** of every request, saved to the run's key-value store (`AUDIT_LOG`).
- **No** proxy rotation, captcha solving, or anti-bot evasion. If the portal
  signals automated access is unwelcome, the actor pauses rather than adapts.

### robots.txt

By **default the actor searches** the portal (`respectRobots: false`). The data
is publicly mandated by §9 InsO and freely accessible in a browser, and the
portal's `robots.txt` disallows the search path only because it is aimed at
indexing crawlers of a POST-only, session-bound JSF app — not at statutory
public-record lookups.

Set `respectRobots: true` to strictly honour robots.txt. In that mode, because
the portal disallows the search path, **the actor will not search**: it logs a
clear explanation, returns zero results, exits cleanly (no crash, no charge for
results), and tells you to set `respectRobots: false` to run a search. The actor
never evades rate limits or anti-bot measures regardless of this setting. See
[`TECHNICAL_SPEC.md` §2](./TECHNICAL_SPEC.md) and [`COMPLIANCE.md` §5](./COMPLIANCE.md).

### Pricing (pay-per-event)

This actor uses Apify's standard auto-charged events. **Suggested prices, to be
configured by the operator in the Apify Console → Monetization (not set here):**

| Event | Suggested price |
|---|---|
| `apify-actor-start` (auto, per run) | $0.005 |
| `apify-default-dataset-item` (auto, per result) | $4.00 / 1000 |

A future `deep-record` event is reserved for fetching the full notice text but
is **not** wired up (the notice body carries personal data and isn't needed).

### Local development

```bash
export PATH="$HOME/node20/bin:$PATH"
npm install
npm test                                   # offline + edge-case + rate-limit tests
node test/run-local.mjs '{"court":"München","noticeType":"eroeffnung","respectRobots":false}'
```

### Support

- Questions, bug reports, data-subject requests: https://apify.com/pat1987/german-insolvency-notices-monitor/issues
- Operator contact: patrick.lierse@googlemail.com

### Disclaimer

Unofficial tool. Insolvency data originates from the official portal and may
contain errors; verify against the source before relying on it. Users who
process the output assume their own controller responsibilities under GDPR.

# Actor input Schema

## `companyName` (type: `string`):

Company name or keyword to search for in the debtor field (Firma/Nachname), e.g. "Logistik GmbH". Optional — leave empty to list all company notices in the date range.

## `court` (type: `string`):

Optional. Name of the insolvency court to filter by, e.g. "München", "Hamburg". Matched against the portal's own court list; if not uniquely found, all courts are searched.

## `dateFrom` (type: `string`):

Start of the publication-date range. Defaults to 14 days ago. The portal lists at most 1000 hits per search, so keep ranges tight for broad queries.

## `dateTo` (type: `string`):

End of the publication-date range. Defaults to today.

## `noticeType` (type: `string`):

Optional. Restrict to one announcement type. Leave as 'All types' for everything.

## `maxResults` (type: `integer`):

Maximum number of company notices to return (1–100).

## `respectRobots` (type: `boolean`):

Default false: the actor searches the portal (data is public by statute §9 InsO). Set true to strictly honour robots.txt — the actor will then refuse to search. Rate limits and anti-bot measures are never evaded either way.

## Actor input object example

```json
{
  "court": "München",
  "noticeType": "eroeffnung",
  "maxResults": 20,
  "respectRobots": false
}
```

# Actor output Schema

## `notices` (type: `string`):

Structured company insolvency notices (one item per match).

# 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 = {
    "companyName": "",
    "court": "München",
    "noticeType": "eroeffnung",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pat1987/german-insolvency-notices-monitor").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 = {
    "companyName": "",
    "court": "München",
    "noticeType": "eroeffnung",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pat1987/german-insolvency-notices-monitor").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 '{
  "companyName": "",
  "court": "München",
  "noticeType": "eroeffnung",
  "maxResults": 20
}' |
apify call pat1987/german-insolvency-notices-monitor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "German Insolvency API — Insolvenzbekanntmachungen",
        "description": "German insolvency API. Monitor official company insolvency notices (Insolvenzbekanntmachungen, §9 InsO) from neu.insolvenzbekanntmachungen.de. Filter by company, court, date & notice type; consumer (Verbraucher) cases excluded. JSON output for KYB, credit risk & Bonität monitoring. Unofficial.",
        "version": "0.1",
        "x-build-id": "NLaM8nejSfCe94otG"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/pat1987~german-insolvency-notices-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-pat1987-german-insolvency-notices-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/pat1987~german-insolvency-notices-monitor/runs": {
            "post": {
                "operationId": "runs-sync-pat1987-german-insolvency-notices-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/pat1987~german-insolvency-notices-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-pat1987-german-insolvency-notices-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "companyName": {
                        "title": "Company name / keyword",
                        "type": "string",
                        "description": "Company name or keyword to search for in the debtor field (Firma/Nachname), e.g. \"Logistik GmbH\". Optional — leave empty to list all company notices in the date range."
                    },
                    "court": {
                        "title": "Insolvency court (Insolvenzgericht)",
                        "type": "string",
                        "description": "Optional. Name of the insolvency court to filter by, e.g. \"München\", \"Hamburg\". Matched against the portal's own court list; if not uniquely found, all courts are searched."
                    },
                    "dateFrom": {
                        "title": "Date from (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Start of the publication-date range. Defaults to 14 days ago. The portal lists at most 1000 hits per search, so keep ranges tight for broad queries."
                    },
                    "dateTo": {
                        "title": "Date to (YYYY-MM-DD)",
                        "type": "string",
                        "description": "End of the publication-date range. Defaults to today."
                    },
                    "noticeType": {
                        "title": "Notice type (Gegenstand)",
                        "enum": [
                            "",
                            "eroeffnung",
                            "abweisung_mangels_masse",
                            "entscheidung_im_verfahren",
                            "entscheidung_nach_aufhebung",
                            "restschuldbefreiung",
                            "sicherungsmassnahme",
                            "sonstiges"
                        ],
                        "type": "string",
                        "description": "Optional. Restrict to one announcement type. Leave as 'All types' for everything.",
                        "default": ""
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of company notices to return (1–100).",
                        "default": 20
                    },
                    "respectRobots": {
                        "title": "Respect robots.txt strictly",
                        "type": "boolean",
                        "description": "Default false: the actor searches the portal (data is public by statute §9 InsO). Set true to strictly honour robots.txt — the actor will then refuse to search. Rate limits and anti-bot measures are never evaded either way.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
