# Realtor.ca Listings & Price Changes Scraper (`khadinakbar/realtor-ca-listings-scraper`) Actor

Scrape public Realtor.ca Canadian MLS listings by city, map bounds, listing URL, or MLS#. Returns price, beds, baths, agents, photos, and price-change signals. Optional detail enrich and cross-run price monitor. Cookieless to the user. MCP-ready.

- **URL**: https://apify.com/khadinakbar/realtor-ca-listings-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Real estate, Lead generation, MCP servers
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 listing scrapeds

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

### What does Realtor.ca Listings & Price Changes Scraper do?

Scrape **public Canadian MLS listings** from [Realtor.ca](https://www.realtor.ca/) by **city**, **map bounding box**, **map/listing URL**, or **MLS#**. Each dataset row includes list price, beds/baths, address, agent/brokerage, photo URLs, and **public price-change signals** when Realtor.ca exposes them. Optional **detail enrich** pulls remarks and any public price history; optional **monitor mode** compares prices across scheduled runs. Runs on Apify with Residential proxy, scheduling, API/MCP access — **cookieless to the user**.

### Why use it?

- Canadian market inventory for investors, agents, and proptech pipelines
- Price-drop monitoring without fabricating history (public labels + your own cross-run snapshot)
- MCP-ready inputs/outputs for AI agents (`apify--realtor-ca-listings-scraper`)
- Honest empty/block outcomes instead of hollow successes

### Data fields

| Field | Description |
|-------|-------------|
| `mlsNumber` | MLS / Realtor.ca reference |
| `propertyId` | Realtor.ca property ID |
| `listingUrl` | Public listing URL |
| `price` / `priceDisplay` | Numeric CAD price + display string |
| `address` | Street, city, province, postal, raw text |
| `lat` / `lon` | Coordinates when published |
| `bedrooms` / `bathrooms` | Counts from building payload |
| `propertyType` / `buildingType` / `sqft` | Type and size when present |
| `photoUrls` / `photoCount` | Up to 20 photo URLs |
| `agentName` / `agentPhone` / `brokerageName` | Listing contact |
| `priceChangeDetected` | Public change and/or monitor diff |
| `previousPrice` / `newPrice` / `monitorDiff` | Cross-run monitor fields |
| `priceHistory` | Public detail history only (never invented) |
| `scrapedAt` | ISO-8601 scrape time |

### How to use

1. Open the Actor in Apify Console and use the downtown Toronto map prefill, or set `city` / `startUrls` / `mlsNumbers`.
2. Set `maxResults` (prefill **5** for a cheap sample). Enable `enrichDetails` and/or `monitorMode` if needed.
3. Keep **RESIDENTIAL** proxy (required for Imperva).
4. Run → download the dataset as JSON/CSV/Excel, or call via API/MCP.

### Input

Provide at least one of: `mapBoundingBox`, `city`, `startUrls`, `mlsNumbers`. See the **Input** tab for full field help.

```json
{
  "mapBoundingBox": {
    "LatitudeMin": 43.63,
    "LatitudeMax": 43.68,
    "LongitudeMin": -79.43,
    "LongitudeMax": -79.35,
    "ZoomLevel": 13
  },
  "transactionType": "for-sale",
  "maxResults": 5,
  "enrichDetails": false,
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Output example

```json
{
  "mlsNumber": "C1234567",
  "propertyId": "27891234",
  "listingUrl": "https://www.realtor.ca/real-estate/27891234/123-example-st-toronto",
  "price": 899000,
  "priceDisplay": "$899,000",
  "address": {
    "street": "123 Example St",
    "city": "Toronto",
    "province": "Ontario",
    "postalCode": "M5V2T6",
    "text": "123 Example St|Toronto, Ontario M5V2T6"
  },
  "bedrooms": 2,
  "bathrooms": 2,
  "agentName": "Jane Agent",
  "brokerageName": "Example Realty Inc.",
  "priceChangeDetected": false,
  "priceHistory": [],
  "source": "property-search",
  "scrapedAt": "2026-09-15T12:00:00.000Z"
}
```

You can download the dataset in JSON, HTML, CSV, or Excel.

### Pricing (PAY\_PER\_EVENT)

| Event | Price |
|-------|-------|
| `apify-actor-start` | $0.00005 |
| `listing-scraped` (primary) | $0.005 / listing |
| `listing-detail-enriched` | $0.008 / enriched listing |

Platform usage is passed through to the run user. Example: 5 search listings ≈ **$0.025** + start + Residential compute.

### Honest scope & limitations

- **Canada / Realtor.ca only** — not Realtor.com (US).
- **No fabricated price history** — `priceHistory` is empty unless PropertyDetails exposes it; monitor mode only compares your prior snapshot.
- **Imperva + Residential** — datacenter proxies usually fail; blocks finish as `UPSTREAM_FAILED` / `PARTIAL` with truthful warnings.
- Public listing fields only; no login, no private MLS feeds, no off-market data.

### MCP

Expose as `apify--realtor-ca-listings-scraper` via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Input titles/descriptions are written for tool-calling agents.

### Legal disclaimer

This Actor collects **publicly available** listing information from Realtor.ca for legitimate research, analysis, and automation. You are responsible for complying with Realtor.ca terms, applicable Canadian privacy/consumer laws, and your own data-use policies. Do not use scraped data for spam, harassment, or unauthorized solicitation. The Actor author is not affiliated with the Canadian Real Estate Association (CREA) or Realtor.ca.

# Actor input Schema

## `mapBoundingBox` (type: `object`):

Exact Realtor.ca map extent: LatitudeMin/Max, LongitudeMin/Max, optional ZoomLevel. Prefill is downtown Toronto. Use when you already have map coordinates from a Realtor.ca map URL hash.

## `city` (type: `string`):

Canadian city name (e.g. Toronto, Vancouver, Calgary). Uses a built-in bbox for common markets, otherwise Nominatim geocode. Not for US cities.

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

Map search URLs (with LatitudeMin/Max in hash/query) or listing URLs (/real-estate/{id}). Non-realtor.ca URLs are rejected. Paste one URL per line.

## `mlsNumbers` (type: `array`):

Canadian MLS / Realtor.ca reference numbers to fetch as detail lookups (one row each when found).

## `transactionType` (type: `string`):

for-sale (buy) or for-rent (lease). Applied to map/city searches.

## `propertyGroup` (type: `string`):

Residential or commercial inventory group on Realtor.ca.

## `sortBy` (type: `string`):

Sort for map/city PropertySearch results.

## `minPrice` (type: `integer`):

Lowest list price in CAD for map/city search. Leave empty for no minimum.

## `maxPrice` (type: `integer`):

Highest list price in CAD for map/city search. Leave empty for no maximum.

## `minBeds` (type: `integer`):

Minimum bedroom count filter (Realtor.ca BedRange). 0 or empty = no filter.

## `minBaths` (type: `integer`):

Minimum bathroom count filter (Realtor.ca BathRange). 0 or empty = no filter.

## `keywords` (type: `string`):

Optional keyword filter passed to PropertySearch (address fragment, condo name, etc.).

## `maxResults` (type: `integer`):

Hard cap on dataset rows (1–2000). Each row charges listing-scraped ($0.005). Prefill 5 for a cheap quality sample.

## `enrichDetails` (type: `boolean`):

Call PropertyDetails for each listing (remarks, extra photos, public price history when Realtor.ca exposes it). Adds listing-detail-enriched ($0.008) per enriched row.

## `monitorMode` (type: `boolean`):

Compare current prices to a named KV snapshot from prior runs. Sets previousPrice, priceChangeDetected, and monitorDiff. Does not invent historical prices.

## `onlyPriceChanges` (type: `boolean`):

When monitorMode is on, push only rows where priceChangeDetected is true (public change label or monitorDiff drop/increase).

## `monitorStoreName` (type: `string`):

Named Apify key-value store for the price snapshot (key SNAPSHOT). Used only when monitorMode is true.

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

Apify Proxy. RESIDENTIAL is required to clear Realtor.ca Imperva; datacenter is typically blocked.

## Actor input object example

```json
{
  "mapBoundingBox": {
    "LatitudeMin": 43.63,
    "LatitudeMax": 43.68,
    "LongitudeMin": -79.43,
    "LongitudeMax": -79.35,
    "ZoomLevel": 13
  },
  "city": "Toronto",
  "startUrls": [
    "https://www.realtor.ca/map#ZoomLevel=13&LatitudeMax=43.68&LongitudeMax=-79.35&LatitudeMin=43.63&LongitudeMin=-79.43&Sort=6-D&PropertyTypeGroupID=1&TransactionTypeId=2"
  ],
  "mlsNumbers": [
    "C1234567"
  ],
  "transactionType": "for-sale",
  "propertyGroup": "residential",
  "sortBy": "date-desc",
  "minPrice": 400000,
  "maxPrice": 1500000,
  "minBeds": 2,
  "minBaths": 1,
  "keywords": "condo",
  "maxResults": 5,
  "enrichDetails": false,
  "monitorMode": false,
  "onlyPriceChanges": false,
  "monitorStoreName": "realtor-ca-price-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Every scraped Realtor.ca listing row (price, beds, baths, agents, photos, price-change fields).

## `priceChanges` (type: `string`):

Dataset filtered to rows where priceChangeDetected is true (public change label and/or monitorDiff).

## `output` (type: `string`):

Compact terminal contract with outcome, itemsPushed, and chargedEventCounts.

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

Detailed run diagnostics including search/detail call counts and billing counters.

# 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 = {
    "mapBoundingBox": {
        "LatitudeMin": 43.63,
        "LatitudeMax": 43.68,
        "LongitudeMin": -79.43,
        "LongitudeMax": -79.35,
        "ZoomLevel": 13
    },
    "transactionType": "for-sale",
    "propertyGroup": "residential",
    "sortBy": "date-desc",
    "maxResults": 5,
    "enrichDetails": false,
    "monitorMode": false,
    "onlyPriceChanges": false,
    "monitorStoreName": "realtor-ca-price-monitor",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "CA"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/realtor-ca-listings-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 = {
    "mapBoundingBox": {
        "LatitudeMin": 43.63,
        "LatitudeMax": 43.68,
        "LongitudeMin": -79.43,
        "LongitudeMax": -79.35,
        "ZoomLevel": 13,
    },
    "transactionType": "for-sale",
    "propertyGroup": "residential",
    "sortBy": "date-desc",
    "maxResults": 5,
    "enrichDetails": False,
    "monitorMode": False,
    "onlyPriceChanges": False,
    "monitorStoreName": "realtor-ca-price-monitor",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "CA",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/realtor-ca-listings-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 '{
  "mapBoundingBox": {
    "LatitudeMin": 43.63,
    "LatitudeMax": 43.68,
    "LongitudeMin": -79.43,
    "LongitudeMax": -79.35,
    "ZoomLevel": 13
  },
  "transactionType": "for-sale",
  "propertyGroup": "residential",
  "sortBy": "date-desc",
  "maxResults": 5,
  "enrichDetails": false,
  "monitorMode": false,
  "onlyPriceChanges": false,
  "monitorStoreName": "realtor-ca-price-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  }
}' |
apify call khadinakbar/realtor-ca-listings-scraper --silent --output-dataset

```

## MCP server setup

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