# Gelbe Seiten Scraper — German Business Leads (`stone_jadex/gelbeseiten-business-scraper`) Actor

Export public Gelbe Seiten.de business listings by keyword and location: names, addresses, plaintext phones and emails when shown, websites and ratings. List-only by default; optional details. Failed detail rows are kept as list rows. No login.

- **URL**: https://apify.com/stone_jadex/gelbeseiten-business-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 gelbe seiten listing 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 Leads

**Turn public Gelbe Seiten.de directory cards into a B2B shortlist your sales or research team can review and export.**

Search by keyword and location, or provide supported public Gelbe Seiten.de search and business URLs. Receive names, addresses, industries, ratings and original profile links in an Apify dataset. Optional detail enrichment adds opening hours, descriptions, images, payments, services and related public modules where available. This Actor reads public HTML, list AJAX HTML and public profile pages only: it does not log in, solve captchas or enter chat, quote or apply flows.

**Default mode is list-only.** Enabling details is optional and billed through a second event ($0.0015 per enriched row instead of $0.0007 per list row); a successfully detail-merged row charges the detail event instead of the listing event (not both), and a row whose detail fetch fails is still delivered as a list row at the listing price. **Phones and emails are delivered only as public plaintext** (visible text, generic contact fields, `tel:` / `mailto:` links or JSON-LD telephone). Obfuscated `data-prg` values are never decoded, and contact-form URLs are never treated as email — when no plaintext email is present, `email` is `null` with a reason. Deep pagination toward the last page is not fully verified (probe depth was limited).

Start with five businesses before widening your search.

### What you gain

- **Reduce manual directory copying:** keep `name`, `address`, `bestIndustry`, `phone`, `email`, `rating` and the original profile `url` together for spreadsheet outreach prep.
- **Pay for the depth you choose:** stay on list-only shortlists by default, or enable details for hours, descriptions and public modules without stacking two result events on the same business.
- **Trust contact fields as shown:** plaintext `phone` / `email` when the page exposes them; no silent decoding of obfuscated contact blobs.
- **See honest gaps:** missing emails, unverified highlight tiers and absent booking modules stay `null` with reasons instead of invented stand-ins.

### Built for these workflows

- **SDR or agency teams building a German local lead list:** search `restaurant` in Berlin (or another keyword/location), export cards with phones when shown, and open the original Gelbe Seiten profile before outreach.
- **Market researchers sampling a trade in one city:** collect names, industries, ratings and websites for a snapshot you compare later in your own tools. This is not a built-in change monitor or alert service.
- **Operators enriching an existing territory map:** run with details when you need opening hours, payment methods or gallery fields that list cards omit.

### Preview what you receive

Real mapped samples from `test/fixtures/list-initial-0.body` (probe search `/suche/restaurant/berlin`, captured 8 November 2026 per `test/fixtures/PROVENANCE.txt`), parsed with the Actor’s list mapper. Not a production-run performance claim. The third row shows a plaintext phone with **no** plaintext email (`email` = `null`).

| Name | Industry | Phone | Email | Address (list text) | Rating |
|---|---|---|---|---|---|
| Robert & Martin Jaenichen GbR | Gaststätten und Restaurants | 030 6 56 02 25 | info@konditorei-jaenichen.de | Mahlsdorfer Str. 26, 12555 Berlin (Köpenick) | — |
| Altstadtcafé Cöpenick | Gaststätten und Restaurants | 030 65 47 40 69 | info@altstadtcafe.de | Alt-Köpenick 16, 12555 Berlin (Köpenick) | 3.5 |
| Weingalerie u.Cafe "Nö!" | Gaststätten und Restaurants | 030 2 01 08 71 | null | Glinkastr. 23, 10117 Berlin (Mitte) | 5 |

The Industry column is dataset field `bestIndustry`; Address is list `address` text (distance labels may also appear in `distance`). List-only rows leave `detailStatus` null/unset. Each dataset row is one business. Review the overview columns in Apify and export with available dataset formats such as JSON or CSV. Nested detail modules (for example opening hours, `website` enrichment, images) are best preserved in JSON. Detail collection is off by default. A null value is not proof that Gelbe Seiten has no corresponding information elsewhere on the site.

Sample JSON dataset item (selected core fields from the second row above, list-only mode):

```json
{
  "id": "8037cc6f-04c7-4956-8f5f-a91e20b2aeae",
  "memberId": "1095482164",
  "name": "Altstadtcafé Cöpenick",
  "phone": "030 65 47 40 69",
  "email": "info@altstadtcafe.de",
  "website": "http://www.altstadtcafe.de",
  "address": "Alt-Köpenick 16, 12555 Berlin (Köpenick) 15,4 km",
  "bestIndustry": "Gaststätten und Restaurants",
  "rating": 3.5,
  "ratingCount": 4,
  "url": "https://www.gelbeseiten.de/gsbiz/8037cc6f-04c7-4956-8f5f-a91e20b2aeae",
  "provenance": "https://www.gelbeseiten.de/gsbiz/8037cc6f-04c7-4956-8f5f-a91e20b2aeae",
  "distance": "15,4 km",
  "openingStatus": "Geöffnet – Schließt um 18:30",
  "source_platform": "gelbeseiten.de",
  "searchQuery": "restaurant/berlin"
}
```

### Why choose this Actor

- **Clear result events:** list-only rows charge `gelbeseiten-listing-result` ($0.0007); successfully detail-merged rows charge `gelbeseiten-detail-result` ($0.0015) instead — the same row does not pay both. No separate start event.
- **Contact policy you can explain to compliance:** plaintext only; no `data-prg` decoding and no reveal-API calls.
- **Transparent unverified fields:** `highlightLevel` / `partnerLevel` stay null with reasons until semantics are verified; deep last-page stability is not claimed.

### Pricing

All amounts below are **USD**.

| Product / mode | Event | Fee for 1,000 valid rows | Start event |
|---|---|---:|---:|
| This Actor, list-only (default) | `gelbeseiten-listing-result` @ $0.0007 | $0.70 | None |
| This Actor, details enabled | `gelbeseiten-detail-result` @ $0.0015 | $1.50 | None |
| [solidcode/gelbeseiten-scraper](https://apify.com/solidcode/gelbeseiten-scraper), Free-plan business record | `business-record` @ $0.0014 (FREE) | $1.40 | $0.00005 per GB, minimum one event |

This Actor’s price list has no start event. For one run:

- **1,000 list-only rows:** **$0.70**.
- **1,000 detail-enriched rows:** **$1.50** (the detail event replaces the listing event for that row).

#### Store subscription tier pricing

Apify Store subscription tier discounts apply automatically across **Bronze**, **Silver**, **Gold**, **Platinum**, and **Diamond** plans (live per-event USD rates; Free-tier base rates remain unchanged):

| Apify plan tier | `gelbeseiten-listing-result` (per row / per 1,000) | `gelbeseiten-detail-result` (per row / per 1,000) | Start event |
|---|---:|---:|---:|
| Free | $0.0007 / $0.70 | $0.0015 / $1.50 | None |
| Bronze | $0.000665 / $0.665 | $0.001425 / $1.425 | None |
| Silver | $0.00063 / $0.63 | $0.00135 / $1.35 | None |
| Gold | $0.000595 / $0.595 | $0.001275 / $1.275 | None |
| Platinum | $0.000595 / $0.595 | $0.001275 / $1.275 | None |
| Diamond | $0.000595 / $0.595 | $0.001275 / $1.275 | None |

Competitor list price checked through the Apify public API on **16 November 2026** (UTC+8): solidcode/gelbeseiten-scraper charges $0.0014 per business record on the Free plan (BRONZE $0.00135; SILVER $0.0013; GOLD/PLATINUM/DIAMOND $0.0012), plus $0.00036 per review record and a $0.00005 start event. Our list-only price is 50% of the competitor’s Free-plan business-record price: 1,000 list-only rows cost $0.70 here versus $1.40005 in competitor event charges ($1.40 + $0.00005 start) for one run at up to 1 GB. The competitor has no separate detail event; 1,000 detail-enriched rows cost $1.50 here. This compares billing units, not identical coverage or guaranteed result counts.

**Same-row rule:** when `includeDetails` succeeds for a business, only `gelbeseiten-detail-result` is charged for that row — `gelbeseiten-listing-result` is not also charged. **Detail failures degrade, they do not drop the row:** if a business’s profile page is not found, errors or times out, lacks the business data, or is blocked, the row is still delivered as a list row with `detailStatus` showing why, and only `gelbeseiten-listing-result` ($0.0007) is charged. A block or challenge on a profile page still stops the whole run after that row is saved. Direct `/gsbiz/{uuid}` seeds have no list row to fall back to: a failed direct profile seed is recorded in `errors` and is neither saved nor charged, and a row whose profile fetch is cut off by the run time limit is not saved. Duplicate and empty entries do not incur a result event. **What you pay:** under this Actor's pay-per-event pricing you pay the event prices above; the platform compute used by the run is not billed to you separately, unless the Actor's Pricing tab says usage is added on top. Reading, exporting or writing stored data after the run has finished is billed as platform usage on your own Apify plan.

### Get started in three steps

1. Enter a keyword, location and a small requested limit, for example:

```json
{
  "keywords": ["restaurant"],
  "filters": { "location": "Berlin" },
  "maxItems": 5,
  "includeDetails": false
}
```

2. Run the Actor. Leave details off for the default list-only bill, or set `includeDetails` to true when you need hours, descriptions and other public profile modules. You may instead supply supported public search or `/gsbiz/{uuid}` URLs; do not combine nonempty keywords/filters with `startUrls`.
3. Review the dataset and run summary, check any stop reason, and export your shortlist. Confirm contact details and how to reach the business on the original Gelbe Seiten page before acting.

#### SDK quickstart (JavaScript & Python)

JavaScript (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('Stone_JadeX/gelbeseiten-business-scraper').call({
    keywords: ['restaurant'],
    filters: { location: 'Berlin' },
    maxItems: 5,
    includeDetails: false,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Python (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('Stone_JadeX/gelbeseiten-business-scraper').call(run_input={
    'keywords': ['restaurant'],
    'filters': {'location': 'Berlin'},
    'maxItems': 5,
    'includeDetails': False,
})
items = list(client.dataset(run['defaultDatasetId']).iterate_items())
print(items)
```

### Coverage and common questions

**Which searches are supported?** Defaults use keywords `restaurant` and location `Berlin` (`/suche/restaurant/berlin`) when you supply neither seeds nor an explicit filter search. Sort may be `relevanz` (probe-verified), `bewertung` or `entfernung` (passed through with a warning when untested). Supported start URLs are public `www.gelbeseiten.de` / `gelbeseiten.de` `/suche/...` paths and `/gsbiz/{uuid}` profiles. Ajax load-more URLs are not valid starts. Buyer proxy is not supported currently: omit `proxyConfiguration`, or pass only `{"useApifyProxy":false}`; any nonempty proxy settings are rejected. Keywords/filters and `startUrls` cannot be combined.

**What are the limits and stop conditions?** Requested item limits are 1–10,000 (default 100), not a promised result count. List pages load an initial SSR set then continue via public `/ajaxsuche` in steps of 10; probe work reached about position 161 of 2221 total for the restaurant/Berlin sample — **deep / last-page stability is not fully verified**. Requests run serially with at least 1.2 seconds after completion. **A block stops the whole run.** HTTP 403, 412 or 429 gets two backoffs, 30 s and then 60 s; if the block persists, or if a later attempt for that request gets any other non-200 response (including 404 or 5xx), a timeout or a network error, the run stops at once with `stopReason` `blocked-<code>` (`blocked-403`, `blocked-412` or `blocked-429`, the most recent block code). If too little run time is left to back off, the request also ends as `blocked-<code>`. A captcha, challenge or login page stops the run as `blocked-challenge`. Rows already saved are kept and charged; nothing else is charged. The run OUTPUT field `runNotice` (also the run’s status message) states the block code, the backoffs actually waited, the failure that ended the request and how many rows were saved. There is no automatic proxy or identity switching. A search or load-more page that fails without a block (after its normal retries) is recorded in `errors`; a search or load-more request that keeps timing out without a block ends the run as `pagination-timeout`. A soft run deadline (`maxRunSeconds`, default 3,600 seconds, capped 20 seconds before the platform timeout) ends the run as `run-time-limit`. For `blocked-<code>`, `blocked-challenge`, `run-time-limit`, `errors` and `pagination-timeout`, OUTPUT `failed` is `true` while the platform run status stays SUCCEEDED, so inspect the OUTPUT even when the platform status is successful. A search normally ends as `exhausted` (no more results to load) or `maxItems`, both with `failed=false`; a search with no results also ends as `exhausted` (`failed=false`), not `empty`, unless, when the run has a single search, its load-more request fails, which ends the run as `errors` (`failed=true`). **Multiple keywords or search URLs run in order, and when one search runs out of results the run currently ends as `exhausted`: later searches are not fetched.** For full coverage, run one keyword or search URL per run. When a search page or load-more request fails without a block, the failure is recorded in `errors` and the run moves on to the next search; it ends as `errors` (`failed=true`) unless a later search runs out of results, in which case it currently ends as `exhausted` (`failed=false`) and the failed page is listed only in OUTPUT `errors` — check `errors` on multi-search runs. `completed` (rows saved) and `empty` (0 rows) appear only in rarer endings, for example runs with only direct `/gsbiz/` URLs.

**How are phones and emails handled?** Only public plaintext is kept: visible card/profile text, generic contact parameters, `tel:` / `mailto:` and JSON-LD `telephone` when present. The Actor does not decode `data-prg`, call reveal endpoints or open chat/quote widgets. If no plaintext email is found, `email` is `null` and `fieldUnavailableReason.email` records why — a contact-form URL is not an email.

**Will every field be available?** No. List-only runs leave detail modules null, keep `detailStatus` null/unset, and record `fieldUnavailableReason.detailNotRequested`. Cross-trade modules such as `bookingInfo`, `brochure`, `menu` or `openPositions` are often sparse outside hospitality samples. `highlightLevel` and `partnerLevel` stay null with reasons until semantics are verified. `provenance` is the canonical gsbiz URL. Reviews keep text, date, rating and platform while stripping private author nicknames. Directory rows are snapshots, not a live feed. Gelbe Seiten terms were not independently reviewed currently (`termsRisk=unknown`); you must still assess site terms for your use case. In testing, one list-only run (`restaurant` in Berlin, no proxy, default 256 MB memory) saved 1,000 businesses in about four minutes: all 106 requests succeeded, with no 403, 429 or 5xx responses and no memory problems (peak about 140 MiB). Detail mode has only been tested on a 5-row sample. Larger runs, other searches and detail runs at that scale have not been tested. Automatic failure alerts and repair timelines are not offered.

**Is it legal to scrape Gelbe Seiten?** This Actor accesses only publicly available Gelbe Seiten.de pages and embedded public business data. It does not log in, bypass access controls, solve captchas or enter account, chat or quote flows. Public availability is not blanket permission for every reuse, and site terms may restrict automated collection: you are responsible for complying with applicable laws, Gelbe Seiten terms and the requirements of your own use case.

### Changelog

#### 2026-11-21

- Grouped `.actor/input_schema.json` fields with `sectionCaption` headings (`Start URLs`, `Search Filters`, `Crawl Limits & Enrichment`, `Rate Limiting & Runtime`, `Proxy Configuration`) and verified explicit `prefill` values.
- Added JSON dataset output sample, live Pay-Per-Event Store subscription tier pricing (Free, Bronze, Silver, Gold, Platinum, Diamond), JavaScript and Python `ApifyClient` SDK quickstart examples (`Stone_JadeX/gelbeseiten-business-scraper`), and changelog entry.

# Changelog

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

# Actor input Schema

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

HTTPS www.gelbeseiten.de|gelbeseiten.de public /suche/{WAS}/{WO} or /gsbiz/{uuid} URLs. Ajax (/ajaxsuche), off-site hosts, credentials, non-443 ports and signed auth query tokens are rejected. Cannot be combined with keywords/filters search intent.

## `keywords` (type: `array`):

Search what-terms (WAS). Default \["restaurant"] applies only when there are no seeds and no explicit keyword/location. Each keyword becomes its own /suche/{slug}/{location} seed. Conflicts with startUrls.

## `keyword` (type: `string`):

Singular alias merged into keywords. Conflicts with startUrls.

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

Top-level alias of filters.location (WO). Default Berlin applies only with the default restaurant keyword path when no seeds and no explicit search. Conflicts with startUrls.

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

Top-level alias of filters.sort. Allowed: relevanz|bewertung|entfernung. Only relevanz was probe-tested; other values are accepted as raw ajax form passthrough with a warning.

## `filters` (type: `object`):

Search filters. keywords/keyword + location build /suche/{WAS}/{WO}. sort and umkreis are forwarded on ajax load-more. Any nonempty filter search combined with startUrls is rejected.

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

Global successfully pushed-row limit; clamped to 1–10000. Duplicate uuids are skipped before enrich/charge and do not count toward the limit.

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

Fetch /gsbiz/{uuid} detail pages (JSON-LD LocalBusiness/FoodEstablishment/Restaurant + HTML modules). Default false = list-only. Direct detail startUrls force a detail request even when false. List-only rows charge gelbeseiten-listing-result; successfully detail-merged rows (detailStatus=ok) charge gelbeseiten-detail-result only (not both). Failed detail enrichments are not charged. List-only runs set fieldUnavailableReason.detailNotRequested.

## `requestDelayMs` (type: `integer`):

Minimum interval between consecutive completed requests (serial). Clamped to 1200–60000. robots.txt crawl-delay may raise the floor.

## `maxRunSeconds` (type: `integer`):

Soft wall-clock budget for the run. Soft deadline is also capped 20s before the platform timeout when ACTOR_TIMEOUT_AT / APIFY_TIMEOUT_AT is set. Hitting the budget stops SUCCEEDED (run-time-limit).

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

Buyer proxy is not supported in this freeze. Omit the field, or pass {"useApifyProxy":false} only. Any nonempty proxy settings are rejected.

## Actor input object example

```json
{
  "startUrls": [],
  "keywords": [
    "restaurant"
  ],
  "keyword": "restaurant",
  "location": "Berlin",
  "sort": "relevanz",
  "filters": {
    "keywords": [
      "restaurant"
    ],
    "location": "Berlin",
    "sort": "relevanz",
    "umkreis": -1
  },
  "maxItems": 100,
  "includeDetails": false,
  "requestDelayMs": 1200,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

All successfully pushed business rows. Default list-only runs omit detailStatus (or leave detail fields null with fieldUnavailableReason.detailNotRequested); detail-enriched successful rows have detailStatus=ok. Phone/email are plaintext only. When includeDetails=true and detailStatus is not ok, the list row is still pushed and charged as gelbeseiten-listing-result only.

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

Run stop reason (blocked-403 / blocked-412 / blocked-429 / blocked-challenge / run-time-limit / errors / pagination-timeout → failed=true; empty / completed / exhausted / maxItems / charge-error / max-charge-reached → failed=false; error and invalid-input → failed=true). pagination-timeout is an unblocked list/ajax timeout and is treated as a list failure. The platform run is SUCCEEDED. Also runNotice, errors\[].type (blocked / blocked-challenge / list-error / detail-error), errors\[].lastFailure, errors\[].url, http.status412, pagesFetched / rowsPushed / chargedByEvent, truncation flags, robotsDisallowedHits, fieldsUnavailable (endPageUntested, detailNotRequested, termsUnread, costUncalibrated), warnings, errors and termsRisk. Diagnostics live here, not as separate dataset rows. End-page / deep pagination untested.

# 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 = {
    "startUrls": [],
    "keywords": [
        "restaurant"
    ],
    "keyword": "restaurant",
    "location": "Berlin",
    "sort": "relevanz",
    "filters": {
        "keywords": [
            "restaurant"
        ],
        "location": "Berlin",
        "sort": "relevanz",
        "umkreis": -1
    },
    "maxItems": 100,
    "includeDetails": false,
    "requestDelayMs": 1200,
    "maxRunSeconds": 3600,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/gelbeseiten-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 = {
    "startUrls": [],
    "keywords": ["restaurant"],
    "keyword": "restaurant",
    "location": "Berlin",
    "sort": "relevanz",
    "filters": {
        "keywords": ["restaurant"],
        "location": "Berlin",
        "sort": "relevanz",
        "umkreis": -1,
    },
    "maxItems": 100,
    "includeDetails": False,
    "requestDelayMs": 1200,
    "maxRunSeconds": 3600,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/gelbeseiten-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 '{
  "startUrls": [],
  "keywords": [
    "restaurant"
  ],
  "keyword": "restaurant",
  "location": "Berlin",
  "sort": "relevanz",
  "filters": {
    "keywords": [
      "restaurant"
    ],
    "location": "Berlin",
    "sort": "relevanz",
    "umkreis": -1
  },
  "maxItems": 100,
  "includeDetails": false,
  "requestDelayMs": 1200,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call stone_jadex/gelbeseiten-business-scraper --silent --output-dataset

```

## MCP server setup

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