# Gelbe Seiten Scraper: German Business Leads, Phones & Websites (`actor-forge/gelbe-seiten-leads`) Actor

Scrape German business listings from Gelbe Seiten by trade and city: company name, category, street, postcode, district, business phone, website, role e-mail (info@, kontakt@), rating, reviews, opening status and listing link. No browser. $0.60 per 1,000 businesses.

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

## Pricing

from $0.60 / 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.

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

## Gelbe Seiten Scraper: German Business Leads, Phones & Websites

Scrape German business listings from Gelbe Seiten by trade and city: company name, category, street, postcode, district, business phone, website, role e-mail (info@, kontakt@), rating, reviews, opening status and listing link. No browser. $0.60 per 1,000 businesses.

**A Gelbe Seiten scraper for German B2B leads, with no browser and no proxy bill.** Gelbe Seiten (the German Yellow Pages) lists millions of local businesses, from electricians and tax advisers to dentists, restaurants and law firms. Give it **trades** (elektriker, steuerberater, zahnarzt…) and **cities or postcodes**, and get one clean row per business: **company name, main category, street, postcode, city and district**, distance from the city centre, the **business phone number**, the **website**, a **role e-mail** (info@, kontakt@…) where listed, **star rating and review count**, today's opening status, a short self-description, the logo and the Gelbe Seiten listing link. Every trade runs in every city, past the first 50 results using the site's own "Mehr anzeigen" requests. Use it for **German lead generation and cold outreach lists**, local SEO and market mapping, territory planning for field sales, competitor research and CRM enrichment. **$0.60 per 1,000 businesses**, with no compute bill on top; problems return a free status row instead of failing.

### What data does it return?

Every run outputs clean, schema-validated rows like these:

| name | category | address | phone | email | rating |
| --- | --- | --- | --- | --- | --- |
| Blachnierz & Söhne Elektroinstallationsges. mbH | Elektroinstallationen | Buckower Chaussee 82, 12277 Berlin | 030 7 21 50 20 | info@elektro-bs.de |  |
| Griesbach Elektroanlagen | Elektroinstallationen | Friedrich-Wilhelm-Str. 64, 12103 Berlin | 030 78 71 81 31 |  | 4.7 |
| EF-ES-WE Elektroanlagen GmbH | Elektroinstallationen | Im Rehgrund 42, 13503 Berlin | 030 6 90 08 00 |  | 4.8 |

### How much does it cost?

Transparent pay-per-event pricing — you only pay for what you get, and the
actor **always respects your run budget**: set a maximum total charge and it
stops cleanly at the cap instead of overrunning.

| Event | Price | Charged | Worked example |
| --- | --- | --- | --- |
| `business-result` | $0.0006 | per business row | 1,000 businesses = $0.60 |
| `apify-actor-start` | $0.00005 | per run per GB of memory (platform start fee) | One run at 256 MB = $0.00005 |

### Input options

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `trades` | array | no | — | Business categories in German, as Gelbe Seiten names them, e.g. elektriker, steuerberater, zahnarzt, restaurant, friseur, dachdecker, rechtsanwalt. |
| `cities` | array | no | — | German cities, towns or 5-digit postcodes, e.g. berlin, münchen, frankfurt am main, 10115. Every trade is searched in every city. |
| `maxPerSearch` | integer | no | `200` | Listings per trade × city (the first 50 come in one page, then 10 per request). |
| `includeRoleEmails` | boolean | no | `true` | Add the business's e-mail when Gelbe Seiten lists one and it is a role mailbox (info@, kontakt@, service@, buero@…). Personal addresses are never output. |
| `maxItems` | integer | no | `200` | Stop after this many businesses in total. Each business is one charged row. |

### Limits & honest notes

- **Responsible use:** you are responsible for using the data in line with Gelbe Seiten's terms, the GDPR and German rules on advertising (UWG §7: cold calls and e-mails to businesses need at least presumed consent). This actor is not affiliated with, endorsed by or sponsored by Gelbe Seiten or its publishers.
- It reads only the public /branchen/ listing pages and the page's own "Mehr anzeigen" endpoint (/ajaxsuche), which robots.txt allows; it never uses /suche, which robots.txt disallows. There is no login, no cookies, no proxies and no CAPTCHA solving; it sends an honest user agent (ActorForge-GelbeSeiten) and waits at least 1.5 s between requests.
- Business data only: the listed business phone, the website and role mailboxes (info@, kontakt@…). Personal e-mail addresses are dropped, and no owner or employee details are collected. Sole traders appear under their trading name, as listed.
- Results-list data only: no full opening hours, services or reviews text from the listing page.
- If the site answers with a block or a challenge, the run stops at once, keeps the businesses already delivered and adds a free status row. Respects your run budget: set a maximum total charge and the run stops cleanly at the cap. A run with no results returns one free status row.

### Related ActorForge actors

- [Business Places Data](https://apify.com/actor-forge/business-places-data) — the same kind of local leads worldwide
- [Domain Enrichment for Clay](https://apify.com/actor-forge/domain-enrichment) — tech stack, socials and more for the websites you collect

### Changelog

- **2026-10-23** — Initial release: trades × cities on /branchen/ pages with /ajaxsuche paging; name, category, address, district, distance, phone, website, role e-mail, rating, reviews, opening status, logo, link; free status rows.

***

*Built and maintained by **ActorForge**. Reliability first: every actor in the
portfolio is monitored by an automated nightly self-test, and breakages are
typically fixed the same day.*

# Actor input Schema

## `trades` (type: `array`):

Business categories in German, as Gelbe Seiten names them, e.g. elektriker, steuerberater, zahnarzt, restaurant, friseur, dachdecker, rechtsanwalt.

## `cities` (type: `array`):

German cities, towns or 5-digit postcodes, e.g. berlin, münchen, frankfurt am main, 10115. Every trade is searched in every city.

## `maxPerSearch` (type: `integer`):

Listings per trade × city (the first 50 come in one page, then 10 per request).

## `includeRoleEmails` (type: `boolean`):

Add the business's e-mail when Gelbe Seiten lists one and it is a role mailbox (info@, kontakt@, service@, buero@…). Personal addresses are never output.

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

Stop after this many businesses in total. Each business is one charged row.

## Actor input object example

```json
{
  "trades": [
    "elektriker"
  ],
  "cities": [
    "berlin"
  ],
  "maxPerSearch": 200,
  "includeRoleEmails": true,
  "maxItems": 20
}
```

# Actor output Schema

## `businesses` (type: `string`):

One row per business: name, category, address, district, phone, website, role e-mail, rating, reviews, opening status and link.

## `summary` (type: `string`):

Businesses delivered, requests made, whether the site refused a request, and billing.

# 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 = {
    "trades": [
        "elektriker"
    ],
    "cities": [
        "berlin"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("actor-forge/gelbe-seiten-leads").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 = {
    "trades": ["elektriker"],
    "cities": ["berlin"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("actor-forge/gelbe-seiten-leads").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 '{
  "trades": [
    "elektriker"
  ],
  "cities": [
    "berlin"
  ],
  "maxItems": 20
}' |
apify call actor-forge/gelbe-seiten-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,actor-forge/gelbe-seiten-leads"
        }
    }
}
```

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/ilKOTAfhMsWF8zpzD/builds/QZwRsJq50flmhAnCY/openapi.json
