# Property24 South Africa Scraper (`stone_jadex/property24-za-scraper`) Actor

Extract public Property24.com South Africa property listings (for-sale & to-rent): ZAR prices, beds, baths, m² floor/erf size, suburb, agency, photos, and optional detail descriptions & public agent identity. $1.00 per 1,000 listings, no start fee.

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

## Pricing

from $0.85 / 1,000 property24 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

## Property24 South Africa Scraper

Extract structured South African residential and commercial property listings from public **Property24.com** **For Sale** and **To Rent** search results and 9-digit listing detail pages. Collect asking prices or monthly rentals in ZAR, bedrooms, bathrooms, parking spaces, floor and erf sizes in square metres, suburb/city/province hierarchies, listing prominence metadata, agency branding, gallery photos, full descriptions, and public agent professional identities into clean JSON, CSV, or Excel datasets.

Built on lightweight SSR HTML, embedded JSON-LD (`RealEstateListing`), and `listingLeadFormContext` extraction in a 256 MB default container, the Actor eliminates browser overhead, enforces strict allowlisted URL validation, and charges a flat **$0.001 per listing** (`$1.00` per 1,000 listings) with **$0.00 start fee**.

### Overview and use cases

- **For Sale & To Rent public SSR coverage**: Crawl any public Property24.com `/for-sale/...` or `/to-rent/...` search path (defaulting to `/for-sale/langebaan/western-cape/427` when `startUrls` and `path` are omitted) with automatic `/pN` pagination, or supply direct 9-digit listing detail URLs.
- **Two collection depths, one flat per-listing price**: Run in fast list-only mode (`includeDetails: false`, default) to capture card titles, ZAR display prices, bedrooms, bathrooms, parking spaces, floor/erf sizes, suburbs, thumbnails, and listing URLs (`property24-listing-result`). Enable `includeDetails: true` to fetch detail pages for full descriptions, overview panels, gallery images, coordinates, virtual tour IDs (`YouTube`, `Matterport`, `EyeSpy360`), and public agent professional identities (`property24-detail-result`). A successfully detail-enriched row charges `property24-detail-result` **instead of** `property24-listing-result` — never both on the same listing.
- **Strict privacy & contact boundaries**: Public agency names, logos, agency URLs, and agent professional identities (`name`, `jobTitle`, `profileURL`, `photoUrl`) are delivered when published on the page. Phone numbers, emails, and WhatsApp contacts stay `null` unless already visible in plaintext — the Actor never clicks reveal buttons or calls `ShowContactEmails` / `ShowContactNumbers`.
- **Global `listingNumber` deduplication**: Duplicate 9-digit listing IDs across boosted/promoted cards or subsequent pages are deduplicated before enrichment and before any charge. Grouped multi-unit cards retain `groupedListingNumbers` as metadata without exploding into duplicate billable rows.
- **Predictable pacing & proxy control**: Enforces serial completion spacing (`>= 1200 ms`, raised automatically if `robots.txt` specifies a higher `Crawl-delay`), handles HTTP `403`, `429`, and `503` blocks with 30 s / 60 s backoffs and clean `SUCCEEDED` termination (`stopReason: "blocked-403-or-429"`), and keeps proxy disabled by default (`useApifyProxy: false`) while allowing buyers to opt into sticky Apify Proxy groups such as `RESIDENTIAL` when platform datacenter IPs hit HTTP 503.

#### Common use cases

- **Estate agencies & market intelligence teams**: Monitor suburb asking prices, rental inventory, promoted-tile density (`tileType`), and agency market share across Western Cape, Gauteng, KwaZulu-Natal, and nationwide South African suburbs.
- **Property investors & yield analysts**: Export ZAR prices (`displayPrice`, numeric `price`), `bedrooms`, `bathrooms`, `garages`, `size` (`Floor` vs `Erf` in `m²`), and `suburbName` into valuation spreadsheets or SQL databases.
- **PropTech & portal aggregators**: Synchronize clean, deduplicated `listingNumber` snapshots and structured `overview` / `keyFeatures` attributes on a scheduled cadence via Apify Schedules or API pipelines.
- **Research & analytics pipelines**: Feed Property24 datasets directly into Python pandas, Jupyter notebooks, Looker Studio, or Node.js ETL workflows using `ApifyClient`.

### Input parameters and JSON examples

Configure runs in the Apify Console across three grouped sections (**Target URLs & Search Path**, **Collection Limits & Detail Depth**, and **Pacing, Runtime & Proxy**) or submit JSON via the Apify API. Running with empty `{}` input uses the default Langebaan for-sale search (`/for-sale/langebaan/western-cape/427`) with `maxItems: 100` and `includeDetails: false`.

| Parameter | Type | Default / Prefill | Constraints | Description |
| --- | --- | --- | --- | --- |
| `startUrls` | `array` | `[]` / Prefill: `[]` | Public HTTPS `property24.com` `/for-sale/...`, `/to-rent/...`, or 9-digit detail URLs | Optional array of public Property24 URLs (`string` or `{ "url": "..." }`). Cannot be combined with non-empty `path` or `filters`. Reveal/login/service/handler paths and off-site hosts are rejected. Direct 9-digit detail URLs automatically fetch full detail data even when `includeDetails` is `false`. |
| `path` | `string` | `"/for-sale/langebaan/western-cape/427"` | Public `/for-sale/...` or `/to-rent/...` path | Property24 list path crawled when `startUrls` is empty. Conflicts with `startUrls`. Also accepted via `filters.path`. |
| `filters` | `object` | Prefill: `{"path": "/for-sale/langebaan/western-cape/427", "page": 1}` | Keys allowed: `path`, `page`, `listingType` | Optional verified list filters object (`path`: list path alias; `page`: 1-based starting page `1–100000` mapped to `/pN`; `listingType`: optional hint such as `"Sale"` or `"Rent"` retained on `inputSummary`). Unverified filter keys are rejected instead of silently ignored. Cannot be combined with `startUrls`. |
| `maxItems` | `integer` | `100` / Prefill: `100` | `1` – `10000` | Maximum number of unique listings stored and charged per run. Clamped to `1–10000`. Skipped duplicates and failed detail fetches do not consume this quota. |
| `includeDetails` | `boolean` | `false` / Prefill: `false` | Boolean | When `false` (default), extracts search-card fields only (`property24-listing-result`). When `true`, visits each listing's detail page to merge full descriptions, overview panels, photo galleries, virtual tour IDs, coordinates, and public agent identities (`property24-detail-result`). |
| `deduplicate` | `boolean` | `true` / Prefill: `true` | Boolean | Skips duplicate 9-digit `listingNumber` items within the same run prior to detail requests and charging. `groupedListingNumbers` remains metadata and never creates duplicate rows. |
| `requestDelayMs` | `integer` | `1200` / Prefill: `1200` | `1200` – `60000` | Minimum serial delay in milliseconds after each completed HTTP request. Raised automatically if `robots.txt` sets a larger `Crawl-delay`. |
| `maxRunSeconds` | `integer` | `3600` / Prefill: `3600` | `30` – `86400` | Soft wall-clock budget in seconds. Also capped 20 seconds before platform `ACTOR_TIMEOUT_AT` so `OUTPUT` is always flushed cleanly. |
| `proxyConfiguration` | `object` | Prefill: `{"useApifyProxy": false}` | Apify Proxy config (`useApifyProxy`, `apifyProxyGroups`, `apifyProxyCountry`, `proxyUrls`) | Optional buyer-configured proxy. Direct connection is used when omitted. Because Property24 often returns HTTP `503` to Apify datacenter IPs, select `apifyProxyGroups: ["RESIDENTIAL"]` when enabling Apify Proxy. Uses sticky session `property24_sticky` and never auto-enables or auto-upgrades proxy groups after blocks. |

#### Nested `filters` properties

| Property | Type | Prefill / Default | Description |
| --- | --- | --- | --- |
| `filters.path` | `string` | `"/for-sale/langebaan/western-cape/427"` | Public `/for-sale/...` or `/to-rent/...` path without hostname (alias of top-level `path`). |
| `filters.page` | `integer` | `1` | Starting page (`1–100000`), formatted onto the URL path as `/pN` (e.g. `/p2`). |
| `filters.listingType` | `string` | `"Sale"` | Informational listing-type label preserved in run summary metadata (`Sale` / `Rent` URL routing is controlled by `/for-sale/` vs `/to-rent/` in `path`). |

#### Input examples

##### Example 1: Default Langebaan for-sale list-only crawl (fast, low-cost)

```json
{
  "path": "/for-sale/langebaan/western-cape/427",
  "filters": {
    "path": "/for-sale/langebaan/western-cape/427",
    "page": 1
  },
  "maxItems": 25,
  "includeDetails": false,
  "deduplicate": true,
  "requestDelayMs": 1200,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

##### Example 2: Direct Property24 URLs with detail enrichment and Residential proxy

```json
{
  "startUrls": [
    {
      "url": "https://www.property24.com/to-rent/cape-town/western-cape/432"
    },
    {
      "url": "https://www.property24.com/for-sale/mykonos/langebaan/western-cape/7948/117655699"
    }
  ],
  "maxItems": 50,
  "includeDetails": true,
  "deduplicate": true,
  "requestDelayMs": 1500,
  "maxRunSeconds": 1800,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Output example and dataset schema reference

Each item written to the default dataset represents one unique 9-digit `listingNumber` matching `.actor/dataset_schema.json`. Diagnostics and stop reasons are written to the Key-Value Store `OUTPUT` record rather than mixed into dataset rows.

#### Illustrative JSON output

##### Listing record (`includeDetails: false`)

```json
{
  "agencyId": null,
  "agencyName": null,
  "agencyImageUrl": null,
  "descriptionHeader": "2 Bedroom Apartment / Flat for sale in Mykonos",
  "description": null,
  "photos": [],
  "floorPlans": [],
  "contacts": [],
  "keyFeatures": [
    { "text": "Bedrooms", "icon": null, "value": "2" },
    { "text": "Bathrooms", "icon": null, "value": "1" },
    { "text": "Parking Spaces", "icon": null, "value": "1" },
    { "text": "Floor Size", "icon": null, "value": "49 m²" }
  ],
  "keyFeaturesLeft": [],
  "keyFeaturesRight": [],
  "details": [],
  "pointsOfInterest": null,
  "pointsOfInterestReason": "PointsOfInterestForListing endpoint is not queried",
  "nextShowDate": null,
  "nextShowEndDate": null,
  "showDays": [],
  "listingUrl": "https://www.property24.com/for-sale/mykonos/langebaan/western-cape/7948/117655699?plId=2683829&plt=2&plsIds=2688012",
  "sourceReference": null,
  "listingMedia": {
    "youTubeVideoTourId": null,
    "matterportSpaceId": null,
    "eyeSpy360Id": null
  },
  "auctionVenue": null,
  "hasVenue": null,
  "soldPrices": null,
  "suburbTrendsUrl": null,
  "soldPriceSuburbUrl": null,
  "suburbName": "Mykonos",
  "cityName": null,
  "provinceName": null,
  "suburbId": null,
  "cityId": null,
  "provinceId": null,
  "suburbResultsUrl": null,
  "status": null,
  "listingType": "Sale",
  "onShow": null,
  "repossessed": null,
  "auction": null,
  "listingNumber": "117655699",
  "displayPrice": "R 1 580 000",
  "price": null,
  "bedrooms": 2,
  "bathrooms": 1,
  "garages": null,
  "parkingSpaces": 1,
  "size": {
    "value": 49,
    "unit": "m²"
  },
  "sizeType": "Floor",
  "thumbnailUrl": "https://images.prop24.com/387225292/Crop525x350",
  "tileType": "Promoted",
  "midSizeImageUrl": "https://images.prop24.com/387225292/Crop525x350",
  "propertyTypeId": null,
  "hasGroupedDuplicates": false,
  "agencyBrandingLogoType": null,
  "isPrivateListing": null,
  "isOffPortal": null,
  "banners": null,
  "badges": null,
  "basicInfo": {
    "suburbName": "Mykonos",
    "listingType": "Sale",
    "listingNumber": "117655699",
    "displayPrice": "R 1 580 000",
    "bedrooms": 2,
    "bathrooms": 1,
    "parkingSpaces": 1,
    "size": { "value": 49, "unit": "m²" },
    "sizeType": "Floor",
    "thumbnailUrl": "https://images.prop24.com/387225292/Crop525x350",
    "tileType": "Promoted",
    "hasGroupedDuplicates": false
  },
  "agencyBrandingLogoUrl": null,
  "descriptionSnippet": "2 Bedroom Apartment in Mykonos",
  "streetAddress": null,
  "features": {
    "Bedrooms": "2",
    "Bathrooms": "1",
    "Parking Spaces": "1",
    "Floor Size": "49 m²"
  },
  "imageUrls": [
    "https://images.prop24.com/387225292/Crop525x350"
  ],
  "groupLabel": null,
  "groupedListingNumbers": [],
  "tileClasses": ["p24_proTile"],
  "tileTypeRaw": "p24_proTile",
  "agencyUrl": null,
  "priceCurrency": null,
  "title": "2 Bedroom Apartment / Flat for sale in Mykonos",
  "source": "property24.com",
  "scrapedAt": "2026-11-24T00:00:00.000Z",
  "listUrl": "https://www.property24.com/for-sale/langebaan/western-cape/427",
  "detailFetched": false,
  "detailStatus": "skipped",
  "sourceDetail": null,
  "sourceJsonLd": null,
  "sourceLeadContext": null,
  "fieldUnavailableReason": {
    "pointsOfInterest": "PointsOfInterestForListing endpoint is not queried",
    "soldPrices": "sold/transaction endpoints are not queried",
    "nextShowDate": "show day / nextShow* not observed on page",
    "nextShowEndDate": "show day / nextShow* not observed on page",
    "showDays": "show day / nextShow* not observed on page",
    "description": "includeDetails=false; detail description not fetched",
    "photos": "includeDetails=false; gallery not fetched",
    "contacts": "includeDetails=false; agentDetails not fetched",
    "details": "includeDetails=false; overview panels not fetched"
  }
}
```

#### Dataset fields reference

Every field declared in `.actor/dataset_schema.json` is listed below. Fields not present on a list-only run or omitted by Property24 are returned cleanly as `null` (or `[]` for arrays) with explanations in `fieldUnavailableReason`.

| Field | Type | Description |
| --- | --- | --- |
| `listingNumber` | `string \| null` | Unique 9-digit Property24 listing identifier (primary deduplication key; `P`-prefix stripped). |
| `listingUrl` | `string \| null` | Canonical public Property24 listing URL. |
| `listUrl` | `string \| null` | Source list-page URL where the card was found (`null` for direct detail seeds). |
| `title` | `string \| null` | Listing title parsed from the list card or detail `<h1>`. |
| `descriptionHeader` | `string \| null` | Heading alias for the listing title (`descriptionHeader`). |
| `descriptionSnippet` | `string \| null` | Short list-card excerpt text. |
| `description` | `string \| null` | Full listing description text (or HTML fallback) from the detail page; `null` in list-only mode. |
| `descriptionText` | `string \| null` | Plain-text detail description extracted from the DOM. |
| `descriptionHtml` | `string \| null` | Original HTML detail description extracted from the DOM. |
| `displayPrice` | `string \| null` | Formatted asking price or rental string as published (e.g. `"R 1 580 000"`). |
| `price` | `number \| string \| null` | Numeric price parsed from detail JSON-LD `offers.priceSpecification.price` (or card content when present); `null` on POA / unparsed cards. |
| `priceCurrency` | `string \| null` | ISO currency code (e.g. `"ZAR"`) when exposed by JSON-LD or card metadata. |
| `listingType` | `string \| null` | `"Sale"` or `"Rent"`, derived from URL path or `leadContext.listingType`. |
| `bedrooms` | `number \| null` | Bedroom count from list features or JSON-LD `numberOfBedrooms`. |
| `bathrooms` | `number \| null` | Bathroom count from list features or JSON-LD `numberOfBathroomsTotal`. |
| `garages` | `number \| string \| null` | Garage count from detail overview External Features (`number` or raw text when non-numeric). |
| `parkingSpaces` | `number \| null` | Parking spaces from list features or overview External Features. |
| `size` | `object \| null` | Structured size `{ value, unit }` (`unit: "m²"`) prioritizing Floor size over Erf size. |
| `sizeType` | `string \| null` | `"Floor"` or `"Erf"`, indicating which measurement populated `size`. |
| `streetAddress` | `string \| null` | Street address from list card, detail overview, or JSON-LD `about.address`. |
| `suburbName` | `string \| null` | Suburb / locality name (e.g. `"Mykonos"`, `"Blue Lagoon"`). |
| `cityName` | `string \| null` | City name extracted from detail breadcrumbs when available. |
| `provinceName` | `string \| null` | South African province name (e.g. `"Western Cape"`). |
| `suburbId` | `string \| null` | Numeric suburb identifier parsed from breadcrumb URL. |
| `cityId` | `string \| null` | Numeric city identifier parsed from breadcrumb URL. |
| `provinceId` | `string \| null` | Numeric province identifier parsed from breadcrumb URL. |
| `suburbResultsUrl` | `string \| null` | Canonical Property24 suburb search results URL from breadcrumbs. |
| `suburbTrendsUrl` | `string \| null` | Suburb property-trends page URL when linked on the detail page. |
| `soldPriceSuburbUrl` | `string \| null` | Suburb property-values / sold-prices page URL when linked on the detail page. |
| `latitude` | `number \| null` | Latitude from detail JSON-LD `about.latitude` (`null` when omitted). |
| `longitude` | `number \| null` | Longitude from detail JSON-LD `about.longitude` (`null` when omitted). |
| `datePosted` | `string \| null` | Publication date string from JSON-LD `datePosted` when present. |
| `propertyAboutType` | `string \| null` | Schema.org `@type` from JSON-LD `about` (e.g. `"House"`, `"Apartment"`). |
| `propertyTypeId` | `string \| null` | Property type identifier when exposed (`null` on standard SSR pages). |
| `status` | `string \| null` | Listing status when exposed (`null` on standard SSR pages). |
| `onShow` | `boolean \| null` | On-show boolean flag when exposed (`null` on standard SSR pages). |
| `repossessed` | `boolean \| null` | Repossessed flag when exposed (`null` on standard SSR pages). |
| `auction` | `boolean \| null` | Auction flag when exposed (`null` on standard SSR pages). |
| `auctionVenue` | `string \| null` | Auction venue text when exposed (`null` when absent). |
| `hasVenue` | `boolean \| null` | Whether a show/auction venue flag is present (`null` when absent). |
| `nextShowDate` | `string \| null` | Next show-day start timestamp (`null`; show-day APIs are not fetched). |
| `nextShowEndDate` | `string \| null` | Next show-day end timestamp (`null`; show-day APIs are not fetched). |
| `showDays` | `array \| null` | Show-day schedule array (`[]`; see `fieldUnavailableReason.showDays`). |
| `thumbnailUrl` | `string \| null` | Primary thumbnail image URL (`Crop525x350` or detail thumbnail). |
| `midSizeImageUrl` | `string \| null` | Mid-resolution primary image URL. |
| `imageUrls` | `array \| null` | Image URLs extracted directly from the list tile. |
| `photos` | `array \| null` | Full detail photo gallery objects (`caption`, `imageUrl`, `midSizeImageUrl`, `originalUrl`, `thumbnailUrl`, `imageIdentifier`); `[]` in list-only mode. |
| `floorPlans` | `array \| null` | Floor-plan image entries `{ imageUrl }` from the detail gallery (`[]` when absent). |
| `features` | `object \| null` | Raw list-card key/value feature map (e.g. `Bedrooms`, `Bathrooms`, `Floor Size`, `Erf Size`). |
| `keyFeatures` | `array \| null` | Normalized `{ text, icon, value }` feature chips from list or detail DOM. |
| `keyFeaturesLeft` | `array \| null` | Left column of split detail key features (`[]` in list-only mode). |
| `keyFeaturesRight` | `array \| null` | Right column of split detail key features (`[]` in list-only mode). |
| `details` | `array \| null` | Structured detail overview panels formatted as `[{ name, categoryItems: [{ name, values }] }]`. |
| `overview` | `object \| null` | Raw detail overview map keyed by panel heading and attribute label (optional, populated on detail runs). |
| `locationLinks` | `array \| null` | Public location trend and value links extracted from the detail page. |
| `listingMedia` | `object \| null` | Virtual tour identifiers `{ youTubeVideoTourId, matterportSpaceId, eyeSpy360Id }` parsed from delivered iframes/links. |
| `pointsOfInterest` | `array \| object \| null` | Always `null` (`PointsOfInterestForListing` is never called). |
| `pointsOfInterestReason` | `string \| null` | Literal explanation confirming `PointsOfInterestForListing` was not called. |
| `soldPrices` | `array \| object \| null` | Always `null` (sold/transaction APIs are not fetched). |
| `agencyId` | `string \| null` | Numeric estate agency identifier parsed from `agencyUrl`. |
| `agencyName` | `string \| null` | Estate agency / brokerage name from list card, `leadContext`, or JSON-LD. |
| `agencyUrl` | `string \| null` | Public Property24 estate agency profile URL. |
| `agencyImageUrl` | `string \| null` | Agency logo image URL. |
| `agencyBrandingLogoUrl` | `string \| null` | Agency branding logo URL mirrored from list branding or JSON-LD. |
| `agencyBrandingLogoType` | `string \| null` | Agency branding logo type when exposed (`null` otherwise). |
| `contacts` | `array \| null` | Public agent professional identities (`id`, `name`, `jobTitle`, `profileURL`, `photoUrl`, `hasContactNumber`, `canShowWhatsApp`, `contactAvailabilityReason`). `emailAddress`, `contactNumbers`, and `agentWhatsappContact` remain `null` unless plaintext on the page. |
| `contactRevealRequired` | `boolean \| null` | `true` when the detail page renders a `.js_contactNumbersLink` reveal link (does not mean phone numbers were fetched). |
| `isPrivateListing` | `boolean \| null` | Private-seller listing flag from `leadContext`. Private listings omit agent contacts (`[]`). |
| `isOffPortal` | `boolean \| null` | Off-portal flag when exposed (`null` otherwise). |
| `banners` | `array \| object \| string \| null` | Listing banner metadata when exposed (`null` otherwise). |
| `badges` | `array \| object \| string \| null` | Listing badge metadata when exposed (`null` otherwise). |
| `hasGroupedDuplicates` | `boolean \| null` | `true` when the list tile advertised grouped sub-listings. |
| `groupLabel` | `string \| null` | Grouped-listing label text from the list tile when present. |
| `groupedListingNumbers` | `array \| null` | Sibling listing numbers referenced in group metadata (never exploded into extra charged rows). |
| `tileType` | `string \| null` | Derived tile prominence (`"Normal"` or `"Promoted"`). |
| `tileTypeRaw` | `string \| null` | Raw matched `p24_*Tile` CSS class token. |
| `tileClasses` | `array \| null` | Matched `p24` tile CSS classes from the list card. |
| `basicInfo` | `object \| null` | Convenience mirror of core top-level listing scalar fields. |
| `sourceReference` | `string \| null` | External source reference when exposed (`null` otherwise). |
| `source` | `string \| null` | Source platform identifier (`"property24.com"`). |
| `scrapedAt` | `string \| null` | UTC ISO 8601 timestamp when the listing row was mapped. |
| `detailFetched` | `boolean \| null` | `true` when a detail page was fetched and merged successfully (`detailStatus === "ok"`). |
| `detailStatus` | `string \| null` | Detail enrichment status: `"skipped"`, `"pending"`, `"ok"`, `"missing-url"`, `"challenge"`, `"blocked"`, `"missing-detail"`, `"not-found"`, `"error"`, or `"missing"`. |
| `detailError` | `string \| null` | Error message or HTTP status recorded when detail enrichment did not succeed. |
| `sourceList` | `object \| null` | Sanitized raw list card payload (opaque tokens stripped). |
| `sourceDetail` | `object \| null` | Sanitized subset of detail DOM extraction (`null` in list-only mode). |
| `sourceJsonLd` | `object \| null` | Sanitized JSON-LD `RealEstateListing` object (`null` in list-only mode). |
| `sourceLeadContext` | `object \| null` | Sanitized `listingLeadFormContext` object with opaque tokens stripped (`null` in list-only mode). |
| `fieldUnavailableReason` | `object \| null` | Per-field human-readable reasons explaining unrequested or omitted modules (`description`, `photos`, `contacts`, `details`, `pointsOfInterest`, `soldPrices`, `showDays`, `contactPhonesEmails`). |

#### Dataset views and Key-Value Store `OUTPUT`

- **Dataset views (`.actor/dataset_schema.json`)**:
  - `overview`: `listingNumber`, `title`, `displayPrice`, `listingType`, `suburbName`, `bedrooms`, `bathrooms`, `listingUrl`, `agencyName`, `detailStatus`, `thumbnailUrl`, and `scrapedAt`.
  - `details`: `listingNumber`, `title`, `streetAddress`, `cityName`, `provinceName`, `garages`, `parkingSpaces`, `size`, `sizeType`, `isPrivateListing`, `description`, and `contacts`.
- **Key-Value Store `OUTPUT` record**: Written at completion of every normal, blocked, deadline, or invalid-input run (`.actor/key_value_store_schema.json` and `.actor/output_schema.json`), reporting `startedAt`, `finishedAt`, `inputSummary`, `pricingEvents`, `rowsPushed`, `charged`, `chargedByEvent`, `pushedButNotCharged`, `pushFailures`, `rejectedInvalid`, `pagesFetched`, `duplicates`, `detailFailures`, `statusCounts`, `robotsDisallowedHits`, `truncatedByMaxItems`, `truncatedByBudget`, `stopReason`, `errors`, `warnings`, `fieldsUnavailable`, `http` (including `status503` and `proxyEnabled`), and `termsRisk: "high"`.

### Pricing and Store tier discounts

This Actor uses transparent **Pay-Per-Event (PPE)** pricing in **USD** with **no Actor start fee** (`$0.00` start fee) and **no paid contact-email enrichment event**. Empty pages, duplicate `listingNumber` skips, failed detail requests, and blocked zero-result runs incur `$0.00` in Actor event charges.

- **`property24-listing-result`** (*Property24 listing result — primary event*): Charged once per unique listing saved in list-only mode (`includeDetails: false`) at **$0.001** base rate (`$1.00` per 1,000 listings).
- **`property24-detail-result`** (*Property24 detail result*): Charged once per unique listing successfully enriched from its detail page (`detailStatus === "ok"`) at **$0.001** base rate (`$1.00` per 1,000 listings). Replaces `property24-listing-result` for that row — the same listing is never charged both events. If a detail fetch fails when `includeDetails: true`, the listing is skipped and not charged.

#### Live Store subscription tier discounts

Apify Store subscription discounts apply automatically to both `property24-listing-result` and `property24-detail-result`:

| Apify Plan Tier | Discount | Price per Listing / Detail Row | Effective Cost per 1,000 Listings |
| --- | --- | ---: | ---: |
| **Free** | Base rate | `$0.00100` | `$1.000` |
| **Bronze** | 5% off | `$0.00095` | `$0.950` |
| **Silver** | 10% off | `$0.00090` | `$0.900` |
| **Gold** | 15% off | `$0.00085` | `$0.850` |
| **Platinum** | 15% off | `$0.00085` | `$0.850` |
| **Diamond** | 15% off | `$0.00085` | `$0.850` |

#### Cost comparison

At the Free-tier rate of **$0.001** per listing with **$0.00** start fee, 1,000 Property24 listings cost **$1.00** in Actor event charges (or **$0.85** on Gold, Platinum, and Diamond plans). By comparison, alternative Store Property24 scrapers such as `memo23/property24-scraper` (verified via Apify API on 8 November 2026) charge `$0.002` per dataset item plus a `$0.005` per-GB Actor start fee (**`$2.005`** per 1,000 list items) and `$0.05` per optional `contact-email` enrichment match. Platform compute, storage, and any optional Residential proxy bandwidth are billed separately by Apify according to your plan.

### Quickstart with JavaScript and Python SDKs

Call `Stone_JadeX/property24-za-scraper` programmatically from Node.js or Python using the official Apify Client SDKs.

#### JavaScript (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('Stone_JadeX/property24-za-scraper').call({
    path: '/for-sale/langebaan/western-cape/427',
    maxItems: 25,
    includeDetails: false,
    deduplicate: true,
    requestDelayMs: 1200,
    proxyConfiguration: { useApifyProxy: false },
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Fetched ${items.length} Property24 listings`);
if (items.length > 0) {
    console.log(items[0]);
}

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
console.log('Stop reason:', summary?.value?.stopReason, 'HTTP 503 count:', summary?.value?.http?.status503);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("Stone_JadeX/property24-za-scraper").call(
    run_input={
        "path": "/for-sale/langebaan/western-cape/427",
        "maxItems": 25,
        "includeDetails": False,
        "deduplicate": True,
        "requestDelayMs": 1200,
        "proxyConfiguration": {"useApifyProxy": False},
    }
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Fetched {len(items)} Property24 listings")
if items:
    print(items[0])

output_record = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")
summary = (output_record or {}).get("value", {})
print("Stop reason:", summary.get("stopReason"), "Charged:", summary.get("charged"))
```

### Responsible scraping, proxy guidance, and legal compliance

- **Public SSR pages only**: The Actor accesses only public Property24.com `/for-sale/...`, `/to-rent/...`, `/estate-agents/...`, and 9-digit detail pages. It never logs in, enters enquiry forms, bypasses CAPTCHAs, or accesses private accounts.
- **Reveal & restricted endpoint refusal**: `/ListingReadOnly/ShowContactNumbers`, `/ListingReadOnly/ShowContactEmails`, `/ListingReadOnly/PointsOfInterestForListing`, `/Results/GroupedListings`, `/Services`, and `/Handlers` are blocked in both input validation and every HTTP redirect hop.
- **`robots.txt` transparency**: `robots.txt` is fetched on every run. Any `Crawl-delay` raises the serial request floor automatically, and paths matching `Disallow` rules are logged and counted in `OUTPUT.robotsDisallowedHits` (warn-only tracking; reveal paths remain hard-blocked).
- **Terms of Service warning (`termsRisk: "high"`)**: Property24's published terms restrict automated monitoring or copying (`termsRisk: "high"` is recorded on every `OUTPUT` report as a compliance notice). Public accessibility does not grant blanket permission for every downstream use; you are responsible for complying with applicable laws (including POPIA) and Property24's terms of use.
- **HTTP 503 and Residential proxy guidance**: Property24.com frequently serves HTTP `503` to Apify default datacenter egress while returning HTTP `200` to residential or non-datacenter exits. `proxyConfiguration` stays off by default (`useApifyProxy: false`) and never auto-upgrades after blocks. If `OUTPUT.http.status503` triggers `blocked-403-or-429`, re-run with `proxyConfiguration: { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` (billed separately by Apify).

### Limitations, FAQ, and changelog

#### Limitations and FAQ

**Why did my platform run stop with `stopReason: "blocked-403-or-429"` and `http.status503 > 0`?**
Property24.com aggressively blocks shared datacenter IP ranges with HTTP `503`. By design, this Actor leaves `proxyConfiguration` disabled by default so you never incur unexpected proxy charges, and treats HTTP `503` like `403`/`429` (30 s and 60 s backoffs, then clean `SUCCEEDED` exit). To resolve platform `503` blocks, enable Apify Proxy in the Input tab and explicitly select the **RESIDENTIAL** proxy group (`apifyProxyGroups: ["RESIDENTIAL"]`).

**Why are `emailAddress`, `contactNumbers`, and `agentWhatsappContact` `null` even when `hasContactNumber` is `true`?**
`hasContactNumber: true` and `contactRevealRequired: true` indicate that Property24 displays a "Show Contact Number" button on the page. Because those numbers are gated behind `ShowContact*` endpoints disallowed in `robots.txt`, this Actor never calls reveal endpoints and never guesses phone numbers. Public agent `name`, `jobTitle`, `agencyName`, `profileURL`, and `photoUrl` are still extracted cleanly.

**Do `property24-listing-result` and `property24-detail-result` charge twice for the same listing?**
No. When `includeDetails` is `false`, each saved row charges `property24-listing-result` (`$0.001`). When `includeDetails` is `true`, each successfully detail-merged row (`detailStatus: "ok"`) charges `property24-detail-result` (`$0.001`) **instead of** `property24-listing-result`. Rows that fail detail enrichment are skipped and not charged.

**Why does `path` conflict with `startUrls`, and how does pagination work?**
Provide either `startUrls` or `path` / `filters` — combining both raises `invalid-input` so searches never silently override each other. Property24 list pagination uses `/p2`, `/p3`, etc. appended to the path (never `?Page=`). Runs stop cleanly with `SUCCEEDED` on empty tiles (`empty-page`), natural end `404` (`page-end-404`), `maxItems`, or `run-time-limit`.

**Why are `Floor Size` and `Erf Size` distinguished in `size` and `sizeType`?**
Property24 apartments typically publish `Floor Size`, whereas houses and plots often publish `Erf Size` (land area) or both. The parser preserves both raw strings in `features` and `overview`, prioritizes `Floor Size` for apartments when available, and explicitly labels `sizeType` as `"Floor"` or `"Erf"` so downstream analytics never mix building area with land area.

#### Changelog

- **2026-11-24 (v0.1.5 — Store Launch Staging, Schema UX & README Upgrade)**:
  - Cleaned internal development notes from `.actor/actor.json`, `.actor/input_schema.json`, and `.actor/dataset_schema.json`, and added `"readme": "../README.md"`.
  - Grouped `.actor/input_schema.json` into three logical Console sections (`Target URLs & Search Path`, `Collection Limits & Detail Depth`, `Pacing, Runtime & Proxy`) while preserving `proxyConfiguration` without a platform-injected `default`.
  - Added a `details` view alongside `overview` in `.actor/dataset_schema.json`.
  - Upgraded `README.md` with full input and 89-field dataset reference tables, fixture-verified JSON output, live Store tier discount pricing (`Free`–`Diamond`), JavaScript & Python `ApifyClient` quickstarts, and Store-polish regression tests.
  - Preserved structured `invalid-input` `OUTPUT` diagnostics in `src/main.js` when validation fails.
- **2026-11-09 (v0.1.4 — Buyer-Selected Residential Proxy Groups)**:
  - Passed through buyer-selected `apifyProxyGroups` / `groups` (such as `RESIDENTIAL`) and `apifyProxyCountry` / `countryCode` verbatim without auto-injecting or auto-upgrading groups after blocks.
- **2026-11-09 (v0.1.3 — Sticky Proxy Session Fix)**:
  - Fixed sticky proxy session identifier to `property24_sticky` matching Apify Proxy's `/^[\w._~]+$/` validation.
- **2026-11-09 (v0.1.2 — Platform Reachability & HTTP 503 Handling)**:
  - Added optional buyer `proxyConfiguration`, browser-like headers for public HTML fetches, and HTTP `503` handling matching `403`/`429` (`>= 30s` backoff × 2, then clean `SUCCEEDED` exit).
- **2026-11-08 (v0.1.0 — Initial Release)**:
  - Initial public SSR HTML list and detail parser (`RealEstateListing` JSON-LD + `listingLeadFormContext` + DOM), global 9-digit `listingNumber` deduplication, dual PPE billing (`property24-listing-result` / `property24-detail-result`), strict SSRF/path allowlist, and `termsRisk: "high"` reporting.

# Changelog

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

# Actor input Schema

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

HTTPS www.property24.com|property24.com public /for-sale/... or /to-rent/... list URLs (optional /pN page suffix) or 9-digit detail URLs. ShowContact\*/PointsOfInterest/GroupedListings/Services/Handlers/Login/Signup/MyProperty24/advanced-search paths, off-site hosts, credentials, non-443 ports and signed auth query tokens are rejected. Cannot be combined with path/filters.

## `path` (type: `string`):

Public list path used when startUrls is empty. Default /for-sale/langebaan/western-cape/427. Conflicts with startUrls. Also accepted under filters.path.

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

Verified list filters only: path, page, listingType. Any other nonempty key is rejected (no invented advanced-search / PropertyCategory encodings). Cannot be combined with startUrls.

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

Global successfully pushed-row limit; clamped to 1–10000. Duplicate listingNumber values are skipped before enrich/charge and do not count toward the limit when deduplicate=true.

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

Fetch listing detail pages (JSON-LD + leadContext + DOM description/overview/gallery). Default false = list-only. Direct detail startUrls force a detail request even when false. List-only rows charge property24-listing-result; successfully detail-merged rows (detailStatus=ok) charge property24-detail-result only (not both). Failed detail enrichments are not charged. List-only runs set fieldUnavailableReason.description/photos/contacts/details.

## `deduplicate` (type: `boolean`):

Skip listingNumber values already pushed in this run. groupedListingNumbers stays metadata only and is never exploded into extra charged rows. Default true.

## `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`):

Optional. Default off — omit this field, or pass {"useApifyProxy":false}. There is no schema default (platform would inject one); Console prefill is UI-only and stays useApifyProxy:false. Set useApifyProxy:true and/or proxyUrls to route through buyer-supplied Apify Proxy / custom proxies. Default / datacenter Apify Proxy often receives HTTP 503 from property24.com (box/residential egress often still 200). When using Apify Proxy, explicitly select the RESIDENTIAL group in the proxy editor (apifyProxyGroups: \["RESIDENTIAL"] / groups: \["RESIDENTIAL"]); the Actor passes the selected group through as-is and never auto-injects or upgrades to RESIDENTIAL after 403/429/503. Sticky session only (property24_sticky, /^\[\w.\_~]+$/), no rotation to bypass blocks.

## Actor input object example

```json
{
  "startUrls": [],
  "path": "/for-sale/langebaan/western-cape/427",
  "filters": {
    "path": "/for-sale/langebaan/western-cape/427",
    "page": 1
  },
  "maxItems": 100,
  "includeDetails": false,
  "deduplicate": true,
  "requestDelayMs": 1200,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All successfully pushed listing rows. Default list-only runs leave detail fields null with fieldUnavailableReason.\*; detail-enriched successful rows have detailStatus=ok. Contact phones/emails/WhatsApp are null unless plaintext on the page.

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

Run stop reason (including blocked-403-or-429 covering HTTP 403/429/503 / challenge-or-auth / empty-page / page-end-404 / maxItems / run-time-limit), pagesFetched / rowsPushed / chargedByEvent, truncation flags, robotsDisallowedHits, fieldsUnavailable, warnings, errors, termsRisk=high, inputSummary.proxyEnabled, and http stats (proxyEnabled, status503, sticky session — proxy never auto-enabled or rotated after blocks). Diagnostics live here, not as separate dataset rows. ShowContact\* reveal endpoints are never called.

# 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": [],
    "path": "/for-sale/langebaan/western-cape/427",
    "filters": {
        "path": "/for-sale/langebaan/western-cape/427",
        "page": 1
    },
    "maxItems": 100,
    "includeDetails": false,
    "deduplicate": true,
    "requestDelayMs": 1200,
    "maxRunSeconds": 3600,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/property24-za-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": [],
    "path": "/for-sale/langebaan/western-cape/427",
    "filters": {
        "path": "/for-sale/langebaan/western-cape/427",
        "page": 1,
    },
    "maxItems": 100,
    "includeDetails": False,
    "deduplicate": True,
    "requestDelayMs": 1200,
    "maxRunSeconds": 3600,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/property24-za-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": [],
  "path": "/for-sale/langebaan/western-cape/427",
  "filters": {
    "path": "/for-sale/langebaan/western-cape/427",
    "page": 1
  },
  "maxItems": 100,
  "includeDetails": false,
  "deduplicate": true,
  "requestDelayMs": 1200,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call stone_jadex/property24-za-scraper --silent --output-dataset

```

## MCP server setup

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