# Changelog of Metrocuadrado Scraper — Colombia Listings (Enhanced) (`stone_jadex/metrocuadrado-colombia-scraper`) Actor

- **URL**: https://apify.com/stone_jadex/metrocuadrado-colombia-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/stone_jadex/metrocuadrado-colombia-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`, `Pagination Controls`, `Proxy Configuration`) and aligned `maxItems.prefill` (`100`) with `default` (`100`).
- 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/metrocuadrado-colombia-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 (`Actor.fail` remains only for `invalid-input`).
- Normal finish `stopReason`: `complete` → `completed`. 0 rows and no error stays `empty`, `failed=false`. Other reasons (`empty-page`, `maxItems`, `maxFrom`, `charge-error`, `max-charge-reached`) 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). 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/timeout was treated as an ordinary error and the run could end `empty`/`complete`.
- `stopReason` names: `blocked-403-or-429` → `blocked-403` / `blocked-412` / `blocked-429`; `challenge-or-auth` → `blocked-challenge`. A list page that fails without a block now ends the run as `errors` instead of `complete`/`empty` (still SUCCEEDED; only saved rows are charged).
- Detail enrichment failure no longer drops the row: the list row is saved with `detailStatus`/`detailError` and charged as `metrocuadrado-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: `metrocuadrado-detail-result` $0.00075 → $0.0015; `metrocuadrado-listing-result` stays $0.00075.

#### Added

- Start fee as Apify's synthetic `apify-actor-start` event at $0.00025 in `.actor/pay_per_event.json` (charged by the platform at run start; never charged by the code). `OUTPUT.pricingEvents.start`.
- 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-09 (developer freeze)

#### Added

- Enhanced Metrocuadrado (Colombia) Actor: anonymous public `GET /api/rest-search/search` list + optional detail Flight/RSC enrichment.
- Dual PPE (local `.actor/pay_per_event.json` only): `metrocuadrado-listing-result` / `metrocuadrado-detail-result` @ $0.00075 (anchor blackfalcondata dataset-item $0.0015 → 50%). No start-fee.
- Detail enrichment delta vs free list API: `companyName`, `companyImage`, `companyLink`, `companySeoUrl`, `salesRoomAddress`, `salesRoomSchedule`, `deliverDate`, `video`, `publicationId`, `isProject`, price/area ranges, grouped `featuresDetail`.
- Flight decoder port (`src/flight.js`) from probe reference: `self.__next_f.push` + `T<hex>` UTF-8 byte lengths; semantic locate `propertyId+propertyType+title`.
- Defaults: Bogotá D.C. / apartamento / venta; maxItems 100; includeDetails false; requestDelayMs ≥ 1200; nonempty proxy rejected.
- Pagination by `from` offset; empty results → SUCCEEDED; claimed `totalEntries`/`totalHits` metadata only (not hard full-crawl end).
- Photos: list IDs kept (no invented URLs); detail URLs merged with source tags.
- `hasElevator` / `gatedCommunity`: true only when explicit; missing → null.
- SSRF allowlist, robots parse (no crawl-delay), 403/429 ≥30s×2 then whole-site stop SUCCEEDED.
- TDD: wrong-value stubs → RED ERR_ASSERTION (`redlogs/stubs-red.tap`) → `# fail 0`.

#### Not in this freeze

- Schema / README (deferred to structured-output + copy roles).
- Agency aggregation fields (`listingsSeen`, etc.) — null + reason.
- Incremental / change detection hashes.
- Push / platform build / pricing / public listing.
