# German Insolvency Announcements Monitor (`webdesigndetail/german-insolvency-announcements-scraper`) Actor

Monitor official German insolvency announcements by state, publication type, and date. Export court, case, debtor/company, register, and optional publication text data.

- **URL**: https://apify.com/webdesigndetail/german-insolvency-announcements-scraper.md
- **Developed by:** [Webdesign Detail](https://apify.com/webdesigndetail) (community)
- **Categories:** News, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

## German Insolvency Announcements Monitor

Find recent insolvency announcements published by Germany's official federal and state
justice portal. Filter by federal state, publication type, and date, then export normalized
court, case, debtor or company, register, and optional publication-text data.

Use the Actor for:

- credit-risk and supplier-risk monitoring;
- legal, restructuring, and due-diligence research;
- regional insolvency trend datasets;
- scheduled collection of newly published announcements;
- structured JSON, CSV, Excel, API, and automation workflows.

The Actor uses the official public search workflow at
[neu.insolvenzbekanntmachungen.de](https://neu.insolvenzbekanntmachungen.de/ap/suche.jsf).
It is independent and is not affiliated with German justice authorities.

### Start in less than a minute

The prefilled input searches recent protective-measure announcements in Baden-Württemberg,
returns at most 10 records, and skips the slower full-text step.

1. Open **Input**.
2. Keep the defaults or select another state and publication type.
3. Click **Start** and export the resulting dataset.

Equivalent input:

```json
{
  "federalState": "BW",
  "announcementType": "SICHMASS",
  "includeDetailText": false,
  "maxItems": 10,
  "maxPages": 2,
  "proxyConfiguration": {"useApifyProxy": true}
}
```

Enable `includeDetailText` when you need the complete announcement. Keeping it disabled makes
the first run faster while preserving the identifying court, case, debtor/company, location,
and register fields.

### Output

Each dataset record has a stable `recordId`, which makes repeated scheduled exports easier to
deduplicate. A representative record has this shape:

```json
{
  "source": "neu.insolvenzbekanntmachungen.de",
  "recordId": "stable-record-identifier",
  "publicationDate": "2026-10-16",
  "caseNumber": "2 IN 123/26",
  "court": "Example court",
  "debtorName": "Example GmbH",
  "debtorLocation": "Example city",
  "registerCourt": "Example register court",
  "registerType": "HRB",
  "registerNumber": "123456",
  "announcementType": "Protective measures",
  "federalState": "Baden-Württemberg",
  "detailText": null,
  "sourceUrl": "https://neu.insolvenzbekanntmachungen.de/ap/suche.jsf",
  "scrapedAt": "2026-10-17T10:00:00Z"
}
```

Records are written as soon as each result page is parsed. `RUN_SUMMARY` contains counts,
timings, the sanitized effective input, retry information, typed errors, and `isPartial`.

### Pricing and run sizing

The Store currently lists a **$1.00 Actor start** and **$0.002 per result**. At those rates, a
successful 10-record default run costs about **$1.02** in Actor events. Check the Pricing tab
before running because Store pricing can change.

For recurring monitoring, start with one state, a short date window, and 10 records. Increase
the limits only after confirming that the selected query returns the data you need.

### Input reference

| Field | Default | Purpose |
| --- | --- | --- |
| `federalState` | `BW` | German federal-state code, or `NO_CODE` for all states |
| `announcementType` | `SICHMASS` | Publication type from the source portal |
| `dateFrom` | 14 days before `dateTo` | First publication date, `YYYY-MM-DD` |
| `dateTo` | Today in Europe/Berlin | Last publication date, `YYYY-MM-DD` |
| `includeDetailText` | `false` | Open each announcement and extract its complete text |
| `maxItems` | `10` | Exact unique-record limit, maximum 1,000 |
| `maxPages` | `2` | Result-page safety limit |
| `requestDelayMs` | `1000` | Polite interaction delay with a small jitter |
| `navigationTimeoutSecs` | `30` | Browser navigation and result timeout |
| `maxRetries` | `5` | Clean browser/proxy sessions after temporary failures |
| `proxyConfiguration` | Apify Proxy enabled | Required integrated proxy configuration |

Apify Proxy is required. The Actor rejects disabled proxy configuration and custom proxy
URLs. It never logs proxy URLs or credentials.

### Reliability

- A run that cannot obtain its first valid result page fails visibly.
- A query exceeding the source portal's 1,000-result cap fails with `queryTooBroad` and asks
  you to narrow the filters.
- Temporary browser, portal, or proxy problems create a clean context and sticky proxy session.
- Detail-document failures preserve the base record with `detailText: null`.
- A later-page failure preserves already stored records and sets `isPartial: true`.
- Repeated pages and duplicate records are detected.

### Responsible use

The source can publish information about natural persons and companies. Use the Actor only
for a lawful purpose, minimize retention, restrict access, and comply with the source terms
and applicable data-protection law.

The portal states that result sessions expire after 60 minutes and that direct linking to
search results is not permitted. Dataset records expose the official search-page URL and do
not expose session-bound popup URLs.

### Local development

Requirements: Python 3.12, Node.js 22, Apify CLI, and an Apify account with Proxy access.

```bash
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --require-hashes -r requirements-dev.lock
playwright install chromium
apify login
apify run --purge
```

Focused checks:

```bash
python -m ruff check .
python -m pytest
python -m compileall -q src
apify validate-schema
docker build --platform linux/amd64 -t german-insolvency-announcements-scraper:local .
```

### GitHub deployment

Pull requests run `.github/workflows/ci.yml`. Pushes to `main` validate the project, deploy
the `beta` tag, and run a one-record cloud smoke test against the exact build. Production
`latest` deployment requires a manual workflow run with `release_latest=true` and approval
through the `apify-production` GitHub environment.

### Source limitations

The portal caps broad searches at 1,000 results. Older consumer-insolvency records can require
additional identifying search parameters. The Actor reports what the source returns and does
not attempt to bypass those rules.

# Changelog

This Actor's version history is a separate document: https://apify.com/webdesigndetail/german-insolvency-announcements-scraper/changelog.md

# Actor input Schema

## `federalState` (type: `string`):

Select one German federal state or search all states.

## `announcementType` (type: `string`):

The source portal calls this Gegenstand der Veröffentlichung.

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

First publication date in YYYY-MM-DD format. Leave empty in JSON input to use 14 days before dateTo.

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

Last publication date in YYYY-MM-DD format. Leave empty in JSON input to use today's date in Europe/Berlin.

## `includeDetailText` (type: `boolean`):

Open each announcement to include its full publication text. Leave disabled for a faster first run.

## `maxItems` (type: `integer`):

Stop after this many unique records. Start with 10, then increase the limit after checking the output.

## `maxPages` (type: `integer`):

Safety cap for result-page pagination.

## `requestDelayMs` (type: `integer`):

Base delay between source interactions. A small random jitter is added automatically.

## `navigationTimeoutSecs` (type: `integer`):

Maximum time to wait for portal navigation or results.

## `maxRetries` (type: `integer`):

Maximum clean browser contexts used after temporary portal or proxy failures.

## `proxyConfiguration` (type: `object`):

Apify Proxy is required. One sticky proxy session is kept for each stateful browser context.

## Actor input object example

```json
{
  "federalState": "BW",
  "announcementType": "SICHMASS",
  "includeDetailText": false,
  "maxItems": 10,
  "maxPages": 2,
  "requestDelayMs": 1000,
  "navigationTimeoutSecs": 30,
  "maxRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `announcements` (type: `string`):

Normalized insolvency announcement records in the default dataset.

## `runSummary` (type: `string`):

Counts, completion state, proxy-session rotations, and sanitized typed errors.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("webdesigndetail/german-insolvency-announcements-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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("webdesigndetail/german-insolvency-announcements-scraper").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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call webdesigndetail/german-insolvency-announcements-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,webdesigndetail/german-insolvency-announcements-scraper"
        }
    }
}
```

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/T1TuTUYWykoUja4Qk/builds/dyg2ThTm62pKAAiuk/openapi.json
