# Handelsregister Germany Scraper \[Just 💰$0.9] (`blackfalcondata/handelsregister-de-scraper`) Actor

Search the German commercial register (handelsregister.de) by company name, city or register number. Each record has legal form, registered address, share capital and directors. Ready to import into a CRM or a spreadsheet for KYC checks.

- **URL**: https://apify.com/blackfalcondata/handelsregister-de-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 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

### What does Handelsregister Germany Scraper do?

Handelsregister Germany Scraper extracts structured company data from [handelsregister.de](https://handelsregister.de) — including location data. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (company metadata) where the source provides them.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **🔍 Keyword search:** search handelsregister.de by keyword with the `query` input, in the place you name in `location`.
- **🔗 Paste-mode:** paste handelsregister.de URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **📋 Detail enrichment:** toggle two-stage scraping: first collect listings, then enrich each with full description + detail-page-only fields. Off by default to keep runs fast; flip on when you need the deep payload.
- **🏛️ Official register identity:** every record carries `company_name`, `legal_form`, `status` and the full register reference — `register_id`, `registry_court`, `registry_court_code`, `register_type`, `hr_number` and `state` — ready to match against your CRM.
- **📍 Split registered address:** the registered office comes as `registered_address` and already split into `address_street`, `address_house_number`, `address_postal_code` and `address_city`, plus the `registered_seat`.
- **👤 Directors and authorised signatories:** `officers` lists every registered person or organisation with role and city; `managing_directors` and `prokura_holders` give the signatories with first and last name, and `representation_rule` states who may sign for the company.
- **📑 Capital, purpose and key dates:** `business_purpose`, `share_capital_text` with the parsed `share_capital_eur`, `incorporation_date`, `articles_date` and `last_change_date` — the facts a KYC or due-diligence check asks for.
- **🗂️ Register entries and former names:** `register_entries` with `entry_count` shows the filed changes, `previous_names` the company's former names, and `available_documents` which register documents exist.
- **♻️ Incremental mode:** recurring runs emit only directory entries that are new or updated — keep your supplier-outreach lists fresh without re-fetching the full directory. Saves 80–95% on weekly syncs.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **🔌 MCP connectors:** push your leads into Notion via Apify's MCP connectors — a tidy run-summary page, no export step, no glue code. Opt-in, deterministic field-mapping (no AI). More destinations as Apify's connector catalog grows.

### What data can you extract from handelsregister.de?

Each result includes Core company fields (`query`, `found`, `scrapedAt`, `registry_court`, `registry_court_code`, `register_type`, `hr_number`, and `register_id`, and more), detail fields when enrichment is enabled (`detailFetched`), and company metadata (`company_name`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as company metadata where the source provides them.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Company name or keyword to search the register for (e.g. "Bäckerei", "Siemens AG"). Use a JSON array for several searches, e.g. \["Bäckerei","Kaffeerösterei"].
- **`location`** — Optional. Restrict results to companies with this registered seat (city), e.g. "Hannover". Use a JSON array for several cities.
- **`maxResults`** — Maximum total records (0 = everything the register returns). The register itself shows at most 100 hits per search — narrow the keyword or add a seat for bigger universes. (default: `100`)
- **`includeDetails`** — Fetch the structured register content per company (legal form, address, business purpose, share capital, officers, register entries). Turn off for name/court/seat only. (default: `true`)
- **`includeDeleted`** — Also return companies whose register entry has been deleted (gelöscht) — useful for due diligence and history research. (default: `false`)
- **`includeRawXml`** — Attach the raw structured register document (XJustiz XML) to each record as `raw_xml` — large, increases dataset size. Needs Include Full Register Details. (default: `false`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, seats) so different filter sets never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip records whose content matches an expired record from a prior run (cross-run duplicate detection). (default: `false`)
- **`emitUnchanged`** — When incremental mode is on, also emit records whose content has not changed since the last run. (default: `false`)
- ...and 16 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "Bäckerei",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit records that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "Bäckerei",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "bäckerei-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "Bäckerei",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured company records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example company record

```json
{
  "query": "Bäckerei",
  "found": true,
  "sourceUrl": "https://www.handelsregister.de/rp_web/sucheErgebnisse/welcome.xhtml",
  "scrapedAt": "2026-10-14T13:37:04.736Z",
  "company_name": "\"... em Tetz Backes\" Bäckerei und Konditorei GmbH",
  "registry_court": "Amtsgericht Mönchengladbach",
  "registry_court_code": "R1504",
  "register_type": "HRB",
  "hr_number": "4934",
  "register_id": "Amtsgericht Mönchengladbach HRB 4934",
  "state": "Nordrhein-Westfalen",
  "registered_seat": "Mönchengladbach",
  "status": "aktuell",
  "legal_form": "Gesellschaft mit beschränkter Haftung (GmbH)",
  "registered_address": "Konstantinstraße 117, 41238 Mönchengladbach",
  "address_street": "Konstantinstraße",
  "address_house_number": "117",
  "address_postal_code": "41238",
  "address_city": "Mönchengladbach",
  "business_purpose": "der Betrieb einer Bäckerei und Konditorei sowie die Herstellung und der Verkauf von Backwaren und Lebensmitteln. Die Gesellschaft kann im In- und Ausland Zweigniederlassungen errichten, sich an andere...",
  "share_capital_text": "50.000,00 DEM",
  "representation_rule": "Die Gesellschaft hat einen oder mehrere Geschäftsführer. Ist nur ein Geschäftsführer bestellt, vertritt er die Gesellschaft allein. Sind mehrere Geschäftsführer bestellt, wird die Gesellschaft durch z...",
  "managing_directors": [
    {
      "name": "Maximilian Tetz jun.",
      "firstName": "Maximilian",
      "lastName": "Tetz jun.",
      "city": "Mönchengladbach"
    }
  ],
  "officers": [
    {
      "role": "Geschäftsführer(in)",
      "roleCode": "086",
      "isOrganisation": false,
      "name": "Maximilian Tetz jun.",
      "firstName": "Maximilian",
      "lastName": "Tetz jun.",
      "city": "Mönchengladbach"
    }
  ],
  "incorporation_date": "1994-10-24",
  "articles_date": "1994-06-29",
  "last_change_date": "2012-11-05",
  "entry_count": 4,
  "register_entries": [
    {
      "column": "6",
      "position": "1",
      "type": "Satzung",
      "text": "Gesellschaftsvertrag vom 29.06.1994"
    },
    {
      "column": "7",
      "position": "2",
      "type": "Freitext",
      "text": "Tag der ersten Eintragung in Mönchengladbach: 24.10.1994. Dieses Blatt ist zur Fortführung auf EDV umgeschrieben worden und dabei an die Stelle des bisherigen Registerblattes getreten. Freigegeben am..."
    },
    {
      "column": "7",
      "position": "2",
      "type": "Freitext",
      "text": "Gesellschaftsvertrag Blatt 7 ff. Sonderband"
    },
    {
      "column": "6",
      "position": "2",
      "type": "Insolvenz",
      "text": "Durch Beschluss des Amtsgericht Mönchengladbach (32 IN 102/07) vom 01.09.2007 wurde das Insolvenzverfahren eröffnet. Die Gesellschaft ist damit kraft Gesetzes aufgelöst. Von Amts wegen eingetragen."
    }
  ],
  "available_documents": [
    "AD",
    "CD",
    "HD",
    "DK",
    "UT",
    "... 2 more items"
  ],
  "search_result_url": "https://www.handelsregister.de/rp_web/sucheErgebnisse/welcome.xhtml",
  "portalUrl": "https://www.handelsregister.de/rp_web/erweitertesuche/welcome.xhtml",
  "scraped_at": "2026-10-14T13:37:04.736Z",
  "listingId": "a9b313a9e4ad387c795105be405a21530d24a5e8f0d4483516e62e7d850dd111",
  "searchQuery": "Bäckerei",
  "contentQuality": "full",
  "detailFetched": true,
  "source": "handelsregister.de",
  "contentHash": "722a4aadaa65ab27dc23793076786f4a27a31e283cebba48930be81cff48c73b"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape handelsregister.de

1. Go to [Handelsregister Germany Scraper](https://apify.com/blackfalcondata/handelsregister-de-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need the extra detail-page fields.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract company data from handelsregister.de for market research and competitive analysis.
- Monitor new and changed records on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape handelsregister.de?

Handelsregister Germany Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.01 per run
- **Per result:** $0.0009 per company record

Example costs:

- 10 results: **$0.019**
- 25 results: **$0.033**
- 100 results: **$0.1**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of records that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 records per run, daily polling (30 runs/month). Costs scale linearly with the number of records.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.10 | $0.01 | $0.09 (86%) | $0.43 |
| 15% — moderate broad query | $0.10 | $0.02 | $0.08 (76%) | $0.70 |
| 30% — high-volume aggregator | $0.10 | $0.04 | $0.06 (63%) | $1.11 |

Full re-scrape monthly cost at the same cadence: $3.00. First month with incremental costs $0.52 / $0.78 / $1.17 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from handelsregister.de?

The number of results depends on the search query and available records on handelsregister.de. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Handelsregister Germany Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed records on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Handelsregister Germany Scraper with other apps?

Yes. Handelsregister Germany Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Handelsregister Germany Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Handelsregister Germany Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape handelsregister.de?

This actor extracts publicly available data from handelsregister.de. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/handelsregister-de-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [1182.ee Scraper - Estonian Business Directory](https://apify.com/blackfalcondata/1182-ee-scraper?fpr=1h3gvi) — Scrape the 1182.ee Estonian business directory by keyword and get registry codes, phone numbers.
- [1188.lv Business Directory Scraper](https://apify.com/blackfalcondata/1188-lv-scraper?fpr=1h3gvi) — Scrape 1188.lv — Latvia's business directory. Search by keyword or city and get the phone number.
- [Ahrefs Blog Scraper - Posts, Authors & Full Text](https://apify.com/blackfalcondata/ahrefs-com-scraper?fpr=1h3gvi) — Scrape the ahrefs.com blog: search posts by keyword, filter by category, and export title, excerpt,.
- [Apontador Brazil Business Scraper](https://apify.com/blackfalcondata/apontador-com-br-scraper?fpr=1h3gvi) — Scrape Apontador — Brazil's local business directory. Search any city and category for business.
- [BBB Business Scraper \[Just 💰$0.54\]](https://apify.com/blackfalcondata/bbb-org-scraper?fpr=1h3gvi) — Scrape Better Business Bureau (bbb.org) business profiles in the USA and Canada: BBB rating,.
- [Bizi.si Slovenian Company Scraper](https://apify.com/blackfalcondata/bizi-si-scraper?fpr=1h3gvi) — Get Slovenian company records from the bizi.si registry: name, registration number, tax ID,.
- [Buscja Business Directory Scraper (Brazil)](https://apify.com/blackfalcondata/buscja-com-scraper?fpr=1h3gvi) — Scrape Brazilian business listings from buscja.com: name, address, phone, website, categories,.
- [ConsumerAffairs Reviews Scraper](https://apify.com/blackfalcondata/consumeraffairs-com-scraper?fpr=1h3gvi) — Scrape consumer reviews from consumeraffairs.com for any US company. Export the review text.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on handelsregister.de. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Handelsregister Germany's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Handelsregister Germany or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

handelsregister scraper, handelsregister api, apify handelsregister, handelsregister data extraction, handelsregister germany scraper, handelsregister germany api, apify handelsregister germany, handelsregister germany data extraction, handelsregister.de scraper, handelsregister.de data, handelsregister.de api.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/handelsregister-de-scraper/changelog.md

# Actor input Schema

## `query` (type: `string`):

Company name or keyword to search the register for (e.g. "Bäckerei", "Siemens AG"). Use a JSON array for several searches, e.g. \["Bäckerei","Kaffeerösterei"].

## `location` (type: `string`):

Optional. Restrict results to companies with this registered seat (city), e.g. "Hannover". Use a JSON array for several cities.

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

Maximum total records (0 = everything the register returns). The register itself shows at most 100 hits per search — narrow the keyword or add a seat for bigger universes.

## `includeDetails` (type: `boolean`):

Fetch the structured register content per company (legal form, address, business purpose, share capital, officers, register entries). Turn off for name/court/seat only.

## `includeDeleted` (type: `boolean`):

Also return companies whose register entry has been deleted (gelöscht) — useful for due diligence and history research.

## `includeRawXml` (type: `boolean`):

Attach the raw structured register document (XJustiz XML) to each record as `raw_xml` — large, increases dataset size. Needs Include Full Register Details.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, seats) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip records whose content matches an expired record from a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit records whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit records that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED records. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of records included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

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

One or more links that name a register entry, for example from a company-profile page. The link must contain the court, register type and number (such as Amtsgericht Hannover HRB 12345). When set, other search filters are ignored.

## Actor input object example

```json
{
  "query": "Bäckerei",
  "maxResults": 100,
  "includeDetails": true,
  "includeDeleted": false,
  "includeRawXml": false,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "query": "Bäckerei",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/handelsregister-de-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 = {
    "query": "Bäckerei",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/handelsregister-de-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 '{
  "query": "Bäckerei",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/handelsregister-de-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blackfalcondata/handelsregister-de-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/LgP63VtfK2QZ76ZCd/builds/nH1bgQxVRRDQznkhM/openapi.json
