# GelbeSeiten.de Business Contact Scraper (`moving_beacon-owner1/gelbeseiten-de-business-contact-scraper`) Actor

Extract business listings and publicly available contact information from GelbeSeiten.de, one of Germany's business directories.
German businesses collect structured information, including names, phone numbers, emails, websites, addresses, ratings, and reviews.

- **URL**: https://apify.com/moving_beacon-owner1/gelbeseiten-de-business-contact-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Jobs, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 69.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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.

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

## GelbeSeiten.de Business Contact Scraper

Extract business listings and publicly available contact information from **[GelbeSeiten.de](https://www.gelbeseiten.de/)**, one of Germany's business directories.

This Apify Actor helps you discover German businesses and collect structured business information, including company names, phone numbers, email addresses, websites, addresses, ratings, reviews, and business descriptions.

With optional detailed profile extraction, you can collect additional information from individual business pages, making it useful for lead generation, market research, sales prospecting, and business directory analysis.

### Key Features

- **Business Name Extraction:** Collect company and business names.
- **Phone Number Extraction:** Retrieve publicly listed business telephone numbers.
- **Email Extraction:** Collect available email addresses from listings and business profiles.
- **Website Extraction:** Identify business website URLs.
- **Business Addresses:** Extract street addresses, postal codes, and cities.
- **Business Categories:** Collect primary and additional business categories.
- **Ratings and Reviews:** Retrieve available customer ratings and review counts.
- **Opening Information:** Collect available opening information and detailed opening hours.
- **Business Descriptions:** Extract available company descriptions.
- **Geographic Coordinates:** Retrieve latitude and longitude when available in structured business data.
- **Business Profile URLs:** Collect direct links to individual GelbeSeiten business profiles.
- **Logo URLs:** Extract available business logo image URLs.
- **Pagination Support:** Collect listings across multiple search result pages.
- **Optional Detail Scraping:** Visit individual business profiles to retrieve additional information.
- **Duplicate Removal:** Automatically remove duplicate business records.
- **Apify Proxy Support:** Optionally configure Apify Proxy for requests.
- **CSV and JSON Export:** Export structured business data.
- **Execution Metadata:** Track pages processed, records collected, duplicate counts, and detail extraction statistics.

### How It Works

The actor uses two collection stages:

**1. Search Results Extraction**

Search for businesses using a category and location. The actor extracts available information directly from the search result listings.

**2. Optional Business Profile Extraction**

Enable the `details` option to visit individual business profiles and retrieve additional information, such as:

- Additional business categories
- Email addresses
- Detailed addresses
- Opening hours
- Geographic coordinates
- Business descriptions
- Ratings and review counts
- Additional website information

The second stage is optional and can increase execution time because it makes additional requests.

### Input Configuration

| Input | Type | Default | Description |
|---|---|---|---|
| `category` | String | `arzt` | Business category to search |
| `location` | String | `berlin` | City or location to search |
| `pages` | Integer | `1` | Maximum number of search result pages |
| `limit` | Integer | `50` | Maximum number of business records |
| `details` | Boolean | `false` | Enable individual business profile extraction |
| `detailsLimit` | Integer | `0` | Maximum number of profiles to process. Use `0` for all collected records |
| `delaySeconds` | Number | `1.5` | Delay between requests |
| `timeoutSeconds` | Number | `30` | HTTP request timeout |
| `retries` | Integer | `3` | Number of retries for failed requests |
| `userAgent` | String | Automatic | Custom browser User-Agent |
| `proxyConfiguration` | Object | Disabled | Optional Apify Proxy configuration |

#### Example 1: Doctors in Berlin

```json
{
  "category": "arzt",
  "location": "berlin",
  "pages": 5,
  "limit": 100,
  "details": false,
  "delaySeconds": 1.5,
  "retries": 3
}
```

#### Example 2: Restaurants in Munich

```json
{
  "category": "restaurant",
  "location": "muenchen",
  "pages": 10,
  "limit": 200,
  "details": false,
  "delaySeconds": 2,
  "retries": 3
}
```

#### Example 3: Electricians in Hamburg with Detailed Profiles

```json
{
  "category": "elektriker",
  "location": "hamburg",
  "pages": 5,
  "limit": 100,
  "details": true,
  "detailsLimit": 50,
  "delaySeconds": 1.5,
  "timeoutSeconds": 30,
  "retries": 3
}
```

#### Example 4: Collect All Available Profiles Within the Result Limit

```json
{
  "category": "zahnarzt",
  "location": "koeln",
  "pages": 10,
  "limit": 300,
  "details": true,
  "detailsLimit": 0,
  "delaySeconds": 1.5,
  "retries": 3
}
```

*Note: Category and location values are passed to the GelbeSeiten URL through slug generation. Use category and location names supported by the source directory.*

### Output Data

Each business is returned as an individual JSON record.

#### Available Output Fields

| Field | Description |
|---|---|
| `source` | Source directory (`gelbeseiten.de`) |
| `source_id` | Unique business listing identifier |
| `name` | Business or company name |
| `category` | Primary business category |
| `categories` | Additional business categories |
| `street` | Street address |
| `postal_code` | Postal code |
| `city` | Business city |
| `address` | Complete formatted address |
| `phone` | Publicly listed telephone number |
| `email` | Available business email |
| `website` | Business website URL |
| `rating` | Customer rating |
| `review_count` | Number of customer reviews |
| `opening_info` | Opening information from search results |
| `opening_hours` | Detailed opening hours, when available |
| `description` | Business description |
| `latitude` | Geographic latitude |
| `longitude` | Geographic longitude |
| `last_modified` | Last modified date, when available |
| `logo_url` | Business logo image URL |
| `detail_url` | Direct business profile URL |
| `scraped_at` | UTC extraction timestamp |

#### Example Output

```json
{
  "source": "gelbeseiten.de",
  "source_id": "123456789",
  "name": "Example Electrical Services",
  "category": "Elektriker",
  "categories": "Elektroinstallationen | Elektrotechnik",
  "street": "Example Street 10",
  "postal_code": "10115",
  "city": "Berlin",
  "address": "Example Street 10, 10115 Berlin",
  "phone": "+493012345678",
  "email": "info@example.de",
  "website": "https://www.example.de",
  "rating": 4.8,
  "review_count": 25,
  "opening_info": "Geöffnet",
  "opening_hours": "Mo-Fr 08:00-17:00",
  "description": "Electrical installation services",
  "latitude": 52.532,
  "longitude": 13.384,
  "last_modified": "2026-10-15",
  "logo_url": "https://www.example.de/logo.png",
  "detail_url": "https://www.gelbeseiten.de/gsbiz/example",
  "scraped_at": "2026-11-04T10:30:00+00:00"
}
```

*Example structure only. Values are illustrative and are not verified live records.*

### Export Formats

Collected results are stored in the Apify Dataset.

Available export options:

- **JSON:** Ideal for integrations and automated workflows.
- **CSV:** Suitable for Excel, Google Sheets, and CRM imports.
- **Excel (XLSX):** Available through Apify Dataset export options.

The actor also saves:

| Storage Key | Description |
|---|---|
| `GELBESEITEN_RESULTS_CSV` | CSV file containing extracted business records |
| `GELBESEITEN_METADATA` | JSON execution summary |

### How to Use

1. Open GelbeSeiten.de Business Contact Scraper on Apify.
2. Enter a business category.
3. Enter your target German city or location.
4. Choose how many pages to scrape.
5. Set your maximum number of business records.
6. Enable **Details** if you want to collect additional information from individual profiles.
7. Configure the optional Apify Proxy settings if required.
8. Click **Start**.
9. Open the Dataset tab to view your results.
10. Export your collected businesses in JSON, CSV, or Excel format.

No programming knowledge is required.

### Who Can Benefit?

**Lead Generation Agencies**

- Build business prospect databases.
- Identify businesses with publicly listed contact information.
- Research companies across German cities.

**Digital Marketing Agencies**

- Discover potential clients.
- Research businesses and their websites.
- Identify companies with incomplete online information.

**Sales Teams**

- Build targeted business prospect lists.
- Organize prospects by location and category.
- Research company contact details.

**Local Service Providers**

- Research businesses within specific geographic markets.
- Identify companies in relevant industries.

**Market Researchers**

- Analyze business categories and geographic distribution.
- Research customer ratings and reviews.
- Collect structured business directory information.

### Performance and Data Availability

The total number of extracted businesses depends on:

- Selected category and location.
- Available search results.
- Configured page and record limits.
- Source website availability.
- Optional detail extraction settings.
- Availability of publicly displayed business information.

Not every business provides an email address, phone number, website, rating, or complete address. Missing fields are returned as empty values or `null`.

Enabling detailed profile extraction may provide additional information, but does not guarantee that every field will be available.

### Important Notes

- The actor collects publicly accessible information from GelbeSeiten.de.
- Contact information is included only when it can be extracted from the available listing or profile data.
- The actor does not independently verify the accuracy of business contact details.
- Business information may change over time.
- Apify Proxy is optional and must be configured separately.
- Request delays and automatic retries help manage temporary request failures but do not guarantee uninterrupted access.
- Users are responsible for complying with applicable data protection laws, GDPR requirements, and the source website's terms of use.

### Data Source

[GelbeSeiten.de – German Business Directory](https://www.gelbeseiten.de/)

### Support

For technical questions, bug reports, or feature requests, contact the developer through the Apify Store.

# Actor input Schema

## `category` (type: `string`):

Business category, such as arzt, zahnarzt, restaurant, or elektriker.

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

German city or location, such as berlin, muenchen, or koeln.

## `pages` (type: `integer`):

Number of result pages to request.

## `limit` (type: `integer`):

Maximum number of business records to save.

## `details` (type: `boolean`):

Fetch public profiles for email, coordinates, opening hours, and descriptions.

## `detailsLimit` (type: `integer`):

Maximum detail pages to fetch. Use 0 to enrich all collected records.

## `delaySeconds` (type: `number`):

Base delay between requests in seconds.

## `timeoutSeconds` (type: `number`):

Timeout for each HTTP request.

## `retries` (type: `integer`):

Retries for temporary HTTP failures.

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

Optional Apify Proxy configuration.

## `userAgent` (type: `string`):

HTTP User-Agent sent to GelbeSeiten.de.

## Actor input object example

```json
{
  "category": "arzt",
  "location": "berlin",
  "pages": 1,
  "limit": 50,
  "details": false,
  "detailsLimit": 0,
  "delaySeconds": 1.5,
  "timeoutSeconds": 30,
  "retries": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
}
```

# Actor output Schema

## `results` (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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/gelbeseiten-de-business-contact-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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/gelbeseiten-de-business-contact-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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moving_beacon-owner1/gelbeseiten-de-business-contact-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/gelbeseiten-de-business-contact-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/T5V3rRpnhLCTYZMsg/builds/DOHbEek0HRbG1AW4m/openapi.json
