# Gelbe Seiten Scraper — German Business Leads & Phones (`yugenox/gelbe-seiten-scraper`) Actor

Scrape Gelbe Seiten (gelbeseiten.de), Germany's business directory: name, trade, address, phone, website, rating and distance for any search term and city or postcode. Optional e-mail, coordinates, opening hours, services and social links. No login.

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

## Pricing

from $1.20 / 1,000 businesses

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 with phone, website and e-mail

Scrape **Gelbe Seiten** (gelbeseiten.de), Germany's yellow pages, for any trade or company name in any city, district or postcode. Get one row per business: **name, trade, street address, postcode, city, district, phone (also in international format), website, rating, number of ratings and distance**. Turn on **Include details** to add the business's **e-mail address, latitude/longitude, weekly opening hours, all trades, services, payment methods and social media links**. No login, no cookies, no account.

### What you get

| | |
|---|---|
| **Business** | Name, main trade (e.g. "Zahnärzte", "Gaststätten und Restaurants"), Gelbe Seiten business ID and listing number, page URL, logo |
| **Address** | Street and number, postcode, city, district (Ortsteil), the full address in one line, country code |
| **Contact** | Phone as listed (`030 54 71 08 00`) and in international format (`+493054710800`), website; with details: e-mail and Facebook / Instagram / LinkedIn / XING / YouTube links |
| **Reputation** | Average rating (0–5) and number of ratings on Gelbe Seiten |
| **Location** | Distance from the centre of the place you searched; with details: latitude and longitude |
| **Details** (optional) | Weekly opening hours, all trades, services (Leistungsumfang), payment methods, the date Gelbe Seiten last updated the entry |
| **Where it was found** | Search term, place and position in the Gelbe Seiten result list |

### How to use it

1. Enter one or more **search terms**: a trade or category as you would type it on Gelbe Seiten (`Restaurant`, `Zahnarzt`, `Elektriker`, `Steuerberater`, `Friseur`) or a company name (`Siemens`).
2. Enter one or more **places**: cities, districts or postcodes (`Berlin`, `München`, `Hamburg Altona`, `80331`). Every search term is searched in every place. Leave the places empty to search all of Germany.
3. Optionally set a **radius** in km around each place and the **order** (best match, best rated, nearest).
4. Turn on **Include details** if you need e-mail addresses, coordinates and opening hours.
5. Set **Max businesses** and run.

#### Input examples

The first 20 restaurants in Berlin (fast, a few seconds):

```json
{
  "searchTerms": ["Restaurant"],
  "locations": ["Berlin"],
  "maxItems": 20
}
```

Dentists in three cities with e-mail, coordinates and opening hours:

```json
{
  "searchTerms": ["Zahnarzt"],
  "locations": ["Hamburg", "Köln", "Frankfurt am Main"],
  "includeDetails": true,
  "maxItems": 300
}
```

Best-rated electricians within 20 km of a postcode:

```json
{
  "searchTerms": ["Elektriker"],
  "locations": ["80331"],
  "radiusKm": 20,
  "sortBy": "rating",
  "maxItems": 100
}
```

Pasted Gelbe Seiten links (a result list and one business page):

```json
{
  "startUrls": [
    "https://www.gelbeseiten.de/branchen/friseur/münchen",
    "https://www.gelbeseiten.de/gsbiz/44ef8a22-d214-40de-9238-72d99f207f47"
  ]
}
```

### Output example

One real row (2026-11-01), from a pasted business link, so it has all details; Salon Pauli lists no opening hours, so that list is empty here:

```json
{
  "businessId": "44ef8a22-d214-40de-9238-72d99f207f47",
  "listingId": "120103688114",
  "name": "Salon Pauli",
  "category": "Friseure",
  "categories": ["Friseure"],
  "street": "Brienner Str. 11",
  "postalCode": "80333",
  "city": "München",
  "district": null,
  "address": "Brienner Str. 11, 80333 München",
  "countryCode": "DE",
  "phone": "089 99 01 60 60",
  "phoneInternational": "+498999016060",
  "email": "reception@salonpauli.de",
  "website": "http://www.salonpauli.de",
  "socialLinks": ["https://www.facebook.com/salonpauli", "https://www.instagram.com/salonpauli/"],
  "rating": 4.5,
  "reviewCount": 43,
  "latitude": 48.142944,
  "longitude": 11.574929,
  "distanceKm": null,
  "openingHours": [],
  "services": ["Coiffeur", "Friseursalon", "Kosmetik"],
  "paymentMethods": ["Bar", "Girocard", "Mastercard", "Visa", "American Express", "Apple Pay", "Google Pay"],
  "description": null,
  "logoUrl": null,
  "lastUpdated": "2026-03-10",
  "url": "https://www.gelbeseiten.de/gsbiz/44ef8a22-d214-40de-9238-72d99f207f47",
  "detailsScraped": true,
  "searchTerm": null,
  "searchLocation": null,
  "position": null,
  "scrapedAt": "2026-11-01T21:00:50.165Z"
}
```

Every row has the same columns; a value the business doesn't give is `null` (or an empty list). Without **Include details**, the e-mail, coordinates, opening hours, services, payment and social columns stay empty.

### Pricing

Pay per event, nothing else:

- **$1.20 per 1,000 businesses** saved.
- **+$0.80 per 1,000 businesses with details** (with **Include details** on, or for business links you paste; only for rows that got their details). With details a business costs $0.002.
- **$0.20 per 1,000 empty searches**: a search (search term × place) or pasted link that Gelbe Seiten answered with no new business. A search that saves at least one business is never charged this.
- **$0.002 per run** (start).

So 1,000 businesses cost about $1.20, or $2.00 with e-mails, coordinates and opening hours. A business Gelbe Seiten lists twice, or that two of your searches both find, is saved and charged once. A run never charges past your **Max businesses** or your spending limit.

### Use cases

- **B2B lead generation in Germany**: every dentist, lawyer, tax adviser, restaurant or craftsman in a city or region, with phone, website and e-mail.
- **Local market research**: how many businesses of a trade are in each city, how they are rated, where they cluster (coordinates).
- **Sales territory planning**: businesses within a radius of your office or a postcode, nearest first.
- **CRM enrichment and data cleaning**: phone numbers in international format, websites, addresses and opening hours for companies you already know (paste their Gelbe Seiten links).

### Tips

- Search terms work as on Gelbe Seiten: a trade (`Zahnarzt`, `Autowerkstatt`) gives the best lists; a company name finds its branches.
- A place can be a city, a district (`Berlin Mitte`, `Hamburg Altona`) or a postcode. Use **Radius** to reach the surrounding towns too.
- Without details a run is very fast (Gelbe Seiten shows 50 businesses on its first result page and 10 more per page after that). With details each business is one extra page, so plan about 4 businesses per second.
- **Max businesses** is shared fairly between your searches; what one search can't fill goes to the others.
- For very large runs (tens of thousands of businesses with details), raise the run's **Timeout**: the run stops cleanly before the timeout and keeps everything saved.

### FAQ

**Do I need a Gelbe Seiten account?** No. The scraper reads the same public result lists and business pages any visitor sees, without logging in.

**Why do I get fewer businesses than Gelbe Seiten's hit count?** Your **Max businesses** may be lower, or Gelbe Seiten lists a business twice (it is saved once). The status message and the run report show, per search, how many businesses Gelbe Seiten lists and how many were saved.

**Why is the e-mail empty for some businesses?** Not every business publishes an e-mail address on Gelbe Seiten. E-mails are only collected with **Include details** on.

**Which proxy should I use?** Keep the default (Apify Proxy, datacenter). It comes with every Apify plan, including the free one. Residential proxies are not needed.

**What happens if Gelbe Seiten refuses or is down?** The run stops cleanly with a plain message and keeps everything saved so far. You're never charged for businesses that weren't delivered.

**Is it legal to scrape Gelbe Seiten?** This Actor only collects publicly available business data: business entries that anyone can see on Gelbe Seiten without an account, such as the business name, trade, address, phone number, website and the contact e-mail the business publishes. Collecting publicly available data is generally legal, but you're responsible for how you use it, including privacy and marketing laws such as the GDPR and Germany's rules on unsolicited advertising (UWG). If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?** No. Gelbe Seiten is a directory of businesses, and everything comes from public pages; the scraper follows Gelbe Seiten's robots.txt. It never collects reviews or the names of reviewers, and it removes personal e-mail addresses and phone numbers (and the name next to them) from free-text descriptions. The business's own phone, website and published contact e-mail stay.

*This Actor is not affiliated with, endorsed by or sponsored by Gelbe Seiten or its publishers.*

# Actor input Schema

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

What to look for, as you would type it into Gelbe Seiten: a trade or category ("Restaurant", "Zahnarzt", "Elektriker", "Steuerberater") or a company name. Each search term is searched in every place below.

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

Cities, districts or postcodes ("Berlin", "München", "Hamburg Altona", "80331"). Leave empty to search all of Germany.

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

Maximum number of businesses for the whole run, shared fairly between your searches (what one search can't fill goes to the others). 0 = everything Gelbe Seiten lists (up to 50,000 per run).

## `includeDetails` (type: `boolean`):

Open each business's own Gelbe Seiten page for its e-mail address, latitude/longitude, weekly opening hours, all trades, services, payment methods, social media links and last-update date. Charged as an extra event per business that got them (see Pricing).

## `radiusKm` (type: `integer`):

Search this many kilometres around each place. 0 = Gelbe Seiten' own area for the place (the city or postcode itself).

## `sortBy` (type: `string`):

Order of the results, as on Gelbe Seiten: best match, best rated first, or nearest first.

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

Optional: paste Gelbe Seiten URLs instead — a result list (www.gelbeseiten.de/branchen/restaurant/berlin or a /suche/… link, with its radius and order) or a business page (www.gelbeseiten.de/gsbiz/…, one row with all details).

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

Apify Proxy (datacenter) is the default and comes with every Apify plan. Residential is not needed (a Residential choice here runs on datacenter). You can also paste your own proxy URLs.

## Actor input object example

```json
{
  "searchTerms": [
    "Restaurant"
  ],
  "locations": [
    "Berlin"
  ],
  "maxItems": 20,
  "includeDetails": false,
  "radiusKm": 0,
  "sortBy": "relevance",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped businesses.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts, requests and proxy use.

# 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": [
        "Restaurant"
    ],
    "locations": [
        "Berlin"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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 = {
    "searchTerms": ["Restaurant"],
    "locations": ["Berlin"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/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 '{
  "searchTerms": [
    "Restaurant"
  ],
  "locations": [
    "Berlin"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/gelbe-seiten-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/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/1FAIVyw4iFE54yrrv/builds/jGLVYiun5XgZqaAtP/openapi.json
