# Gelbe Seiten B2B Leads Scraper & Contact Enricher (`twc.api/gelbe-seiten-scraper`) Actor

Scrape German business leads from Gelbe Seiten with verified phone numbers, websites, postal addresses and enriched emails.

- **URL**: https://apify.com/twc.api/gelbe-seiten-scraper.md
- **Developed by:** [Mischa T](https://apify.com/twc.api) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 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

## Gelbe Seiten Germany B2B Leads & Email Enricher 🇩🇪

High-speed, unblockable scraper for **Gelbe Seiten (gelbeseiten.de)**. Extracts verified German B2B company contacts, auto-decodes protected phone numbers, crawls company websites for **direct contact emails** and managing directors, and exports clean datasets for sales and CRM.

***

### ⚡ Why Use This Scraper?

- **✉️ Direct Website Email Enrichment:** Automatically crawls discovered company homepages and `/impressum` pages to extract verified business email addresses.
- **🔓 Auto-Decoded Phone Numbers:** Gelbe Seiten protects phone numbers behind encrypted base64 attributes. This actor automatically decrypts them in real time.
- **🌐 Real Company Websites:** Bypasses redirect wrappers and extracts clean root domains.
- **📍 Complete Geolocation:** Full postal addresses, city districts, and direct Google Maps navigation links.
- **🚀 Ultra Fast & Lightweight:** Scrapes up to 50 businesses per second using next-gen HTTP stealth engines. No expensive residential proxies required!
- **📊 Clean CRM-Ready Exports:** Download directly as CSV, Excel (.xlsx), or JSON.

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :---: | :--- | :--- |
| `searchQuery` | String | **Yes** | `Dachdecker` | Industry or trade (e.g. `Handwerker`, `Zahnarzt`, `IT-Service`, `Steuerberater`) |
| `location` | String | No | `München` | City, district, or postal code (e.g. `Berlin`, `Hamburg`, `50667`) |
| `maxResults` | Integer | No | `50` | Maximum number of records to retrieve (up to 5,000) |
| `extractEmails` | Boolean | No | `true` | When enabled, visits each company's website to extract verified emails & Impressum contacts |

***

### 📤 Sample Output

```json
[
  {
    "title": "Andreas Kerkmann - Steuerberater",
    "category": "Steuerberatung",
    "phone": "0175 5 90 67 82",
    "email": "kerkmann@buero-kerkmann.de",
    "contact_person": "Andreas Kerkmann",
    "website": "https://www.buero-kerkmann.de",
    "address": "Ludwigsfelder Str. 14, 14165 Berlin",
    "google_maps_url": "https://www.google.com/maps/place/Ludwigsfelder Str. 14, 14165 Berlin",
    "opening_hours": "Geschlossen · Öffnet Donnerstag um 08:00",
    "url": "https://www.gelbeseiten.de/gsbiz/33e3ff3d-070f-4806-b77c-9fe2bf5525a6",
    "source": "gelbeseiten.de"
  }
]
```

***

### 🛠️ Need a Custom Data Pipeline or Dedicated Feed?

We build custom high-volume scrapers, live delta monitoring feeds, and automated CRM webhooks:

- Custom integrations (Salesforce, HubSpot, Notion, Google Sheets)
- Daily fresh lead delivery via automated webhooks
- Custom platform scrapers for any European directory

Contact us directly via Apify for custom integrations, enterprise feeds, or feature requests.

# Actor input Schema

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

Industry or trade, e.g. Dachdecker, Steuerberater, Rechtsanwalt, IT-Dienstleister

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

German city or postal code, e.g. München, Berlin, Hamburg, 80331

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

Maximum number of records to scrape

## `extractEmails` (type: `boolean`):

Automatically visits discovered company websites and extracts verified contact email addresses and managing directors.

## Actor input object example

```json
{
  "searchQuery": "Dachdecker",
  "location": "München",
  "maxResults": 50,
  "extractEmails": true
}
```

# Actor output Schema

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

Direct link to view or export extracted records in JSON, CSV or Excel

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("twc.api/gelbe-seiten-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("twc.api/gelbe-seiten-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 '{}' |
apify call twc.api/gelbe-seiten-scraper --silent --output-dataset

```

## MCP server setup

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