# Telefonbuch.de Business Scraper (`santamaria-automations/telefonbuch-de-scraper`) Actor

Scrape business listings from Das Telefonbuch (dastelefonbuch.de), Germany's official phone directory. Extract phone numbers, addresses, opening hours, ratings, and contact details for businesses across all German cities.

- **URL**: https://apify.com/santamaria-automations/telefonbuch-de-scraper.md
- **Developed by:** [Alessandro Santamaria](https://apify.com/santamaria-automations) (community)
- **Categories:** Lead generation, Automation, Other
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 search result scrapeds

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

## Das Telefonbuch Business Scraper

Scrape business and person listings from [Das Telefonbuch](https://www.dastelefonbuch.de), Germany's official phone directory covering millions of businesses and residents.

### Features

- **Keyword + location search** — Find businesses or residents by type and city
- **Business & person search** — Toggle via `searchType` (`business` or `person`)
- **Pagination** — Automatically crawls multiple result pages, follows the site's own `rel="next"` link for robustness
- **Pay-per-result pricing** — Only pay for what you scrape

### Output Fields

Every result includes these fields:

| Field | Type | Description |
|-------|------|-------------|
| `company_logo_url` | string | Real business logo from Das Telefonbuch's CDN (`ies.v4all.de`), never a generic placeholder |
| `name` | string | Unique business or person name (taken from `<h1 itemprop="name">`, never the site's generic "Das Telefonbuch" org block) |
| `description` | string | Business description when present |
| `address` | string | Full formatted address |
| `street` | string | Street line incl. house number |
| `postal_code` | string | 5-digit German postal code |
| `city` | string | City |
| `country` | string | Always `DE` |
| `phone` | string | **Full** phone number (never truncated) |
| `fax` | string | **Full** fax number (never truncated) |
| `mobile` | string | Mobile number when listed |
| `email` | string | Email address, including Cloudflare-obfuscated ones which are automatically decoded |
| `website` | string | Official business website |
| `category` | string | Business category, with the redundant `Branche:` prefix stripped |
| `opening_hours` | string | Full weekly schedule when available (e.g. `Mo 08:00-18:00; Tu 08:00-18:00; ...`) |
| `rating` | number | Aggregate star rating (0–5) |
| `review_count` | number | Total number of reviews across all sources |
| `search_keywords` | string[] | Keywords from the "Unsere Suchbegriffe" section |
| `external_review_sources` | object[] | Per-source breakdown with `source`, `rating`, `count`, `url` (Google, Yelp, 11880, golocal, TripAdvisor, anwalt.de, kennstdueinen.de, speisekarte.de, jameda, …) |
| `recent_reviews` | object[] | Individual review entries with `source`, `rating`, `author`, `date`, `text`, `url` |
| `source_url` | string | Original detail page URL |
| `source_platform` | string | Always `dastelefonbuch.de` |
| `search_type` | string | `business` or `person` |
| `scraped_at` | string | ISO-8601 UTC timestamp |

### Output Example

```json
{
  "company_logo_url": "https://ies.v4all.de/0122/TB/1126/3/4393/6914393_210x130.png",
  "name": "Spieß Doreen Rechtsanwältin und Fachanwältin für Verkehrsrecht",
  "address": "Grünstr. 15, 12555 Berlin",
  "street": "Grünstr.",
  "postal_code": "12555",
  "city": "Berlin",
  "country": "DE",
  "phone": "030 65 49 77 78",
  "fax": null,
  "email": "kanzlei@ra-spiess.de",
  "website": "http://www.ra-spiess.de",
  "category": "Rechtsanwälte Berlin",
  "opening_hours": "Mo 08:00-18:00; Tu 08:00-18:00; We 08:00-18:00; Th 08:00-18:00; Fr 08:00-18:00",
  "rating": 5.0,
  "review_count": 183,
  "search_keywords": [
    "Verkehrsrecht", "Bußgeld", "Arbeitsrecht", "Familienrecht", "..."
  ],
  "external_review_sources": [
    { "source": "golocal", "rating": 5.0, "count": 56, "url": "https://www.golocal.de/berlin/..." },
    { "source": "anwalt.de", "rating": 5.0, "count": 123, "url": "https://www.anwalt.de/..." },
    { "source": "google", "rating": 4.7, "count": 7, "url": "https://www.google.de/maps/..." }
  ],
  "recent_reviews": [
    {
      "source": "golocal",
      "rating": 5.0,
      "author": "H. Burzlaff",
      "date": "15.03.2026",
      "text": "Vielen Dank an Frau Spieß und Ihr Team. Sie hat mich nach einem Verkehrsunfall kompetent begleitet.",
      "url": "https://www.golocal.de/berlin/..."
    }
  ],
  "source_url": "https://adresse.dastelefonbuch.de/Berlin/1-Rechtsanwaelte-Doreen-Spiess-Berlin-Gruenstr.html",
  "source_platform": "dastelefonbuch.de",
  "search_type": "business",
  "scraped_at": "2026-04-10T05:13:01Z"
}
````

### Input Parameters

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `searchQuery` | string | Search keyword (e.g., "Steuerberater", "Müller") | Required |
| `location` | string | City or region (e.g., "Frankfurt", "Berlin") | Required |
| `searchType` | string | `business` or `person` | `business` |
| `maxResults` | number | Maximum results to return | 100 |
| `includeDetails` | boolean | Fetch detail pages for full profiles | true |
| `proxyConfiguration` | object | Apify proxy settings | Auto |

### Pricing

| Event | Price |
|-------|-------|
| Actor start | $0.001 |
| Search result (SERP only) | $0.002 / result |
| Detail result (with full profile) | $0.005 / result |

### Issues & Feedback

Facing an issue, or missing a feature or data field? [Open an issue on the Issues tab](https://console.apify.com/actors/cIZCiajkeYJfVWg2T/issues) — we respond quickly and ship fixes fast.

***

### Related Actors

If you scrape DACH business directories, you may also want:

- [GoYellow.de Scraper](https://apify.com/santamaria-automations/goyellow-de-scraper) — German business directory with reviews
- [11880.com Scraper](https://apify.com/santamaria-automations/11880-de-scraper) — German business directory with reviews
- [Gelbe Seiten Scraper](https://apify.com/santamaria-automations/gelbeseiten-de-scraper) — German Yellow Pages
- [Das Örtliche Scraper](https://apify.com/santamaria-automations/dasoertliche-de-scraper) — Local German directory
- [Herold.at Scraper](https://apify.com/santamaria-automations/herold-at-scraper) — Austrian Yellow Pages
- [search.ch Scraper](https://apify.com/santamaria-automations/search-ch-scraper) — Swiss business directory
- [Google Maps Scraper](https://apify.com/santamaria-automations/google-maps-scraper) — Local business intelligence
- [Website Contact Extractor](https://apify.com/santamaria-automations/website-contact-extractor) — Enrich any website with contact data

Or browse all [santamaria-automations actors](https://apify.com/santamaria-automations) for the full DACH + European scraping suite.

# Actor input Schema

## `searchQuery` (type: `string`):

Business name, category, or keyword to search for (e.g., 'Rechtsanwalt', 'Restaurant', 'Zahnarzt'). Required.

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

City or region in Germany to search in (e.g., 'Berlin', 'München', 'Hamburg'). Required.

## `searchType` (type: `string`):

Type of search: 'business' for company listings (Branchensuche), 'person' for residential phone book (Telefonbuch).

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

Maximum number of listings to scrape.

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

Fetch each listing's detail page for additional data (email, description, opening hours, reviews). Slower but richer data.

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

Apify proxy settings. Datacenter proxy typically works for Das Telefonbuch.

## Actor input object example

```json
{
  "searchQuery": "Rechtsanwalt",
  "location": "Berlin",
  "searchType": "business",
  "maxResults": 50,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

Dataset containing scraped listing data

# 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 = {
    "searchQuery": "Rechtsanwalt",
    "location": "Berlin",
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/telefonbuch-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 = {
    "searchQuery": "Rechtsanwalt",
    "location": "Berlin",
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/telefonbuch-de-scraper").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 '{
  "searchQuery": "Rechtsanwalt",
  "location": "Berlin",
  "maxResults": 50
}' |
apify call santamaria-automations/telefonbuch-de-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=santamaria-automations/telefonbuch-de-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Telefonbuch.de Business Scraper",
        "description": "Scrape business listings from Das Telefonbuch (dastelefonbuch.de), Germany's official phone directory. Extract phone numbers, addresses, opening hours, ratings, and contact details for businesses across all German cities.",
        "version": "1.0",
        "x-build-id": "w7vmwoKDdco0edeCx"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/santamaria-automations~telefonbuch-de-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-santamaria-automations-telefonbuch-de-scraper",
                "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/santamaria-automations~telefonbuch-de-scraper/runs": {
            "post": {
                "operationId": "runs-sync-santamaria-automations-telefonbuch-de-scraper",
                "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/santamaria-automations~telefonbuch-de-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-santamaria-automations-telefonbuch-de-scraper",
                "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",
                "required": [
                    "searchQuery",
                    "location"
                ],
                "properties": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Business name, category, or keyword to search for (e.g., 'Rechtsanwalt', 'Restaurant', 'Zahnarzt'). Required."
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City or region in Germany to search in (e.g., 'Berlin', 'München', 'Hamburg'). Required."
                    },
                    "searchType": {
                        "title": "Search Type",
                        "enum": [
                            "business",
                            "person"
                        ],
                        "type": "string",
                        "description": "Type of search: 'business' for company listings (Branchensuche), 'person' for residential phone book (Telefonbuch).",
                        "default": "business"
                    },
                    "maxResults": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape.",
                        "default": 100
                    },
                    "includeDetails": {
                        "title": "Include Full Details",
                        "type": "boolean",
                        "description": "Fetch each listing's detail page for additional data (email, description, opening hours, reviews). Slower but richer data.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy settings. Datacenter proxy typically works for Das Telefonbuch.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
