# German Local Business Listings Scraper (`myagizm/gelbe-seiten-de-scraper`) Actor

Search public business listings by German city and category. Returns flat business names, addresses, contact details, hours, and ratings when available.

- **URL**: https://apify.com/myagizm/gelbe-seiten-de-scraper.md
- **Developed by:** [MYM](https://apify.com/myagizm) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.10 / 1,000 business results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Local Business Listings Scraper – Gelbe Seiten Scraper for German Yellow Pages Business Leads (No API Key, No Login)

<p align="center">
  <img src="https://img.shields.io/badge/Apify-Actor-00b96b?logo=apify&logoColor=white" alt="Apify Actor">
  <img src="https://img.shields.io/badge/API%20Key-not%20needed-blue" alt="No API key">
  <img src="https://img.shields.io/badge/Login-not%20needed-blue" alt="No login">
  <img src="https://img.shields.io/badge/Country-Germany%20(DE)-black" alt="Germany">
  <img src="https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange" alt="Dataset exports">
  <img src="https://img.shields.io/badge/Pricing-pay%20per%20result-success" alt="Pay per result">
</p>

**Extract German business leads from public Yellow Pages–style listings by category and city.** Enter a keyword such as `Restaurant`, `Zahnarzt`, `Hotel` or `Friseur` plus a German city such as `Berlin`, `Hamburg` or `München`. Each business becomes one flat dataset row with its **name, category, full address, postal code, phone number, website, description, opening hours, rating, review count and GPS coordinates** when the public listing provides them. No Gelbe Seiten account, no API key, no login.

> Get your first results free in under 2 minutes: the prefilled input returns three Berlin restaurants.

### Table of contents

- [What it can do](#what-it-can-do)
- [Who uses it](#who-uses-it)
- [What data you get](#what-data-you-get)
- [How to use it](#how-to-use-it)
- [Input example](#input-example)
- [Output example](#output-example)
- [Limits and accuracy](#limits-and-accuracy)
- [Pricing](#pricing)
- [Tips](#tips)
- [Want other data?](#want-other-data)
- [MCP and AI agents](#mcp-and-ai-agents)
- [Integrations and API](#integrations-and-api)
- [Support](#support)
- [FAQ](#faq)
- [Related searches](#related-searches)
- [Disclaimer](#disclaimer)
- [Resources](#resources)
- [中文说明](#中文说明)

### What it can do

- ✅ Search public German business listings by **category or keyword** and **city**.
- ✅ Return up to **50 businesses per query** (the public search page lists at most 50).
- ✅ Split the address into flat `street`, `postalCode`, `city` and `country` columns, plus a combined `address`.
- ✅ Add phone, business website, description and opening hours when the listing shows them.
- ✅ Include `rating`, `reviewCount`, `latitude` and `longitude` when present.
- ✅ Give every record a stable `businessId` for deduplication across runs.
- ✅ Respect one global run time budget (`timeoutSeconds`).

Website links are returned only when they point to the business's own website, never to a directory page. Missing values are `null`; nothing is guessed or filled in.

#### Who uses it

- **B2B sales and lead generation teams** building local prospect lists in Germany (Gastronomie, Handwerk, Praxen, Hotels).
- **Marketing agencies** researching local competitors or onboarding targets by city.
- **Market researchers** counting and mapping businesses by category and Postleitzahl.
- **Data and CRM teams** enriching company records with addresses, phones and hours.

### What data you get

**Always populated** (present in every record of the reference run):

| Field | Type | Description |
|---|---|---|
| `businessId` | string | Stable opaque identifier of the listing |
| `name` | string | Business name |
| `category` | string | Business type as published in the listing (may differ from your search term) |
| `address` | string | Full address, e.g. `Alt-Köpenick 16, 12555 Berlin, DE` |
| `street` | string | Street and house number |
| `postalCode` | string | German postal code (PLZ) |
| `city` | string | City |
| `country` | string | Country code (`DE`) |

**Populated when present** in the public listing (otherwise `null`):

| Field | Type | Description |
|---|---|---|
| `phone` | string or null | Public phone number |
| `website` | string or null | The business's own website (never a directory link) |
| `description` | string or null | Public business description text |
| `openingHours` | array of strings or null | Opening schedule, e.g. `"Mo 10:00-18:30"` |
| `rating` | number or null | Average rating, e.g. `3.5` |
| `reviewCount` | integer or null | Number of reviews |
| `latitude` | number or null | Latitude |
| `longitude` | number or null | Longitude |

### How to use it

1. Open the Actor and click **Try for free**.
2. Enter a `searchTerm` (category or keyword) such as `Zahnarzt`.
3. Enter a German `city` such as `Hamburg`.
4. Set `maxItems` (1–50) and, optionally, `timeoutSeconds` (20–240).
5. Click **Start** and open the **German businesses** dataset view.
6. Export JSON, CSV or Excel, or read the dataset via API.

### Input example

```json
{
  "searchTerm": "Restaurant",
  "city": "Berlin",
  "maxItems": 3,
  "timeoutSeconds": 90
}
```

| Field | Type | Required | Default | Range | Description |
|---|---|---|---:|---:|---|
| `searchTerm` | string | yes | `Restaurant` | – | Category or business keyword, e.g. Restaurant, Zahnarzt, Hotel, Friseur. |
| `city` | string | yes | `Berlin` | – | City or locality in Germany, e.g. Berlin, Hamburg, München. |
| `maxItems` | integer | no | `10` | 1–50 | Maximum number of business listings to enrich. The public search page returns up to 50 listings per query. |
| `timeoutSeconds` | integer | no | `120` | 20–240 | One global deadline for the listing search and bounded detail requests. |

### Output example

Real items from a live run with `Restaurant` / `Berlin` (the first description is shortened):

```json
[
  {
    "city": "Berlin",
    "name": "Robert & Martin Jaenichen GbR",
    "phone": "030 6 56 02 25",
    "rating": null,
    "street": "Mahlsdorfer Str. 26",
    "address": "Mahlsdorfer Str. 26, 12555 Berlin, DE",
    "country": "DE",
    "website": null,
    "category": "Restaurant",
    "latitude": 52.4644,
    "longitude": 13.584446,
    "businessId": "6f9a81b0cbda4a15ddabab04283541a93a52ece7ab084a83c24887df17ff6604",
    "postalCode": "12555",
    "description": "Traditionelles Bäckerhandwerk seit 1932 bietet Ihnen die Bäckerei & Konditorei R.& M. Jaenichen in Berlin. Gönnen Sie sich eine kleine Auszeit vom Alltag und…",
    "reviewCount": null,
    "openingHours": ["Di 07:00-18:00", "Mi 07:00-18:00", "Do 07:00-18:00", "Fr 07:00-18:00", "Sa 08:00-13:00"]
  },
  {
    "city": "Berlin",
    "name": "First Indian Restaurant",
    "phone": "0159 01 06 83 13",
    "rating": null,
    "street": "Wundtstrasse 72",
    "address": "Wundtstrasse 72, 14057 Berlin, DE",
    "country": "DE",
    "website": null,
    "category": "CafeOrCoffeeShop",
    "latitude": 52.507088,
    "longitude": 13.283926,
    "businessId": "b800095b1dd630883d2f178eadcd18baa125ee378c890504b65c3557add2a0b3",
    "postalCode": "14057",
    "description": null,
    "reviewCount": null,
    "openingHours": ["Mo 11:00-23:00", "Di 11:00-23:00", "Mi 11:00-23:00", "Do 11:00-23:00", "Fr 11:00-23:00", "Sa 11:00-23:00", "So 11:00-23:00"]
  }
]
```

Another record from the same run, `Altstadtcafé Cöpenick`, returned `"rating": 3.5`.

### Limits and accuracy

- The public search page returns **at most 50 candidates per query**; the Actor does not claim to exhaust every business in a city. Split large cities by category or district for more coverage.
- `maxItems` is a ceiling, not a guaranteed count.
- Phone numbers, websites, ratings and hours are returned only when present in the public listing.
- `category` is the listing's own type and may differ from your search term.
- **Invalid input** (for example a missing `searchTerm`) finishes **SUCCEEDED with 0 results and no result charge**; the OUTPUT record shows the reason, e.g. `Input error: searchTerm is required.`
- A confirmed no-match search also finishes SUCCEEDED with no rows and no charge. Access blocks and parse failures finish FAILED.

### Pricing

Pay per event: **one `Business result` event per successfully stored business record.** You pay only for rows in the dataset.

| Apify plan | Price per business | Per 1,000 businesses |
|---|---:|---:|
| Free | $0.00135 | $1.35 |
| Bronze | $0.00125 | $1.25 |
| Silver | $0.00117 | $1.17 |
| Gold / Platinum / Diamond | $0.0011 | $1.10 |

Failed, empty and invalid-input runs store no rows and incur no result charge.

### Tips

- Use German category words (`Zahnarzt`, `Steuerberater`, `Bäckerei`, `Elektriker`) for the best matches.
- Start with `maxItems: 3`, check fields, then raise it to 50.
- Run several category × city combinations and deduplicate by `businessId`.
- Raise `timeoutSeconds` (up to 240) when requesting 50 businesses.
- Use `postalCode` and coordinates to filter by district or radius.
- Feed `website` values into a contact finder to collect public emails.
- **GDPR / DSGVO:** listings can include sole traders (Einzelunternehmer) whose name and phone count as personal data. Have a lawful basis (e.g. legitimate interest), respect UWG §7 for cold calls and email, honour objections and keep data minimal.

### Want other data?

- [Google Maps Scraper](https://apify.com/myagizm/google-maps-scraper) – local business listings worldwide.
- [Google Maps Reviews Scraper](https://apify.com/myagizm/google-maps-reviews-scraper) – customer reviews per place.
- [Website Contact Finder](https://apify.com/myagizm/website-contact-finder) – emails and phones from company websites.
- [Website Contact Extractor](https://apify.com/myagizm/website-contact-extractor) – contact details from web pages.
- [Email Verifier](https://apify.com/myagizm/email-verifier) – syntax, MX and SMTP checks.
- [LinkedIn Company Scraper](https://apify.com/myagizm/linkedin-company-scraper) – company profiles without cookies.
- [Trustpilot Scraper](https://apify.com/myagizm/trustpilot-scraper) – company reviews and ratings.

See all tools on the [myagizm profile](https://apify.com/myagizm).

### MCP and AI agents

AI agents (Claude, ChatGPT, Cursor and others) can call this Actor through the [Apify MCP server](https://mcp.apify.com) with `actors=myagizm/gelbe-seiten-de-scraper`. Ask, for example, "Find 20 dentists in Munich with phone numbers" and the agent fills `searchTerm`, `city` and `maxItems` and reads the dataset.

### Integrations and API

Run synchronously and get dataset items:

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~gelbe-seiten-de-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerm":"Zahnarzt","city":"München","maxItems":20,"timeoutSeconds":120}'
```

Start an asynchronous run:

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~gelbe-seiten-de-scraper/runs?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerm":"Hotel","city":"Hamburg","maxItems":50,"timeoutSeconds":240}'
```

Fetch the dataset after the run:

```bash
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=csv&clean=true&token=<YOUR_APIFY_TOKEN>"
```

### Support

Found a bug or need a field? Open a ticket in the **Issues** tab of this Actor.

### FAQ

**Do I need a Gelbe Seiten account or API key?**
No. The Actor reads public listings only; you need just an Apify account.

**How many businesses can one run return?**
Up to 50, matching the public search page limit per query.

**How do I get more than 50 results for a city?**
Run several narrower searches (different categories or districts) and deduplicate by `businessId`.

**Which cities are supported?**
Any city or locality in Germany, e.g. Berlin, Hamburg, München, Köln, Frankfurt.

**Can I search in English?**
German category words usually match best; use `Zahnarzt` rather than "dentist".

**Does it return email addresses?**
No. The schema has no email field. Use a website contact finder on the `website` column.

**Why is `website` null?**
The listing shows no own website, or only a directory link, which is excluded.

**Why does `category` differ from my search term?**
It is the category published in the listing itself.

**Are ratings always included?**
No. `rating` and `reviewCount` are `null` when the listing shows none.

**What format are opening hours?**
An array of strings such as `"Mo 10:00-18:30"`.

**What happens with an invalid input?**
The run finishes SUCCEEDED with 0 results and no result charge; the OUTPUT record explains why.

**What if nothing matches?**
A confirmed no-match search finishes SUCCEEDED with no rows and no charge.

**How long does a run take?**
At most `timeoutSeconds` (default 120, max 240).

**How much does it cost?**
From $0.0011 to $0.00135 per stored business depending on your Apify plan.

**Is the data GDPR compliant?**
The data is public, but your use must comply with GDPR/DSGVO and UWG; see Tips.

### Related searches

Gelbe Seiten scraper · German Yellow Pages scraper · Gelbe Seiten API alternative · German business leads · Germany B2B lead list · Firmendaten extrahieren · Branchenbuch scraper · Firmenadressen Deutschland · Unternehmensdaten Berlin · Telefonnummern Firmen exportieren · Leads Deutschland generieren · German local business data · Zahnarzt Liste exportieren · Restaurant Liste Berlin · Handwerker Adressen · German company phone numbers · business directory Germany scraper · Öffnungszeiten extrahieren · Postleitzahl Firmenliste · German business listings CSV · local SEO Germany data · Branchenverzeichnis export · Kaltakquise Leads · German yellow pages to Excel · B2B Adressen kaufen Alternative · Firmenverzeichnis scraper · Hamburg Firmenliste · München Unternehmen Liste

### Disclaimer

This is an independent tool and is not affiliated with, endorsed by or sponsored by Gelbe Seiten or its publishers. It reads only publicly available business listings and does not bypass access controls. You are responsible for complying with GDPR/DSGVO, UWG and other applicable laws. Trademarks belong to their owners.

### Resources

- [Apify API documentation](https://docs.apify.com/api/v2)
- [Apify MCP server](https://mcp.apify.com)
- [myagizm Store profile](https://apify.com/myagizm)

### 中文说明

## 德国本地商家目录抓取器 – Gelbe Seiten 德国黄页商家线索抓取（无需 API Key，无需登录）

<p align="center">
  <img src="https://img.shields.io/badge/Apify-Actor-00b96b?logo=apify&logoColor=white" alt="Apify Actor">
  <img src="https://img.shields.io/badge/API%20Key-not%20needed-blue" alt="无需 API Key">
  <img src="https://img.shields.io/badge/Login-not%20needed-blue" alt="无需登录">
  <img src="https://img.shields.io/badge/Country-Germany%20(DE)-black" alt="德国">
  <img src="https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange" alt="数据集导出">
  <img src="https://img.shields.io/badge/Pricing-pay%20per%20result-success" alt="按结果计费">
</p>

**按类别和城市从公开的德国黄页式商家目录中提取商家线索。** 输入关键词（如 `Restaurant`、`Zahnarzt`（牙医）、`Hotel`、`Friseur`（理发店））和德国城市（如 `Berlin`、`Hamburg`、`München`）。每个商家生成一条扁平数据记录，在公开资料提供时包含**名称、类别、完整地址、邮编、电话、网站、介绍、营业时间、评分、评论数和经纬度**。无需 Gelbe Seiten 账号、API Key 或登录。

> 2 分钟内免费获得首批结果：预填输入会返回柏林的三家餐厅。

### 目录

- [功能](#功能) · [结果字段](#结果字段) · [使用方法](#使用方法) · [输入示例](#输入示例) · [输出示例](#输出示例) · [限制与准确性](#限制与准确性) · [价格](#价格) · [使用建议](#使用建议) · [需要其他数据？](#需要其他数据) · [MCP 与 AI agent](#mcp-与-ai-agent) · [集成与 API](#集成与-api) · [支持](#支持) · [常见问题](#常见问题) · [免责声明](#免责声明) · [相关搜索](#相关搜索)

### 功能

- ✅ 按**类别/关键词**和**城市**搜索公开德国商家。
- ✅ 每次查询最多返回 **50 个商家**（公开搜索页上限）。
- ✅ 地址拆分为 `street`、`postalCode`、`city`、`country`，并提供完整 `address`。
- ✅ 资料中有时返回电话、商家网站、介绍和营业时间。
- ✅ 存在时返回 `rating`、`reviewCount`、`latitude`、`longitude`。
- ✅ 每条记录带稳定的 `businessId`，便于跨运行去重。
- ✅ 使用统一的运行时间预算 `timeoutSeconds`。

网站链接仅在指向商家自身网站时返回，不返回目录页链接。缺失值为 `null`，不会猜测或补全。

#### 适用人群

- 在德国建立本地潜客名单的 **B2B 销售与获客团队**（餐饮、手工业、诊所、酒店）。
- 按城市调研竞争对手的**营销机构**。
- 按类别和邮编统计商家的**市场研究人员**。
- 为企业记录补充地址、电话和营业时间的**数据/CRM 团队**。

### 结果字段

**始终填充**（参考运行中每条记录都有）：

| 字段 | 类型 | 说明 |
|---|---|---|
| `businessId` | 字符串 | 稳定的匿名商家标识 |
| `name` | 字符串 | 商家名称 |
| `category` | 字符串 | 商家资料中公布的类型（可能与搜索词不同） |
| `address` | 字符串 | 完整地址 |
| `street` | 字符串 | 街道和门牌号 |
| `postalCode` | 字符串 | 德国邮编（PLZ） |
| `city` | 字符串 | 城市 |
| `country` | 字符串 | 国家代码（`DE`） |

**存在时填充**（否则为 `null`）：

| 字段 | 类型 | 说明 |
|---|---|---|
| `phone` | 字符串或 null | 公开电话 |
| `website` | 字符串或 null | 商家自身网站（不含目录链接） |
| `description` | 字符串或 null | 公开商家介绍 |
| `openingHours` | 字符串数组或 null | 营业时间，如 `"Mo 10:00-18:30"` |
| `rating` | 数字或 null | 平均评分，如 `3.5` |
| `reviewCount` | 整数或 null | 评论数 |
| `latitude` | 数字或 null | 纬度 |
| `longitude` | 数字或 null | 经度 |

### 使用方法

1. 打开 Actor，点击 **Try for free**。
2. 填写 `searchTerm`（类别或关键词），如 `Zahnarzt`。
3. 填写德国城市 `city`，如 `Hamburg`。
4. 设置 `maxItems`（1–50），可选设置 `timeoutSeconds`（20–240）。
5. 点击 **Start**，打开 **German businesses** 数据集视图。
6. 导出 JSON、CSV、Excel，或通过 API 读取。

### 输入示例

```json
{
  "searchTerm": "Restaurant",
  "city": "Berlin",
  "maxItems": 3,
  "timeoutSeconds": 90
}
```

| 字段 | 类型 | 必填 | 默认值 | 范围 | 说明 |
|---|---|---|---:|---:|---|
| `searchTerm` | 字符串 | 是 | `Restaurant` | – | 类别或商家关键词，如 Restaurant、Zahnarzt、Hotel、Friseur。 |
| `city` | 字符串 | 是 | `Berlin` | – | 德国城市或地区，如 Berlin、Hamburg、München。 |
| `maxItems` | 整数 | 否 | `10` | 1–50 | 最多补充多少个商家。公开搜索页每次查询最多返回 50 个。 |
| `timeoutSeconds` | 整数 | 否 | `120` | 20–240 | 列表搜索和受限详情请求共用的全局截止时间。 |

### 输出示例

`Restaurant` / `Berlin` 真实运行中的一条记录（介绍已截断）：

```json
{
  "city": "Berlin",
  "name": "Robert & Martin Jaenichen GbR",
  "phone": "030 6 56 02 25",
  "rating": null,
  "street": "Mahlsdorfer Str. 26",
  "address": "Mahlsdorfer Str. 26, 12555 Berlin, DE",
  "country": "DE",
  "website": null,
  "category": "Restaurant",
  "latitude": 52.4644,
  "longitude": 13.584446,
  "businessId": "6f9a81b0cbda4a15ddabab04283541a93a52ece7ab084a83c24887df17ff6604",
  "postalCode": "12555",
  "description": "Traditionelles Bäckerhandwerk seit 1932 bietet Ihnen die Bäckerei & Konditorei R.& M. Jaenichen in Berlin. Gönnen Sie sich eine kleine Auszeit vom Alltag und…",
  "reviewCount": null,
  "openingHours": ["Di 07:00-18:00", "Mi 07:00-18:00", "Do 07:00-18:00", "Fr 07:00-18:00", "Sa 08:00-13:00"]
}
```

同一次运行中的 `First Indian Restaurant` 类别为 `CafeOrCoffeeShop`，`Altstadtcafé Cöpenick` 评分为 `3.5`。

### 限制与准确性

- 公开搜索页**每次查询最多 50 个候选**，本 Actor 不承诺穷尽某城市所有商家；可按类别或城区拆分搜索。
- `maxItems` 是上限，不是保证数量。
- 电话、网站、评分和营业时间仅在公开资料中存在时返回。
- `category` 来自商家资料本身，可能与搜索词不同。
- **无效输入**（如缺少 `searchTerm`）会以 **SUCCEEDED 结束，返回 0 条结果且不产生结果费用**；原因见 OUTPUT 记录，例如 `Input error: searchTerm is required.`
- 经确认的无匹配搜索同样以 SUCCEEDED 结束、无数据、不收费；访问拒绝和解析错误以 FAILED 结束。

### 价格

按事件计费：**每条成功保存的商家记录产生一个 `Business result` 事件**，只为数据集中的记录付费。

| Apify 套餐 | 每个商家 | 每 1,000 个商家 |
|---|---:|---:|
| Free | $0.00135 | $1.35 |
| Bronze | $0.00125 | $1.25 |
| Silver | $0.00117 | $1.17 |
| Gold / Platinum / Diamond | $0.0011 | $1.10 |

失败、无结果或无效输入的运行不保存记录，也不产生结果费用。

### 使用建议

- 使用德语类别词（`Zahnarzt`、`Steuerberater`、`Bäckerei`、`Elektriker`）匹配效果最好。
- 先用 `maxItems: 3` 检查字段，再提高到 50。
- 组合多个类别 × 城市运行，并按 `businessId` 去重。
- 请求 50 个商家时可将 `timeoutSeconds` 提高到 240。
- 用 `postalCode` 和坐标按城区或半径筛选。
- 将 `website` 交给联系方式查找工具获取公开邮箱。
- **GDPR / DSGVO：** 名单中可能包含个体经营者，其姓名和电话属于个人数据。请具备合法依据（如正当利益），遵守 UWG 第 7 条关于电话和邮件营销的规定，尊重反对请求并最小化数据。

### 需要其他数据？

- [Google Maps Scraper](https://apify.com/myagizm/google-maps-scraper) – 全球本地商家资料。
- [Google Maps Reviews Scraper](https://apify.com/myagizm/google-maps-reviews-scraper) – 地点评论。
- [Website Contact Finder](https://apify.com/myagizm/website-contact-finder) – 从公司网站提取邮箱和电话。
- [Website Contact Extractor](https://apify.com/myagizm/website-contact-extractor) – 网页联系方式提取。
- [Email Verifier](https://apify.com/myagizm/email-verifier) – 邮箱语法、MX、SMTP 检查。
- [LinkedIn Company Scraper](https://apify.com/myagizm/linkedin-company-scraper) – 无需 Cookie 的公司资料。
- [Trustpilot Scraper](https://apify.com/myagizm/trustpilot-scraper) – 公司评论与评分。

全部工具见 [myagizm 主页](https://apify.com/myagizm)。

### MCP 与 AI agent

AI agent（Claude、ChatGPT、Cursor 等）可通过 [Apify MCP server](https://mcp.apify.com) 使用 `actors=myagizm/gelbe-seiten-de-scraper` 调用本 Actor。例如说"找出慕尼黑 20 家带电话的牙医"，agent 会填写 `searchTerm`、`city`、`maxItems` 并读取数据集。

### 集成与 API

同步运行并获取数据：

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~gelbe-seiten-de-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerm":"Zahnarzt","city":"München","maxItems":20,"timeoutSeconds":120}'
```

异步启动运行：

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~gelbe-seiten-de-scraper/runs?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerm":"Hotel","city":"Hamburg","maxItems":50,"timeoutSeconds":240}'
```

运行结束后读取数据集：

```bash
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=csv&clean=true&token=<YOUR_APIFY_TOKEN>"
```

### 支持

发现问题或需要新字段？请在本 Actor 的 **Issues** 标签页提交。

### 常见问题

**需要 Gelbe Seiten 账号或 API Key 吗？** 不需要，只需 Apify 账号。

**一次运行最多返回多少商家？** 最多 50 个，与公开搜索页每次查询上限一致。

**如何获取某城市 50 个以上结果？** 拆分为多个更细的搜索（不同类别或城区），按 `businessId` 去重。

**支持哪些城市？** 德国任意城市或地区，如 Berlin、Hamburg、München、Köln。

**可以用英文搜索吗？** 德语类别词通常更准确，如用 `Zahnarzt` 而不是 "dentist"。

**会返回邮箱吗？** 不会，结果没有邮箱字段。可对 `website` 列使用联系方式查找工具。

**为什么 `website` 为 null？** 资料没有自身网站，或只有被排除的目录链接。

**为什么 `category` 与搜索词不同？** 它是商家资料中公布的类别。

**总会有评分吗？** 不会，没有时 `rating` 和 `reviewCount` 为 `null`。

**营业时间是什么格式？** 字符串数组，如 `"Mo 10:00-18:30"`。

**无效输入会怎样？** 以 SUCCEEDED 结束，0 条结果，不产生结果费用；原因见 OUTPUT 记录。

**没有匹配结果呢？** 经确认的无匹配搜索以 SUCCEEDED 结束，无数据、不收费。

**运行需要多久？** 不超过 `timeoutSeconds`（默认 120，最大 240）。

**费用是多少？** 根据 Apify 套餐，每个商家 $0.0011 至 $0.00135。

**数据符合 GDPR 吗？** 数据是公开的，但你的使用必须遵守 GDPR/DSGVO 和 UWG，见使用建议。

### 免责声明

本工具为独立工具，与 Gelbe Seiten 及其出版方无任何关联，未获其认可或赞助。仅读取公开商家资料，不绕过访问控制。你需自行遵守 GDPR/DSGVO、UWG 及其他适用法律。商标归其所有者所有。

### 资源

- [Apify API 文档](https://docs.apify.com/api/v2)
- [Apify MCP server](https://mcp.apify.com)
- [myagizm Store 主页](https://apify.com/myagizm)

### 相关搜索

Gelbe Seiten 抓取 · 德国黄页抓取 · 德国商家线索 · 德国 B2B 潜客名单 · Firmendaten extrahieren · 德国企业目录 · 德国公司地址 · 德国公司电话导出 · 柏林餐厅名单 · 慕尼黑牙医名单 · 汉堡酒店名单 · 德国本地商家数据 · 德国营业时间数据 · 按邮编的公司列表 · 德国商家 CSV 导出 · Branchenbuch scraper · 德国手工业者地址 · 德国本地 SEO 数据 · 德国黄页导出 Excel · 德国获客 · Gelbe Seiten API 替代方案 · 德国商家评分数据 · 德国企业坐标数据 · Firmenverzeichnis 抓取 · 德国市场调研数据

# Actor input Schema

## `searchTerm` (type: `string`):

Category or business keyword, for example Restaurant, Zahnarzt, Hotel, or Friseur.

## `city` (type: `string`):

City or locality in Germany, for example Berlin, Hamburg, or München.

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

Maximum number of business listings to enrich. The public search page returns up to 50 listings per query.

## `timeoutSeconds` (type: `integer`):

One global deadline for the listing search and bounded detail requests.

## Actor input object example

```json
{
  "searchTerm": "Restaurant",
  "city": "Berlin",
  "maxItems": 3,
  "timeoutSeconds": 90
}
```

# Actor output Schema

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

Business records in a table-friendly format.

## `fullJson` (type: `string`):

All returned business fields in JSON format.

# 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 = {
    "searchTerm": "Restaurant",
    "city": "Berlin",
    "maxItems": 3,
    "timeoutSeconds": 90
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/gelbe-seiten-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 = {
    "searchTerm": "Restaurant",
    "city": "Berlin",
    "maxItems": 3,
    "timeoutSeconds": 90,
}

# Run the Actor and wait for it to finish
run = client.actor("myagizm/gelbe-seiten-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 '{
  "searchTerm": "Restaurant",
  "city": "Berlin",
  "maxItems": 3,
  "timeoutSeconds": 90
}' |
apify call myagizm/gelbe-seiten-de-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,myagizm/gelbe-seiten-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/9J0jVmoQ0AKxBbSe7/builds/lVLxtC4PmiCmdLXbX/openapi.json
