# Gelbe Seiten Scraper (`memo23/gelbeseiten-scraper`) Actor

Scrape gelbeseiten.de (German Yellow Pages): business name, phone, email when listed, website, address, hours, rating, and category. Keyword + city or a gelbeseiten.de search/profile URL. Covers all 16 Länder. HTTP only, no browser. JSON or CSV out. $1.20 per 1,000 listings.

- **URL**: https://apify.com/memo23/gelbeseiten-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 listings

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Gelbe Seiten Scraper

<p align="center"><img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/logo-gelbeseiten.png" alt="Gelbe Seiten Scraper logo" width="160" /></p>

Turn a gelbeseiten.de search into structured German business rows: name, phone, email when listed, website, address, hours, category, rating, and profile link.

Keyword + city, or a .de URL. JSON or CSV out.

This is **Gelbe Seiten** (DTM / Deutsche Tele Medien). It is not [Yellow Pages US](https://apify.com/memo23/yellow-pages-us-scraper), [Yellow Pages Canada](https://apify.com/memo23/yellowpages-ca-scraper), or [PagesJaunes.fr](https://apify.com/memo23/pagesjaunes-scraper-cheerio).

### Why Use This Scraper?

- Phone, website, email, and coordinates on the search row when Gelbe Seiten publishes them
- Street, PLZ, city, and neighbourhood already split
- Optional profile pass for fax, social links, and weekday hours
- Relevance, rating, or distance sort
- HTTP only. No browser

### Overview

Built for sales teams, agencies, and researchers who need German **business** leads from gelbeseiten.de.

Every start type becomes **one dataset row per listing**. A keyword search, a `/branchen/` URL, and a `/gsbiz/{uuid}` profile all emit the same flat shape. Rows are de-duplicated by Gelbe Seiten listing id.

### Supported Inputs

#### Search terms and locations

| Field | Example |
| --- | --- |
| `searchTerms` | `["pizza"]`, `["Klempner", "Steuerberater"]` |
| `locations` | `["Berlin"]`, `["München"]`, `["10115"]` |

Every term is searched in every location. A term with no location is skipped.

#### URL types

| URL type | Pattern | Example |
| --- | --- | --- |
| Search | `/suche/{what}/{where}` | `https://www.gelbeseiten.de/suche/pizza/berlin` |
| Category | `/branchen/{what}/{where}` | `https://www.gelbeseiten.de/branchen/arzt/münchen` |
| Profile | `/gsbiz/{uuid}` | `https://www.gelbeseiten.de/gsbiz/49fd2b39-4fc1-425d-8196-3a58e5dd6512` |

Search URLs paginate automatically (15 businesses per request).

**Unsupported:** gelbeseiten.at, dasoertliche.de, telefonbuch.de.

### Use Cases

| Audience | What they take from a run |
| --- | --- |
| Sales and outreach | Phone + website + email (when listed) by trade and city |
| Agencies | Cross-joined term × city lists in one dataset |
| Local SEO | Category, rating, and the Gelbe Seiten profile URL |
| Researchers | Hours and coordinates for a trade in a city |

### How It Works

1. Cross-join `searchTerms` × `locations`, plus any gelbeseiten.de URLs.
2. Fetch the mobile search (15 businesses per page).
3. Page with `start` in parallel, stopping at `maxItems` or `maxPages`.
4. Read phone, email, website, address, and coordinates from the search row.
5. Optionally open the mobile profile for fax, social links, and weekday hours.
6. De-duplicate by listing id and push one row per business.

<p align="center"><img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-gelbeseiten.png" alt="How the Gelbe Seiten scraper turns a search into business rows" width="800" /></p>

### Input Configuration

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `searchTerms` | array | one of the start types | What you would type into Gelbe Seiten |
| `locations` | array | with `searchTerms` | City or PLZ |
| `startUrls` | array | one of the start types | Search, `/branchen/`, or `/gsbiz/` |
| `maxItems` | integer | no | Default 50. Free users capped at 50. |
| `sort` | string | no | `relevanz` (default), `bewertung`, `entfernung` |
| `scrapeDetails` | boolean | no | Default true. Fax, social, weekday hours. |
| `maxPages` | integer | no | Default 20. |
| `maxConcurrency` | integer | no | Default 5. |
| `proxy` | object | no | Optional. Default is no Apify proxy. |

#### Example input

```json
{
  "searchTerms": ["pizza"],
  "locations": ["Berlin"],
  "maxItems": 50
}
```

### Output Overview

One flat row per business. Contact and address fields sit at the top level. `searchTerm` tells you which input produced the row. Email is present only when Gelbe Seiten publishes one on the listing.

### Output Samples

Search: pizza in Berlin, with profile enrich.

```json
{
  "listingId": "49fd2b39-4fc1-425d-8196-3a58e5dd6512",
  "name": "Call a Pizza Berlin Mitte",
  "phone": "03022488677",
  "email": "support@call-a-pizza.de",
  "website": "https://www.call-a-pizza.de/",
  "street": "Mohrenstraße 67-69",
  "postalCode": "10117",
  "city": "Berlin",
  "latitude": 52.51212,
  "longitude": 13.384026,
  "hours": ["Mo 10:00-24:00", "Di 10:00-24:00"],
  "gelbeSeitenUrl": "https://www.gelbeseiten.de/gsbiz/49fd2b39-4fc1-425d-8196-3a58e5dd6512"
}
```

### Key Output Fields

**Identity:** `listingId`, `teilnehmerId`, `name`, `gelbeSeitenUrl`

**Contact:** `phone`, `phones`, `fax`, `email`, `website`, `social`

**Place:** `address`, `street`, `postalCode`, `city`, `neighbourhood`, `latitude`, `longitude`, `distance`

**Directory:** `category`, `categories`, `rating`, `reviewCount`, `hours`, `services`, `paymentMethods`, `images`, `logo`, `reviews`, `partnerRatings`, `publisherUrl`

**Provenance:** `searchTerm`, `scrapedAt`

### Pricing

| Event | When | Rate |
| --- | --- | --- |
| Actor start | Once per run, per GB of memory | $0.005 |
| Listing | Each unique business in the dataset | $0.0012 ($1.20 / 1k) |
| Contact phone | Row has a phone | $0.002 |
| Contact email | Row has an email | $0.05 |

Phone and email are billed only when Gelbe Seiten publishes that field. A miss is free.

### FAQ

**Will every row have an email?** No. Phone and website are common. Inbox is only on some listings. Phone and email are billed as extra events only when the field is present.

**What does scrapeDetails add?** Fax, social links, weekday hours, photos, services, payment methods, partner ratings, and review text when Gelbe Seiten publishes them. Phone, email, website, and coordinates are already on the search row.

**Do I need a proxy?** No.

**Does it scrape Das Örtliche?** No. gelbeseiten.de only.

### Support

- Issues: [Actor Issues](https://console.apify.com/actors/AILj5D4TyLjP9Svc0/issues)
- Author site: <https://muhamed-didovic.github.io/>
- Email: <muhamed.didovic@gmail.com>

### Additional Services

Bulk Bundesland sweeps, scheduled refreshes, or a private API wrapper: <muhamed.didovic@gmail.com>

### Explore More Scrapers

Directory cousins: [Yellow Pages US](https://apify.com/memo23/yellow-pages-us-scraper), [Yellow Pages Canada](https://apify.com/memo23/yellowpages-ca-scraper), [Canada411](https://apify.com/memo23/canada411-scraper), and [PagesJaunes.fr](https://apify.com/memo23/pagesjaunes-scraper-cheerio). More actors on [memo23](https://apify.com/memo23) and [didovic](https://apify.com/didovic).

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/gelbeseiten-scraper`).

**Purpose:** Extract gelbeseiten.de business listings (name, phone, email when listed, website, split address, hours) by keyword + city or URL.

**Minimal input:**

```json
{
  "searchTerms": ["pizza"],
  "locations": ["Berlin"],
  "maxItems": 10
}
```

**Output:** one dataset row per business — `listingId`, `teilnehmerId`, `name`, `phone`, `phones`, `fax`, `email`, `website`, `social`, `address`, `street`, `postalCode`, `city`, `neighbourhood`, `latitude`, `longitude`, `category`, `categories`, `rating`, `reviewCount`, `hours`, `services`, `paymentMethods`, `images`, `logo`, `reviews`, `partnerRatings`, `publisherUrl`, `distance`, `gelbeSeitenUrl`, `searchTerm`, `scrapedAt`.

**Behaviors an agent should know:**

- Always set `maxItems`. Free users are capped at 50.
- `searchTerms` needs at least one entry in `locations`.
- `startUrls` work on their own (gelbeseiten.de only).
- Email is often empty. Do not assume a contact-email field exists on every row.
- Each listing is $0.0012. A phone on the row is $0.002. An email is $0.05. Start is $0.005 per GB.
- Germany only. Not Das Örtliche, not gelbeseiten.at.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by DTM Deutsche Tele Medien GmbH, Gelbe Seiten, or any regional Gelbe Seiten publisher. All trademarks mentioned are the property of their respective owners.

The scraper reads publicly listed German business data from gelbeseiten.de. Users are responsible for ensuring their use complies with gelbeseiten.de Terms of Service, applicable data-protection law (GDPR / BDSG), UWG if they send outreach, and any contractual obligations of their own organization.

### SEO Keywords

gelbeseiten scraper, gelbeseiten.de scraper, scrape gelbe seiten, German yellow pages scraper, Gelbe Seiten API, German business listings scraper, Germany phone email scraper, Klempner leads Germany, Apify gelbeseiten, German restaurant leads, Steuerberater scraper, local SEO Germany data, gelbeseiten.de email scraper, German directory scraper

# Actor input Schema

## `searchTerms` (type: `array`):

What you would type into Gelbe Seiten, e.g. <b>pizza</b>, <b>Klempner</b>, <b>Steuerberater</b>. One row per term. Every term is searched in every location below.

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

German city or PLZ, e.g. <b>Berlin</b>, <b>München</b>, <b>10115</b>.

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

Stop after this many unique businesses across the whole run. Free plan is capped at 50.

## `startUrls` (type: `array`):

Examples: <code>https://www.gelbeseiten.de/suche/pizza/berlin</code> or a <code>/gsbiz/{uuid}</code> profile.

## `sort` (type: `string`):

Same order as the site. <b>relevanz</b> is the Gelbe Seiten default.

## `scrapeDetails` (type: `boolean`):

Opens the mobile profile for fax, social, weekday hours, photos, services, payment methods, and reviews. Phone, email, website, and coordinates are already on the search row.

## `maxPages` (type: `integer`):

Each page is 15 businesses from the mobile API.

## `maxConcurrency` (type: `integer`):

How many pages and profiles to load at the same time.

## `proxy` (type: `object`):

Not needed. Only turn on if runs fail from your region.

## Actor input object example

```json
{
  "searchTerms": [
    "pizza"
  ],
  "locations": [
    "Berlin"
  ],
  "maxItems": 50,
  "sort": "relevanz",
  "scrapeDetails": true,
  "maxPages": 20,
  "maxConcurrency": 5,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "searchTerms": [
        "pizza"
    ],
    "locations": [
        "Berlin"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/gelbeseiten-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 = {
    "searchTerms": ["pizza"],
    "locations": ["Berlin"],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/gelbeseiten-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 '{
  "searchTerms": [
    "pizza"
  ],
  "locations": [
    "Berlin"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call memo23/gelbeseiten-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/gelbeseiten-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/AILj5D4TyLjP9Svc0/builds/8d0XdNroDB9i8aDkv/openapi.json
