# Das Örtliche Scraper (`moving_beacon-owner1/das-ortliche-scraper`) Actor

Apify Actor for extracting business listings, medical practices, craftspeople, services, phone numbers, email addresses, websites, opening hours, customer ratings, and geographic coordinates from Germany's premier directory, Das Örtliche (https://www.dasoertliche.de).

- **URL**: https://apify.com/moving_beacon-owner1/das-ortliche-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Das Örtliche German Directory Scraper (dasoertliche.de)

Production-ready Apify Actor to extract business listings, medical practices, craftspeople, services, phone numbers, email addresses, websites, opening hours, customer ratings, and geographic coordinates from Germany's premier directory **Das Örtliche** (`https://www.dasoertliche.de`).

***

### Features

- **Precision German Business Search**: Query by trade, medical specialty, company name, or service (`query`) across any German town, city, or postal code (`location`).
- **Comprehensive Contact Extraction**: Extracts trade names, phone numbers, verified emails from `mailto:` links, and official business URLs.
- **Structured Address Breakdown**: Automatically splits German addresses into street name, building number, 5-digit postal code (`PLZ`), city, and urban district (`Ortsteil`).
- **Operating Hours & Status**: Captures real-time opening status and operating hours summaries.
- **Detail-Page Itemprop Enrichment**: Enriches listings with schema.org `itemprop` metadata including ratings, review counts, verified website links, and exact Google Maps GPS coordinates.
- **Anti-Bot Resilience**: Uses `curl-cffi` with Chrome TLS fingerprint impersonation, polite request throttling, and automated retry handling with exponential backoff on HTTP 429 / 5xx responses.
- **Proxy Support**: Fully compatible with Apify Proxy (German residential or European datacenter proxies recommended).
- **Dual Mode**: Runs seamlessly as an Apify Actor or as a standalone Python module with a synchronous `scrape()` function.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | String | `"arzt"` | Business trade, professional specialty, or company name (e.g. `arzt`, `apotheke`, `zahnarzt`, `elektriker`, `steuerberater`, `hotel`, `restaurant`). |
| `location` | String | `"Berlin"` | German town, city, or postal code (e.g. `Berlin`, `München`, `Hamburg`, `Köln`, `Frankfurt`, `70173`). |
| `max_records` | Integer | `20` | Maximum number of directory listings to scrape and save to the dataset. |
| `max_pages` | Integer | `2` | Maximum search result pages to crawl (each page returns up to 25 hits). |
| `details` | Boolean | `true` | When enabled, visits individual listing pages to extract verified email, website, ratings, and coordinates. |
| `details_limit` | Integer | `5` | Maximum number of listings to enrich via detail pages (`0` enriches all matched records). |
| `delay` | Float | `0.5` | Politeness pause in seconds between consecutive network requests. |
| `timeout` | Integer | `40` | Network request timeout in seconds. |
| `proxyConfiguration` | Object | `{"useApifyProxy": true}` | Apify Proxy configuration. German residential proxy groups are recommended for large-scale crawling. |

***

### Example Input JSON

```json
{
  "query": "arzt",
  "location": "Berlin",
  "max_records": 20,
  "max_pages": 2,
  "details": true,
  "details_limit": 5,
  "delay": 0.5,
  "timeout": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "DE"
  }
}
```

***

### Output Dataset Fields

Each record output to the default Apify Dataset contains the following normalized fields:

| Field | Type | Description |
|---|---|---|
| `name` | String | Company, doctor, professional, or commercial name |
| `category` | String | Industry or trade classification category |
| `keywords` | String | Subline keywords or service summary |
| `address` | String | Full formatted address string |
| `street` | String | Street name and house number |
| `postal_code` | String | German 5-digit postal code (`PLZ`) |
| `city` | String | City or municipality |
| `district` | String | Urban district or neighborhood (`Ortsteil`) |
| `phone` | String | Telephone number |
| `opening_hours` | String | Current opening status or operating hours |
| `email` | String | Contact email address |
| `website` | String | Official business website URL |
| `rating` | Float | Customer review rating score (e.g. `4.5`) |
| `review_count` | Integer | Total count of customer reviews |
| `latitude` | Float | Geographic latitude coordinate |
| `longitude` | Float | Geographic longitude coordinate |
| `detail_url` | String | Direct canonical URL to the listing on dasoertliche.de |
| `source` | String | Origin identifier (`dasoertliche.de`) |
| `scraped_at` | String | ISO 8601 UTC timestamp when scraped |

***

### Example Output Record

```json
{
  "name": "Staudt Beatrice Dr.med. Praktische Ärztin",
  "category": "Ärzte: Allgemeinmedizin (Fachärzte)",
  "keywords": "hausarzt | arzt | allgemeinarzt | allgemeinmediziner | arzt in der nähe | h...",
  "address": "Seelower Str. 13, 10439 Berlin, Prenzlauer Berg",
  "street": "Seelower Str. 13",
  "postal_code": "10439",
  "city": "Berlin",
  "district": "Prenzlauer Berg",
  "phone": "030 4 45 40 24",
  "opening_hours": "öffnet am Donnerstag",
  "email": "hausarzt@dr-staudt.de",
  "website": "http://www.dr-staudt.de",
  "rating": 4.5,
  "review_count": 3,
  "latitude": 52.553059999999995,
  "longitude": 13.411249999999999,
  "detail_url": "https://www.dasoertliche.de/?form_name=detail&id=2239131787808657831805&recuid=ELIV4XSORSBFNMCXOHTE7F2EMNM2KSHUMYRVDC2H7NC3CMQFAI&niceid=Staudt-Beatrice-Dr-med-Praktische-%C3%84rztin-Berlin-Prenzlauer-Berg-Seelower-Str&buc=2239&showbuc=0&verlNr=1126&kw=arzt&ci=Berlin&recFrom=1&pagePos=1&lastFormName=search_nat&hitno=0",
  "source": "dasoertliche.de",
  "scraped_at": "2026-11-18T10:00:00.000000+00:00"
}
```

***

### Compliance, Privacy & Legal Guidelines

- **Public Directory Data**: This actor collects only publicly accessible business contact information published in Das Örtliche.
- **GDPR Compliance**: Information concerning registered sole traders or medical practitioners should be handled in accordance with the EU General Data Protection Regulation (GDPR) and national data protection provisions. Do not use extracted contact details for unsolicited marketing communications without lawful consent.
- **Polite Crawling**: Default request throttling is configured to prevent server strain. When running large crawls, use residential proxies with country targeting (`DE`) and maintain sensible delays.
- **No Challenge Bypass**: The actor strictly uses standard HTTP client requests and adheres to published web standards without bypassing CAPTCHA or anti-bot challenge screens.

***

# Actor input Schema

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

Business trade, doctor specialty, or company name (e.g., 'arzt', 'apotheke', 'zahnarzt', 'elektriker', 'steuerberater', 'hotel', 'restaurant').

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

German town, city, or postal code (e.g., 'Berlin', 'München', 'Hamburg', 'Köln', 'Frankfurt').

## `max_records` (type: `integer`):

Maximum number of directory listings to collect.

## `max_pages` (type: `integer`):

Maximum search result pages to crawl (25 hits per page).

## `details` (type: `boolean`):

Fetch detail pages to extract email, website, ratings, review count, and geo coordinates.

## `details_limit` (type: `integer`):

Maximum number of detail pages to enrich. Set to 0 to enrich all matched records.

## `delay` (type: `number`):

Delay in seconds between requests to maintain polite crawling and prevent rate limiting.

## `timeout` (type: `integer`):

HTTP request timeout in seconds.

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

Apify Proxy or custom proxy settings. German or European residential proxies are recommended.

## Actor input object example

```json
{
  "query": "arzt",
  "location": "Berlin",
  "max_records": 20,
  "max_pages": 2,
  "details": true,
  "details_limit": 5,
  "delay": 0.5,
  "timeout": 40
}
```

# 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": "arzt",
    "location": "Berlin",
    "max_records": 20,
    "max_pages": 2,
    "details_limit": 5,
    "delay": 0.5,
    "timeout": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/das-ortliche-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": "arzt",
    "location": "Berlin",
    "max_records": 20,
    "max_pages": 2,
    "details_limit": 5,
    "delay": 0.5,
    "timeout": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/das-ortliche-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": "arzt",
  "location": "Berlin",
  "max_records": 20,
  "max_pages": 2,
  "details_limit": 5,
  "delay": 0.5,
  "timeout": 40
}' |
apify call moving_beacon-owner1/das-ortliche-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/das-ortliche-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/vKH25Q4Zs22eq3uiX/builds/diJYrokb21c8gB0iz/openapi.json
