# Gelbe Seiten Germany B2B Leads Scraper - Emails & Phones (`hoanle0126/gelbe-seiten-germany-b2b-leads-scraper`) Actor

Scrape German businesses from Gelbe Seiten (gelbeseiten.de): company names, direct emails, phone numbers, websites, street addresses, postal codes (PLZ), categories, ratings & opening hours. Fast pure HTTP, zero proxies.

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

## Pricing

from $1.26 / 1,000 dataset items

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

## Gelbe Seiten Germany B2B Leads Scraper (Emails, Phones & Websites)

Extract verified German B2B business leads from **Gelbe Seiten (`gelbeseiten.de`)**, Germany's leading national business directory: **company names, direct email addresses, phone numbers, official websites, street addresses, postal codes (`PLZ`), districts, categories (`Branchen`), customer ratings, opening hours, and GPS coordinates**.

Engineered on pure lightweight HTTP (`256 MB` RAM) with native `/ajaxsuche` deep pagination, zero browsers, and zero residential proxy markups.

### Why Use This Gelbe Seiten Scraper?

- **Actionable German B2B Contact Data:** Visits each business profile (`/gsbiz/...`) concurrently to extract direct `email` (`mailto:`), `phone` (`tel:`), `website`, `street`, `postalCode` (`PLZ`), `city`, `district`, `openingHours`, `latitude`/`longitude`, `rating`, and `reviewCount`.
- **Deep Multi-Page Pagination (`POST /ajaxsuche`):** Automatically loads beyond the initial 50 directory listings so you can extract hundreds of local businesses per German city and industry.
- **Built-In Lead Qualification Filters:** Toggle `requireEmail`, `requireWebsite`, or `requirePhone` to export clean, CRM-ready B2B contact lists for cold outreach, local SEO agencies, SaaS sales, and DACH market research.
- **Multi-Keyword & Multi-City Matrix:** Combine multiple German industries (`zahnarzt`, `steuerberater`, `rechtsanwalt`, `handwerker`, `immobilienmakler`) across multiple cities (`berlin`, `muenchen`, `hamburg`, `koeln`, `frankfurt am main`) or pass direct `gelbeseiten.de` URLs.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | `string[]` | `["zahnarzt"]` | German industry keywords (`WAS`) or direct Gelbe Seiten search/profile URLs. |
| `locations` | `string[]` | `["berlin"]` | German cities, regions, or `PLZ` postal codes (`WO`), or `"bundesweit"` for nationwide searches. |
| `enrichDetails` | `boolean` | `true` | Enrich every listing from its `/gsbiz/...` profile page for direct email, website, opening hours & GPS. |
| `requireEmail` | `boolean` | `false` | Only output businesses that list a public email address. |
| `requireWebsite` | `boolean` | `false` | Only output businesses with an official website URL. |
| `requirePhone` | `boolean` | `false` | Only output businesses with a telephone number. |
| `maxLeadsPerQuery` | `integer` | `25` | Maximum businesses extracted per keyword-location combination (`1` to `500`). |

### Example Input

#### Dentists & Tax Advisors in Berlin and Munich with Verified Emails

```json
{
    "searchQueries": ["zahnarzt", "steuerberater"],
    "locations": ["berlin", "muenchen"],
    "enrichDetails": true,
    "requireEmail": true,
    "requireWebsite": false,
    "maxLeadsPerQuery": 50
}
```

### Example Output Record

```json
{
    "listingId": "1093130894",
    "businessName": "Zahnarztpraxis Petra Hartmann",
    "category": "Zahnarzt",
    "email": "info@zahnaerztin-neukoelln.de",
    "phone": "+49306243133",
    "website": "https://www.zahnaerztin-neukoelln.de",
    "street": "Karl-Marx-Str. 120",
    "postalCode": "12043",
    "city": "Berlin",
    "district": "Neukölln",
    "fullAddress": "Karl-Marx-Str. 120, 12043 Berlin (Neukölln)",
    "rating": 4.9,
    "reviewCount": 42,
    "gelbeSeitenUrl": "https://www.gelbeseiten.de/gsbiz/5f06ccb6-068f-4b36-91a4-63113f066676"
}
```

### Integrations, MCP & Automation

Connect directly with **Apify MCP Server**, **n8n**, **Make.com**, **Zapier**, **Clay**, **Pipedrive**, **HubSpot**, or **Google Sheets** to build automated DACH local business lead pipelines.

### Frequently Asked Questions

**Does this scraper extract real email addresses from Gelbe Seiten?**
Yes. When `enrichDetails: true` is enabled, the Actor inspects each business profile page and JSON-LD metadata to extract the published business email address (`mailto:`), alongside verified phone and website links.

**Can I scrape more than 50 results per search?**
Yes. After parsing the initial search page, the Actor automatically paginates through Gelbe Seiten's native `/ajaxsuche` endpoint up to your `maxLeadsPerQuery` limit.

**Does this Actor require German residential proxies?**
No. It operates over fast pure HTTP (`256 MB` memory) with automatic retry backoff and zero proxy surcharges.

# Actor input Schema

## `searchQueries` (type: `array`):

German business keywords/industries (e.g., 'zahnarzt', 'steuerberater', 'rechtsanwalt', 'elektriker', 'immobilienmakler') or full Gelbe Seiten search/profile URLs.

## `locations` (type: `array`):

German cities, regions, or PLZ postal codes to combine with each keyword (e.g., 'berlin', 'muenchen', 'hamburg', 'koeln', 'frankfurt am main', 'bundesweit'). Ignored for direct URLs.

## `enrichDetails` (type: `boolean`):

Visits each business's Gelbe Seiten profile page (/gsbiz/...) to extract direct email addresses, verified website URLs, opening hours, full descriptions, and GPS coordinates.

## `requireEmail` (type: `boolean`):

Only output German businesses that disclose a public email address.

## `requireWebsite` (type: `boolean`):

Only output businesses that list an official website URL.

## `requirePhone` (type: `boolean`):

Only output businesses that list a telephone number.

## `maxLeadsPerQuery` (type: `integer`):

Maximum Gelbe Seiten business leads to scrape per keyword-location combination (1 to 500).

## Actor input object example

```json
{
  "searchQueries": [
    "zahnarzt"
  ],
  "locations": [
    "berlin"
  ],
  "enrichDetails": true,
  "requireEmail": false,
  "requireWebsite": false,
  "requirePhone": false,
  "maxLeadsPerQuery": 25
}
```

# Actor output Schema

## `dataset` (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 = {
    "searchQueries": [
        "zahnarzt"
    ],
    "locations": [
        "berlin"
    ],
    "maxLeadsPerQuery": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("hoanle0126/gelbe-seiten-germany-b2b-leads-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 = {
    "searchQueries": ["zahnarzt"],
    "locations": ["berlin"],
    "maxLeadsPerQuery": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("hoanle0126/gelbe-seiten-germany-b2b-leads-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 '{
  "searchQueries": [
    "zahnarzt"
  ],
  "locations": [
    "berlin"
  ],
  "maxLeadsPerQuery": 25
}' |
apify call hoanle0126/gelbe-seiten-germany-b2b-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hoanle0126/gelbe-seiten-germany-b2b-leads-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/ZXlDhVJvcGtSGfY0i/builds/w0z230euMN22CAXXj/openapi.json
