# Bundesanzeiger Scraper — German Company Filings & Gazette (`attainable_turkey_bjg/bundesanzeiger-scraper`) Actor

Search bundesanzeiger.de, Germany's federal gazette, for company filings, insolvency notices and announcements. Returns the public index (company, city, area, title, date) and, optionally, full text when the site shows it without a CAPTCHA. No official public API, no login, and no CAPTCHA solving.

- **URL**: https://apify.com/attainable_turkey_bjg/bundesanzeiger-scraper.md
- **Developed by:** [Renvo Life](https://apify.com/attainable_turkey_bjg) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

## Bundesanzeiger Scraper — German Company Filings & Federal Gazette

Search [bundesanzeiger.de](https://www.bundesanzeiger.de), Germany's official federal gazette (**Bundesanzeiger**), and export structured publication records: company name, city, area, title and publication date. Optionally add the full notice text when the website shows it without a CAPTCHA.

There is no official public Bundesanzeiger API. This Actor is a gazette search tool: it runs the public website search for you and returns durable, structured fields. It does **not** log in, does **not** solve CAPTCHAs, and does **not** open paid Unternehmensregister documents. Annual accounts (`Jahresabschluss`) are often CAPTCHA-gated on the site itself; those rows are still returned as index records with `captchaRequired: true` and an empty `documentText`.

Independent tool, not affiliated with Bundesanzeiger Verlag or the Federal Ministry of Justice.

### Use cases

- Look up recent **company filings** and announcements for a named German company (for example `SAP SE`) or a register number (`HRB 12345`).
- Collect **insolvency notices** and other gazette areas as a public index (company, city, title, date).
- Export a structured table you can open in a spreadsheet or pass to another workflow, without keeping the site's short-lived result URLs.

### What you get

| Field | Description |
| --- | --- |
| `companyName` | Company or publishing entity |
| `city` | Seat / city, when shown |
| `area` | Gazette area (e.g. Gesellschaftsbekanntmachungen, Kapitalmarkt) |
| `title` | Publication title |
| `publicationDate` | ISO date (`YYYY-MM-DD`) |
| `publicationDateOriginal` | Date as shown on the site (`DD.MM.YYYY`) |
| `captchaRequired` | `true` if the full text sits behind a CAPTCHA |
| `documentText` | Full text, only when `fetchText` is on and no CAPTCHA is shown |
| `query` | The search term that produced the row |

### Example input

```json
{
  "queries": ["SAP SE"],
  "area": "all",
  "maxResults": 50,
  "fetchText": false
}
```

You can also pass a register number (`HRB 12345`) or a keyword, and optionally `startDate` / `endDate` as `DD.MM.YYYY`.

### Example output

```json
{
  "query": "SAP SE",
  "companyName": "SAP SE",
  "city": "Walldorf",
  "area": "Gesellschaftsbekanntmachungen",
  "title": "Dividendenbekanntmachung",
  "publicationDate": "2026-05-06",
  "publicationDateOriginal": "06.05.2026",
  "captchaRequired": false,
  "documentText": null,
  "source": "https://www.bundesanzeiger.de"
}
```

### Pricing

The Actor itself is free to use for now. You only pay the usual Apify platform usage for the run (compute, storage, and other platform costs on your Apify account).

### FAQ

**Is this an official Bundesanzeiger API?**
No. The gazette does not offer a documented public API. This Actor searches the public site and returns structured records.

**Can I get the full Jahresabschluss text?**
Often no. Official financial-statement full text is frequently CAPTCHA-gated. The Actor still returns the index row (`companyName`, `title`, `publicationDate`, and so on) and sets `captchaRequired: true`. It does not solve CAPTCHAs or open paid documents.

**Do result links stay valid?**
Search result URLs on the site are session-bound and expire after about 30 minutes. The Actor writes durable fields to the dataset instead of those temporary URLs.

**Does this collect personal contact data?**
No. It returns public company filings only.

### Notes and limits

- The crawler is polite: one request at a time. Use a reasonable `maxResults`.
- Public company filings only.

### How to run locally (before publishing)

```bash
cd bundesanzeiger-scraper
npm install
mkdir -p storage/key_value_stores/default
echo '{"queries":["SAP SE"],"maxResults":30,"fetchText":false}' > storage/key_value_stores/default/INPUT.json
npx apify run
## or: APIFY_LOCAL_STORAGE_DIR=./storage npm start
```

# Actor input Schema

## `queries` (type: `array`):

Company names, register numbers (e.g. HRB 12345) or keywords, one per item. Each query is searched separately.

## `area` (type: `string`):

Limit the gazette search to one area, or leave as all areas.

## `startDate` (type: `string`):

Optional lower bound for the publication date, in the gazette's own format, e.g. 01.01.2024.

## `endDate` (type: `string`):

Optional upper bound for the publication date, e.g. 31.12.2024.

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

Stop after this many publications across all queries. Keep this modest; the site uses a 30-minute session and we crawl politely (one request at a time).

## `fetchText` (type: `boolean`):

Open each publication and, if the site shows the text without a CAPTCHA, save it. Annual accounts (Jahresabschluss) are often CAPTCHA-gated; those rows stay index-only with captchaRequired=true. This actor never solves or bypasses a CAPTCHA.

## Actor input object example

```json
{
  "queries": [
    "SAP SE"
  ],
  "area": "all",
  "maxResults": 50,
  "fetchText": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Default dataset items, displayed with the Overview table view from the dataset schema.

# 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 = {
    "queries": [
        "SAP SE"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("attainable_turkey_bjg/bundesanzeiger-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 = { "queries": ["SAP SE"] }

# Run the Actor and wait for it to finish
run = client.actor("attainable_turkey_bjg/bundesanzeiger-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 '{
  "queries": [
    "SAP SE"
  ]
}' |
apify call attainable_turkey_bjg/bundesanzeiger-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,attainable_turkey_bjg/bundesanzeiger-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/LK8l1InylmlbcaI2h/builds/oZs1X26W6TDCjPsmc/openapi.json
