# Gelbeseiten Scraper — German Yellow Pages (`hipersoft/gelbeseiten-scraper`) Actor

Scrape Gelbeseiten (German Yellow Pages) businesses: name, category, phone, address, postal code, city, website and profile URL. Search by business type and location. No login, no key.

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

## Pricing

from $0.0015 / business scraped

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/platform/actors/running/actors-in-store#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

## Gelbeseiten Scraper — German Yellow Pages Business Directory

Scrape **Gelbeseiten** — Germany's leading Yellow Pages business directory — into clean JSON, CSV, Excel or XML. Extract **business name, category, phone, full address, postal code, city, website and profile URL** for any business type in any German city. Fast and reliable.

![Gelbeseiten Scraper input — what, where and maxItems in the Apify Console](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/gelbeseiten-scraper-input.png)

### What does Gelbeseiten Scraper do?

The Gelbeseiten Scraper crawls Gelbeseiten search results and extracts every listed business as a structured record. Enter a business type (Branche) and city, or paste a Gelbeseiten search URL, and it exports a clean dataset of German businesses with their phone numbers, addresses and websites — a fast way to build German B2B lead and prospecting lists.

### What data can you scrape from Gelbeseiten?

| Data | Fields |
| --- | --- |
| 🏢 Business | name, category (Branche), Gelbeseiten profile URL |
| ☎️ Phone | contact number |
| 📍 Address | street address, postal code (PLZ), city |
| 🌐 Website | listed website |
| 📏 Distance | distance in km from the search center |
| 🕒 Meta | source search URL, collected timestamp |

### Use cases

- **German B2B lead generation** — build phone and address lists of businesses by Branche and city.
- **Local-market research** — measure business density by category across German cities and regions.
- **Sales prospecting** — target restaurants, tradespeople, clinics, law firms and more for outreach.
- **Competitor mapping** — see who operates in a given city and how they are categorized.
- **CRM enrichment** — append phone, address, postal code and website to existing German company records.
- **Directory & dataset building** — compile category-specific business directories at scale.

### How to scrape Gelbeseiten data

1. Add the **Gelbeseiten Scraper** to your Apify account.
2. Enter a business type in **what** and a city in **where**, or paste a Gelbeseiten search URL into **startUrls**.
3. Set **maxItems** to cap how many businesses you collect.
4. Click **Run** and watch results stream into the dataset.
5. Export to JSON, CSV, Excel or XML, or pull them through the Apify API.

### Input

Enter a keyword (`what`) and a city (`where`), or paste a Gelbeseiten search URL. Cap the run with `maxItems`.

#### Example input

```json
{ "what": "zahnarzt", "where": "hamburg", "maxItems": 50 }
```

| Field | Description |
| --- | --- |
| `what` | Business type or keyword (German), e.g. `klempner`, `restaurant`, `zahnarzt`, `rechtsanwalt`, `friseur`. |
| `where` | City or region, e.g. `berlin`, `muenchen`, `hamburg`. |
| `startUrls` | Gelbeseiten search URLs copied from gelbeseiten.de. Overrides `what`/`where`. |
| `maxItems` | Maximum number of businesses to return. |

### Output

Each business is one clean record:

```json
{
  "id": "120095491687",
  "name": "Alois Dallmayr Kaffee OHG",
  "category": "Gaststätten und Restaurants",
  "phone": "089 2 13 50",
  "address": "Dienerstr. 14 -15, 80331 München (Altstadt)",
  "postalCode": "80331",
  "city": "München",
  "distanceKm": 1.2,
  "website": null,
  "url": "https://www.gelbeseiten.de/gsbiz/d3d44b3c-042d-4978-8d81-fdecbab9dcb5",
  "sourceUrl": "https://www.gelbeseiten.de/suche/restaurant/muenchen",
  "collectedAt": "2026-07-30T12:00:00.000Z"
}
```

![Gelbeseiten Scraper output example — business name, category, phone and address as structured JSON](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/gelbeseiten-scraper-output.png?v=1)

#### Output schema

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Unique Gelbeseiten business identifier. |
| `name` | string | Business name. |
| `category` | string | Business category (Branche). |
| `phone` | string | Contact phone number. |
| `address` | string | Full street address as listed. |
| `postalCode` | string | Postal code (PLZ). |
| `city` | string | City where the business is located. |
| `distanceKm` | number | Distance in kilometers from the search center. |
| `website` | string | Listed website URL, or null if none. |
| `url` | string (URL) | Gelbeseiten profile page URL. |
| `sourceUrl` | string (URL) | Search results page the record was collected from. |
| `collectedAt` | string (ISO date) | Timestamp when the record was scraped. |

### Need more local leads data?

- [Houzz Scraper](https://apify.com/hipersoft/houzz-scraper) — home-service pros with phones and addresses.
- [Europages Scraper](https://apify.com/hipersoft/europages-scraper) — European B2B suppliers and manufacturers.
- [Google Maps Scraper](https://apify.com/hipersoft/google-maps-scraper) — local businesses, ratings and contact info.
- [Website Contact Scraper](https://apify.com/hipersoft/website-contact-scraper) — emails, phones and socials from any website.

### FAQ

**How many businesses can I scrape?**
As many as the search returns — set `maxItems` to cap the run, or run multiple searches to cover more categories and cities.

**Do I need any setup or a login?**
No setup and no login. Just add the actor, enter a keyword and city (or a search URL), and run.

**How does billing work?**
You pay only per business you get — no subscription. Our per-item price floors 20% below the cheapest comparable scraper.

**What export formats are supported?**
JSON, CSV, Excel and XML, plus the Apify API for programmatic access.

**Can I scrape a specific city or category?**
Yes — set `what` (Branche) and `where` (city), or paste a Gelbeseiten search URL into `startUrls` for exact targeting.

**How fresh is the data?**
Each run fetches live listings, so results reflect Gelbeseiten at the moment you run the actor. The `collectedAt` field timestamps every record.

**Is it legal?**
The actor returns only publicly available data. You are responsible for complying with Gelbeseiten's terms and applicable data and marketing laws, including GDPR.

**Can I connect it to my other tools?**
The Gelbeseiten Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Related Actors

- [GoodFirms Scraper](https://apify.com/hipersoft/goodfirms-scraper) — B2B agencies with ratings and pricing.
- [BBB Scraper](https://apify.com/hipersoft/bbb-scraper) — Better Business Bureau company profiles and ratings.
- [Google Maps Reviews Scraper](https://apify.com/hipersoft/google-maps-reviews-scraper) — reviews and ratings for local businesses.

### Notes

Original clean-room implementation. Returns only public data; you are responsible for compliance with Gelbeseiten's terms. Not affiliated with Gelbeseiten.

# Actor input Schema

## `what` (type: `string`):

Business type / keyword (German), e.g. klempner, restaurant, zahnarzt, rechtsanwalt, friseur.

## `where` (type: `string`):

City or region, e.g. berlin, muenchen, hamburg. Leave empty for all Germany.

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

Optional Gelbeseiten search URLs (copy from gelbeseiten.de). Overrides what/where.

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

Maximum businesses to scrape (about 50 per search).

## Actor input object example

```json
{
  "what": "klempner",
  "where": "berlin",
  "startUrls": [],
  "maxItems": 200
}
```

# Actor output Schema

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

The scraped results as dataset items.

# 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 = {
    "what": "klempner",
    "where": "berlin"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/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 = {
    "what": "klempner",
    "where": "berlin",
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/gelbeseiten-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "what": "klempner",
  "where": "berlin"
}' |
apify call hipersoft/gelbeseiten-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hipersoft/gelbeseiten-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6lwZjjt6Rt7ZhP4cV/builds/Woh6IF95tROC2NWKk/openapi.json
