# Realtor.ca Scraper (`w3crawler/realtor-ca-scraper`) Actor

Extract real estate listings, property details, and agent information from realtor.ca for any city or search. Download data as JSON, CSV, or Excel for research, lead generation, or analysis.

- **URL**: https://apify.com/w3crawler/realtor-ca-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 property listings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Realtor.ca Scraper

Extract **public Canadian property listings** from Realtor.ca search and property pages. Saved records can include listing and MLS identifiers, price and currency, property and transaction type, area, bedrooms, bathrooms, parking, address, description, images, public agent and brokerage details, coordinates, dates, and optional price or tax history. Runs are API-accessible, schedulable, proxy-capable, and monitored through the Apify platform.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/realtor-ca-scraper) and select **Try for free**, or open the **Input** tab.
2. Enter a Canadian `query` such as `Toronto, ON`, or paste public Realtor.ca search or listing URLs into `startUrls`. Supplied URLs take precedence over the query.
3. Keep `maxItems` at 50 and `maxPages` at 2 for the first run. Leave detail enrichment disabled unless you need per-listing pages.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `query` | string | Optional | `"Toronto, ON"` | Canadian location phrase used to build a search route when `startUrls` is empty, 1–160 characters. |
| `startUrls` | string array | Optional | `[]` | Public Realtor.ca search or listing URLs, up to 50. |
| `maxItems` | integer | Optional | `50` | Maximum property records to save, 1–500. |
| `maxPages` | integer | Optional | `2` | Maximum observed next pages to follow per search route, 1–10. Page URLs are not guessed. |
| `includeDetails` | boolean | Optional | `false` | Fetch a bounded number of discovered public listing pages for enrichment. |
| `maxDetailItems` | integer | Optional | `5` | Maximum discovered detail pages to fetch, 0–50. |
| `includeHistory` | boolean | Optional | `true` | Retain bounded public price or tax history fields when present. |
| `requestTimeoutSecs` | integer | Optional | `45` | Maximum time allowed for each public request, 5–180 seconds. |
| `requestDelayMillis` | integer | Optional | `700` | Delay between public requests, 0–10,000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Bounded retries for transient failures, 0–3. Access challenges are not retried. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy settings for Realtor.ca requests. Leave empty for a direct connection. |

Full default input:

```json
{
  "query": "Toronto, ON",
  "startUrls": [],
  "maxItems": 50,
  "maxPages": 2,
  "includeDetails": false,
  "maxDetailItems": 5,
  "includeHistory": true,
  "requestTimeoutSecs": 45,
  "requestDelayMillis": 700,
  "maxRequestRetries": 1
}
```

The Actor reads public data from Realtor.ca. Optional `proxyConfiguration` uses the standard Apify Proxy settings.

### Output

The dataset contains one row per saved listing. Optional information appears only when the source publishes it; missing values are omitted rather than inferred. The dataset contains **listings only**; diagnostics stay in the run summary, so no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable source-derived listing identity, normally `listing:<listingId>`. |
| `sourceUrl` | string | Always | Public search or detail route that produced the row. |
| `pageUrl` | string | Always | Public page actually parsed. |
| `searchUrl` | string | When available | Search route associated with the listing. |
| `detailUrl` | string | When available | Public detail route used for optional enrichment. |
| `listingId` | string | When published | Public source listing identifier. |
| `mlsNumber` | string | When published | Public MLS number. |
| `title` | string | Always | Public listing title or address label. |
| `url` | string | Always | Public property detail URL. |
| `price` | number | When published | Public listing price in the observed currency. |
| `currency` | string | When published | Observed listing currency, normally `CAD`. |
| `propertyType` | string | When published | Public property type. |
| `transactionType` | string | When published | Public transaction or listing type. |
| `areaM2` | number | When published | Observed interior area in square metres. |
| `bedrooms` | integer | When published | Observed bedroom count. |
| `bathrooms` | integer | When published | Observed bathroom count. |
| `parkingSpaces` | integer | When published | Observed parking-space count. |
| `address` | string | When published | Public street address. |
| `neighborhood` | string | When published | Public neighborhood label. |
| `city` | string | When published | Public city. |
| `province` | string | When published | Public province or territory. |
| `postalCode` | string | When published | Public postal code. |
| `country` | string | When published | Public country label. |
| `description` | string | When published | Public listing description. |
| `imageUrls` | string array | When published | Bounded public listing image URLs. |
| `agentName` | string | When published | Public agent name. |
| `agentPhone` | string | When published | Public agent phone. |
| `agentEmail` | string | When published | Public agent email. |
| `agentProfileUrl` | string | When published | Public agent or brokerage profile URL. |
| `brokerage` | string | When published | Public brokerage or seller organization. |
| `latitude` | number | When published | Public latitude. |
| `longitude` | number | When published | Public longitude. |
| `datePosted` | string | When published | Normalized public posting date. |
| `dateModified` | string | When published | Normalized public modification date. |
| `priceHistory` | object array | When `includeHistory` is enabled and present | Bounded public price-history values. |
| `taxHistory` | object array | When `includeHistory` is enabled and present | Bounded public tax-history values. |
| `pageNumber` | integer | Always for listing records | Search page number; detail-enrichment rows use `1`. |
| `position` | integer | Always for listing records | Observed position on the source page. |
| `scrapedAt` | string | Always | UTC time when the row was saved. |

`priceHistory` and `taxHistory` entries contain the public key/value fields exposed by the source; the Actor does not invent missing periods.

#### Full JSON output

Real saved listing row from the 2026-09-09 run:

```json
{
  "recordId": "listing:30250033",
  "sourceUrl": "https://www.realtor.ca/on/toronto/real-estate",
  "pageUrl": "https://www.realtor.ca/on/toronto/real-estate",
  "searchUrl": "https://www.realtor.ca/on/toronto/real-estate",
  "listingId": "30250033",
  "mlsNumber": "W13758096",
  "title": "10 QUEENS AVENUE, Toronto (Mimico), Ontario M8V2N1",
  "url": "https://www.realtor.ca/real-estate/30250033/10-queens-avenue-toronto-mimico",
  "price": 1699000,
  "currency": "CAD",
  "propertyType": "Single Family",
  "areaM2": 139.3534,
  "bedrooms": 3,
  "bathrooms": 2,
  "parkingSpaces": 4,
  "address": "10 QUEENS AVENUE",
  "neighborhood": "Mimico",
  "city": "Toronto",
  "province": "Ontario",
  "postalCode": "M8V2N1",
  "country": "CA",
  "imageUrls": [
    "https://cdn.realtor.ca/listings/TS639245141473570000/reb82/highres/6/w13758096_1.jpg"
  ],
  "agentName": "Fredrica Mintz",
  "agentPhone": "836-8910",
  "brokerage": "SUTTON GROUP OLD MILL REALTY INC.",
  "latitude": 43.6098875,
  "longitude": -79.490737,
  "pageNumber": 1,
  "position": 1,
  "scrapedAt": "2026-09-09T05:42:46.217Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `status` | Run execution outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the listing data: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `dataAvailable` | Whether at least one listing was saved. |
| `query` | Location query used when no start URL was supplied. |
| `pagesRequested` | Unique pages requested, including detail pages. |
| `pagesVisited` | Pages for which a request completed, including failed pages. |
| `pagesFailed` | Pages that could not be loaded. |
| `requestsAttempted` | Page requests started; retries are counted separately. |
| `retryCount` | Retries performed after transient failures. |
| `itemsStored` | Listing rows saved, excluding summary data. |
| `datasetWriteFailureCount` | Dataset writes that failed; non-zero stops further writes so stored rows are preserved. |
| `outputWriteFailureCount` | Failed attempts to persist `OUTPUT_SUMMARY`. |
| `diagnosticCount` | Request or page diagnostics detected during the run. |
| `diagnosticsStored` | Diagnostic dataset rows; always `0` because diagnostics are not written to the dataset. |
| `proxyConfigured` | Whether Apify Proxy was configured. |
| `finishedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Listings were saved without a page or write failure. |
| `SUCCEEDED` | `PARTIAL` | Listings were saved, but at least one page or write failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The run completed cleanly and found no matching public listings. |
| `FAILED` | `FAILED` | No listing was saved and an operational failure occurred. |

Example `OUTPUT_SUMMARY` from the saved 2026-09-09 run:

```json
{
  "status": "SUCCEEDED",
  "dataAvailable": true,
  "query": "Toronto, ON",
  "pagesRequested": 1,
  "pagesVisited": 1,
  "pagesFailed": 0,
  "requestsAttempted": 1,
  "retryCount": 0,
  "itemsStored": 5,
  "diagnosticCount": 0,
  "failedUrls": [],
  "proxyConfigured": false,
  "finishedAt": "2026-09-09T05:42:46.234Z"
}
```

This saved summary predates the current summary fields: it includes `failedUrls` and omits `dataStatus`, `runStatus`, `datasetWriteFailureCount`, `outputWriteFailureCount`, and `diagnosticsStored`. The table above describes what the current Actor writes.

### Coverage and limitations

The Actor reads public Realtor.ca search and property pages. It does not log in, bypass CAPTCHAs, evade access challenges, call private APIs, or use restricted endpoints. Blocked, failed, and empty routes are reported in `OUTPUT_SUMMARY`; they never become listing rows.

Search pagination follows only next links the public page exposes, up to `maxPages`, so a site change can end pagination early. Detail enrichment is off by default and limited to `maxDetailItems`; without it, records contain only fields present on the search page. `includeHistory` controls whether public price and tax history arrays are retained.

Prices, availability, listing status, agent details, and history are point-in-time values and can change after the run. Realtor.ca can remove or alter listings, and a clean empty result is reported as `SUCCEEDED` with `dataStatus: "NO_RESULTS"`, not as fabricated data.

Realtor.ca and Canadian real-estate board terms restrict automated collection. Confirm that you have the necessary permission and that your use complies with those terms before running the Actor. Do not use the output for unauthorized profiling or contact.

### Usage and support

A location search with history:

```json
{
  "query": "Toronto, ON",
  "maxItems": 50,
  "maxPages": 2,
  "includeDetails": false,
  "includeHistory": true
}
```

A supplied search URL with detail enrichment:

```json
{
  "startUrls": ["https://www.realtor.ca/on/toronto/real-estate"],
  "maxItems": 20,
  "maxPages": 1,
  "includeDetails": true,
  "maxDetailItems": 5
}
```

A single property URL is treated as a detail route and fetched once. Use `proxyConfiguration` only when ordinary Apify Proxy routing is needed, and increase `requestDelayMillis` if Realtor.ca rate-limits.

Cost depends on Apify compute, search and detail pages, retries, proxy usage, and the Actor resource allocation. Start with a small `maxItems`, inspect the dataset and `OUTPUT_SUMMARY`, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/realtor-ca-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Realtor.ca, Move, Inc., or any Canadian real-estate board or brokerage. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Actor input Schema

## `query` (type: `string`):

Location phrase used when startUrls is empty.

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

Public Realtor.ca search or listing URLs.

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

Maximum property records to emit.

## `maxPages` (type: `integer`):

Maximum observed next pages to follow per search route. Page URLs are not guessed.

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

Fetch a bounded number of discovered public listing pages for enrichment.

## `maxDetailItems` (type: `integer`):

Maximum discovered detail pages to fetch.

## `includeHistory` (type: `boolean`):

Retain bounded public price or tax history fields when present.

## `requestTimeoutSecs` (type: `integer`):

Maximum time allowed for each public request.

## `requestDelayMillis` (type: `integer`):

Delay between public requests.

## `maxRequestRetries` (type: `integer`):

Bounded retries for transient failures. Access challenges are not retried.

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

Optional proxy settings for Realtor.ca requests. Leave empty for a direct connection.

## Actor input object example

```json
{
  "query": "Toronto, ON",
  "startUrls": [],
  "maxItems": 50,
  "maxPages": 2,
  "includeDetails": false,
  "maxDetailItems": 5,
  "includeHistory": true,
  "requestTimeoutSecs": 45,
  "requestDelayMillis": 700,
  "maxRequestRetries": 1
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/realtor-ca-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/realtor-ca-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 '{}' |
apify call w3crawler/realtor-ca-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/realtor-ca-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/qZIk34y2XhXerPCmz/builds/UlhJcUS6yZAc6FnzX/openapi.json
