# Gelbe Seiten Scraper - German Business Directory & Leads (`logiover/gelbeseiten-germany-business-scraper`) Actor

Scrape Gelbe Seiten, the German yellow pages, in bulk. Extract business name, trade, full address, postcode, phone and profile URL for any trade in any German city. B2B lead data at source. No login, no API key.

- **URL**: https://apify.com/logiover/gelbeseiten-germany-business-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Business, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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.
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 Scraper - German Business Directory & Leads

Scrape Gelbe Seiten, the German yellow pages, in bulk. Extract business name, trade, full address, postcode, phone and profile URL for any trade in any German city. B2B lead data at source. No login, no API key.

### ✨ What this Actor does

- Build a B2B prospect list for a trade in a German city, with phone numbers.
- Size a local market by counting registered businesses per trade.
- Enrich a CRM with verified addresses and postcodes.
- Find businesses in a trade that have no website yet.

### 🚀 Quick start

1. Fill in the input below — the example is already prefilled, so you can just press **Start**.
2. Watch the log: it names every source it reaches and how many rows each returned.
3. Export from the **Storage** tab as JSON, CSV, Excel or feed it straight into your own tools.

### 📥 Input

```json
{
  "queries": [
    "Zahnarzt",
    "Friseur"
  ],
  "cities": [
    "Berlin",
    "Hamburg"
  ],
  "maxItems": 500
}
```

Every field is documented in the input form. Nothing here needs an API key or a login.

### 📤 Output

One row per record, with these columns:

| Field | Type | Description |
|---|---|---|
| `name` | string | Registered trading name. |
| `trade` | string | Primary trade category. |
| `address` | string | Street address as published. |
| `postalCode` | string | German five-digit postcode. |
| `city` | string | City searched. |
| `phone` | string | Contact number where published. |
| `openingStatus` | string | Whether the business is open now, as shown in the results. |
| `website` | string | Business website where published. |
| `rating` | number | Average rating where published. |
| `participantId` | string | Gelbe Seiten' internal participant number. |
| `realId` | string | Stable identifier of the directory record. |
| `profileUrl` | string | Public directory page for the business. |
| `query` | string | Trade searched for this row. |
| `page` | number | Result page the row came from. |
| `scrapedAt` | string | When this row was collected. |

A column that is empty means the source did not publish that value for that
record — it is never a silent substitute for zero or for "unknown".

### ❓ Frequently asked questions

**Do I need an API key or an account?**
No. This Actor reads a public feed.

**What happens if the source blocks the run?**
A refused exit IP is replaced within a quarter of a second, up to five times,
before the Actor tries anything else. If nothing gets through, the run **fails**
with the reason — it never reports success with zero rows, because "there is no
such data" and "the source would not answer" are very different answers and you
should not have to guess which one you got.

**How do I schedule this?**
Use the **Schedules** tab. Daily is usually enough; the sources here do not
change by the minute.

**Can I get the results into Google Sheets or a database?**
Yes — use the dataset export, or the Apify API and integrations. Every run
writes a `SUMMARY` record to the key-value store with the outcome and counts,
which is handy for monitoring an automated pipeline.

### 💰 Pricing

Pay per result. You are charged for the rows you receive and nothing else, so a
run that finds nothing costs nothing.

### ⚖️ Legal

This Actor collects publicly available information only. It does not log in, does
not bypass access controls, and collects no private data. You are responsible for
using the output in line with the source's terms and with applicable law,
including GDPR where personal data is involved.

### ⭐ Support

Found something wrong, or want a field that is not here? Open an issue on the
Actor's page — include the run ID and I will look at it.

### 📝 Changelog

#### 2026-09-25

- First release.

# Changelog

This Actor's version history is a separate document: https://apify.com/logiover/gelbeseiten-germany-business-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

German trade terms, e.g. Restaurant, Zahnarzt, Friseur, Rechtsanwalt, Autowerkstatt.

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

German cities, e.g. Berlin, München, Hamburg. Leave empty to search nationwide.

## `maxPagesPerSearch` (type: `integer`):

The first page brings fifty businesses; every batch after that brings ten, because that is what the site's own "more results" endpoint serves. 40 batches reaches about 450 per trade and city.

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

Stop after this many businesses. 0 means no limit.

## `proxyConfiguration` (type: `object`):

Leave this on. Requests go out through a fresh IP each time, and a refused one is swapped immediately rather than waited out.

## Actor input object example

```json
{
  "queries": [
    "Restaurant"
  ],
  "cities": [
    "Berlin"
  ],
  "maxPagesPerSearch": 6,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All businesss collected in this run.

# 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 = {
    "queries": [
        "Restaurant"
    ],
    "cities": [
        "Berlin"
    ],
    "maxPagesPerSearch": 6,
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/gelbeseiten-germany-business-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 = {
    "queries": ["Restaurant"],
    "cities": ["Berlin"],
    "maxPagesPerSearch": 6,
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/gelbeseiten-germany-business-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 '{
  "queries": [
    "Restaurant"
  ],
  "cities": [
    "Berlin"
  ],
  "maxPagesPerSearch": 6,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call logiover/gelbeseiten-germany-business-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/gelbeseiten-germany-business-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/FBRzvNVY4heKPvhKS/builds/4Nb4qWyiSwHEKkVVO/openapi.json
