# Realtor.ca Canada MLS Real Estate Scraper (`wyle/realtor-ca-scraper`) Actor

Search Canadian MLS real estate listings on Realtor.ca by city, postal code, filters, or URL. Retrieve residential, commercial, and rental prices, MLS numbers, property specs, and agent contacts.

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

## Pricing

from $0.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Realtor.ca Canada MLS Real Estate Scraper

Extract Canadian real estate listings from **Realtor.ca** (Canada's official MLS® database) by city, neighborhood, postal code, or map URL. Capture structured sale and rental prices, property specs, GPS coordinates, listing agent and brokerage contacts, and high-resolution photo galleries. Built for speed and low resource usage with zero browser overhead.

***

### Modes

| Mode | Input | What you get |
|---|---|---|
| **Location Search** | `locationQuery`, `transactionType`, `propertyType`, price/bed/bath filters | Matching MLS® listings for any Canadian city, neighborhood, or postal code, sorted by newest or price. |
| **Search & Map URLs** | `searchUrls` | Exact listings within custom Realtor.ca search or map bounding-box URLs, preserving your selected zoom and filters. |

***

### Supported Coverage

- **Regions**: All Canadian provinces and territories listed on Realtor.ca, including Ontario (Toronto, Ottawa, Mississauga), British Columbia (Vancouver, Victoria), Alberta (Calgary, Edmonton), Quebec (Montreal), Nova Scotia (Halifax), Manitoba, Saskatchewan, and New Brunswick.
- **Transaction Types**: `For Sale` and `For Rent`.
- **Property Categories**: `All`, `Residential`, `Commercial`, and `Vacant Land`.
- **Listing Details**: MLS® number, formatted and numeric price, bedrooms, bathrooms, interior size, stories, lot size, ownership type, parking, amenities, GPS coordinates, photo galleries, and agent/brokerage details.

***

### Output Modes & Proxy Tips

- **Residential Proxy Recommended**: Realtor.ca restricts datacenter IP addresses. The Actor defaults to Apify Residential Proxies with `CA` (Canada) routing for consistent, reliable runs at scale.
- **Pagination Pacing**: Use `requestDelayMs` (default `350` ms) to control pacing between result pages; increase slightly during very large (`maxItems` > 1,000) extractions.
- **Dataset Output**: Each listing is saved as one structured JSON record in the default Apify dataset, ready for CSV, Excel, JSON, or API export.

***

### Use Cases

- **Real Estate Valuation & Pricing Models**: Track asking prices, price-per-square-foot trends, and inventory shifts across Canadian neighborhoods.
- **Brokerage & Agent Lead Enrichment**: Collect active listing agents, brokerage names, office phone numbers, and agent websites for B2B outreach.
- **Investment & Rental Yield Screening**: Compare sale prices against rental listings by city, property type, and bedroom count.
- **AI Property Assistants & RAG Pipelines**: Feed clean, structured MLS® property records and coordinates into search apps or market intelligence agents.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `locationQuery` | String | `"Toronto"` | Enter any Canadian city (e.g. Toronto, Vancouver, Calgary, Montreal, Ottawa), neighborhood, or postal code. |
| `searchUrls` | Array | `[]` | Optional list of Realtor.ca search or map URLs containing bounding box parameters. |
| `transactionType` | String | `"For Sale"` | Filter listings for sale (`"For Sale"`) or for rent (`"For Rent"`). |
| `propertyType` | String | `"Residential"` | Filter by property category (`"All"`, `"Residential"`, `"Commercial"`, or `"Vacant Land"`). |
| `minPrice` | Integer | `null` | Minimum listing price in Canadian Dollars (CAD). |
| `maxPrice` | Integer | `null` | Maximum listing price in Canadian Dollars (CAD). |
| `bedrooms` | String | `"All"` | Filter by minimum number of bedrooms (`"All"`, `"1+"`, `"2+"`, `"3+"`, `"4+"`, `"5+"`). |
| `bathrooms` | String | `"All"` | Filter by minimum number of bathrooms (`"All"`, `"1+"`, `"2+"`, `"3+"`, `"4+"`). |
| `sortBy` | String | `"Newest"` | Sorting criteria (`"Newest"`, `"Price: Low to High"`, `"Price: High to Low"`). |
| `maxItems` | Integer | `50` | Maximum number of properties to extract (`1`–`50000`). |
| `requestDelayMs` | Integer | `350` | Delay in milliseconds between pagination requests. |
| `proxyConfiguration` | Object | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "CA"}` | Apify Proxy configuration. Residential Proxies (Canada or US) are recommended. |

***

### Sample Output

```json
{
  "id": "30264893",
  "mlsNumber": "W13771372",
  "url": "https://www.realtor.ca/real-estate/30264893/1228-haig-boulevard-mississauga-lakeview",
  "status": "1",
  "price": "$1",
  "priceValue": 1.0,
  "transactionType": "For Sale",
  "propertyType": "Single Family",
  "buildingType": "House",
  "bedrooms": "2 + 1",
  "bathrooms": "3",
  "sizeInterior": "102.1925 m2",
  "stories": "1",
  "amenities": "Fireplace(s)",
  "address": "1228 HAIG BOULEVARD, Mississauga (Lakeview), Ontario L5E2M7",
  "city": "Mississauga (Lakeview)",
  "province": "Ontario",
  "postalCode": "L5E2M7",
  "latitude": 43.5841008,
  "longitude": -79.5620206,
  "parking": "No Garage",
  "parkingSpaces": 4,
  "landSize": "69.7 x 149.2 FT|under 1/2 acre",
  "ownershipType": "Freehold",
  "publicRemarks": null,
  "photos": [
    "https://cdn.realtor.ca/listings/TS639247197533600000/reb82/highres/2/w13771372_1.jpg"
  ],
  "agents": [
    {
      "name": "JASBIR SINGH",
      "position": "Salesperson",
      "phone": "(647) 478-6578",
      "website": "https://www.jasbirsingh.ca/",
      "photoUrl": "https://cdn.realtor.ca/individuals/TS638851954200000000/highres/1416253.jpg",
      "brokerageName": "RE/MAX REALTY ENTERPRISES INC.",
      "brokeragePhone": "(647) 478-6578"
    }
  ],
  "brokerage": "RE/MAX REALTY ENTERPRISES INC.",
  "scrapedAt": "2026-10-02T16:16:26.496057+00:00"
}
```

# Actor input Schema

## `locationQuery` (type: `string`):

Enter any Canadian city (e.g. Toronto, Vancouver, Calgary, Montreal, Ottawa), neighborhood, or postal code.

## `searchUrls` (type: `array`):

Optional list of Realtor.ca search or map URLs containing bounding box parameters (e.g., https://www.realtor.ca/map#ZoomLevel=11...).

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

Filter listings for sale or for rent.

## `propertyType` (type: `string`):

Filter by property category.

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

Minimum listing price in Canadian Dollars.

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

Maximum listing price in Canadian Dollars.

## `bedrooms` (type: `string`):

Filter by minimum number of bedrooms.

## `bathrooms` (type: `string`):

Filter by minimum number of bathrooms.

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

Sorting criteria for retrieved properties.

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

Maximum number of properties to extract.

## `requestDelayMs` (type: `integer`):

Delay in milliseconds between pagination requests.

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

Apify Proxy configuration. Realtor.ca works best with Residential Proxies (Canada or US) for reliable high-volume extraction.

## Actor input object example

```json
{
  "locationQuery": "Toronto",
  "searchUrls": [],
  "transactionType": "For Sale",
  "propertyType": "Residential",
  "bedrooms": "All",
  "bathrooms": "All",
  "sortBy": "Newest",
  "maxItems": 50,
  "requestDelayMs": 350,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  }
}
```

# Actor output Schema

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

No description

# 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("wyle/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("wyle/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 wyle/realtor-ca-scraper --silent --output-dataset

```

## MCP server setup

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