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

- **URL**: https://apify.com/stone_jadex/gelbeseiten-business-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/stone_jadex/gelbeseiten-business-scraper.md

## Changelog

### 2026-11-21 — Input Schema & README Polish

#### Changed

- Grouped `.actor/input_schema.json` fields under `sectionCaption` sections (`Start URLs`, `Search Filters`, `Crawl Limits & Enrichment`, `Rate Limiting & Runtime`, `Proxy Configuration`) and verified explicit `prefill` values across all primary parameters.
- Polished `README.md` with a 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 `2026-11-21` changelog section.

### Unreleased — 2026-11-16 (end-state unification)

#### Changed

- OUTPUT end-state (幕僚 2026-11-16 12:29 / WORKFLOW L30): `blocked-*` / `blocked-challenge`, hard `run-time-limit`, and list-page `errors` now set `failed=true`. `finish()` call sites pass `{ failed: true }`; `finish()` also infers the same if the flag is omitted. The platform run itself stays SUCCEEDED (no `Actor.fail`).
- `pagination-timeout` (non-block timeout on a search or ajax list page) is treated as list failure: `failed=true`, same as `errors`. Other reasons (`completed`, `empty`, `exhausted`, `maxItems`) stay `failed=false`.

### Unreleased — 2026-11-16 (final batch 1: unified block rules, prices)

#### Changed

- Blocking: HTTP 412 is a block code like 403/429 (back-off 30 s, then 60 s), on GET search/detail pages and the `/ajaxsuche` POST. Once a request has seen a block code it ends as `blocked-<most recent block code>`; any later non-200 (4xx incl. 404, 5xx, refused 3xx), timeout or network error ends it at once (K1) and stops the whole run. Previously a 403 followed by 404/5xx went on to the next page/seed (run ended `completed`/`empty`) and a 429 followed by a timeout ended `pagination-timeout`.
- `stopReason` names: `blocked-403-or-429` → `blocked-403` / `blocked-412` / `blocked-429`; `challenge-or-auth` → `blocked-challenge`. A search or ajax page that fails without a block now ends the run as `errors` instead of `completed`/`empty` (still SUCCEEDED; only saved rows are charged).
- Detail enrichment failure (404, error, missing JSON-LD, timeout) no longer drops the row: the list row is saved with `detailStatus`/`detailError` and charged as `gelbeseiten-listing-result`. On a blocked/challenged detail request the list row in hand is saved and charged as a listing row, then the run stops.
- Prices: `gelbeseiten-listing-result` $0.001 → $0.0007; `gelbeseiten-detail-result` $0.001 → $0.0015. No start event; no review event (no review output).

#### Added

- OUTPUT: `runNotice` (names only the back-offs that really happened and what the next attempt got), `errors[].type` (`blocked` / `blocked-challenge` / `list-error` / `detail-error`), `errors[].lastFailure`, `errors[].url`, `http.status412`.

#### Unchanged

- Event names, input schema, dataset fields, push-before-charge order, proxy rejection (no proxy logic in this release).

### 0.1.0 — 2026-11-08

- Initial Gelbe Seiten (gelbeseiten.de) Actor developer freeze (no schema/README — specialist roles).
- List SSR via `/suche/{WAS}/{WO}` `article.mod-Treffer`; load-more via POST `/ajaxsuche` JSON.`html` (never treat raw JSON as HTML).
- Detail via `/gsbiz/{uuid}` LocalBusiness/FoodEstablishment/Restaurant JSON-LD + HTML modules (Kontaktdaten, Oeffnungszeiten, Beschreibung, Zahlung, Speisekarte, Galerie, ImWeb, Ausbildung, Bewertungen).
- Defaults: keywords=`restaurant` + location=`Berlin`, maxItems 100, `includeDetails=false`, requestDelayMs≥1200, nonempty proxy rejected, memory 256 / timeout 3600 metadata.
- Dual custom PPE (local only): `gelbeseiten-listing-result` / `gelbeseiten-detail-result` at $0.001 each (anchor plowdata/gelbe-seiten default-item $0.002 → 50%). Detail-enriched rows charge detail only.
- Phone/email verbatim from plaintext / generic inboxConfig / tel / mailto / JSON-LD; no `data-prg` decode; no reveal/chat forms.
- Reviews keep text/date/rating/platform; strip private author/`benutzer`.
- `highlightLevel`/`partnerLevel` null + reason (bi/pn not used as stand-in).
- HTTP: public path allowlist (suche/ajaxsuche/gsbiz/robots), ≥1200ms spacing, 403/429 floor 30s×2 then site stop SUCCEEDED, captcha protective stop, robots Disallow warning+hits, ToS unread → termsRisk=unknown.
- TDD: redlogs ERR_ASSERTION-pure; final `# fail 0` on `node --test --test-reporter=tap`.
- Honest limitations: end-page/deep pagination untested; cross-industry optional modules sparse; ToS unread; cost uncalibrated; highlightLevel unverified.
