# realtor.ca Scraper (Canada MLS Listings) (`barefoot_grade/realtor-ca-scraper`) Actor

Public MLS property listings from realtor.ca (Canada) across major metros, for sale or rent. One normalized record: URL, price CAD, street address, city and province, bedrooms, bathrooms, MLS number, images. On-demand scrape — fresh listings every run.

- **URL**: https://apify.com/barefoot_grade/realtor-ca-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/barefoot_grade) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 81.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Canadian MLS Property Listings from realtor.ca

### Quick Start

Collect public Canadian MLS listings for sale or rent.
Useful for Canadian housing research, market analysis, and lead generation.
Start with:

```json
{"cities":["toronto"],"transactionType":"for-sale","maxResults":100}
```

### Input

| Name | Type | Default | What it does |
|---|---|---|---|
| `cities` | array | `["toronto"]` | Selects metro areas or bounding boxes. |
| `transactionType` | string | `for-sale` | Searches sale or rental listings. |
| `maxPages` | integer | `1` | Maximum pages per city, 1-25. |
| `maxResults` | integer | `100` | Maximum listings, 1-1000. |
| `recordsPerPage` | integer | `200` | Listings requested per page. |
| `requestDelaySecs` | number | `1.0` | Delay between page requests. |
| `filters` | object | `{}` | Optional property and price filters. |
| `proxyUrl`, `proxyUsername`, `proxyPassword` | string | empty | Optional proxy settings. |
| `proxyCountry` | string | `mx` | Proxy country preference. |

### Output

Records include `listing_key`, `mls_number`, `url`, `price_cad`, `currency`, `address`, `city`, `province`, `postal_code`, `bedrooms`, `bathrooms`, `property_type`, `images`, `latitude`, `longitude`, `transaction_type`, `agent`, `brokerage`, `source`, and `scraped_at`.

```json
{"listing_key":"realtor.ca:12345678","mls_number":"12345678","url":"https://www.realtor.ca/real-estate/12345678/example","price_cad":799000,"currency":"CAD","address":"Toronto, ON","city":"Toronto","province":"ON","bedrooms":3,"bathrooms":2,"images":[],"transaction_type":"for-sale"}
```

### FAQ

#### How fresh is the data?

Listings are collected from realtor.ca during each run.

#### Which areas are supported?

Major Canadian metros and custom geographic bounding boxes.

#### What are the limits?

Up to 25 pages per city and 1,000 listings per run.

#### What happens when access is unavailable?

The Actor reports persistent access problems clearly.

#### Can I search rentals?

Yes. Set `transactionType` to `for-rent`.

For help, contact Apify Support and include the run URL.

A conservative Apify Actor that extracts public MLS property listings
from **realtor.ca** (Canada's national portal, operated by CREA) into
one normalized record shape: URL, price CAD, street address,
city/province, bedrooms, bathrooms, MLS number, images, lat/lon, agent
and source.

### Pricing

See the Actor’s Pricing tab on Apify for current rates. Total run cost
depends on the selected limits and your Apify plan; custom proxy charges
are billed by your proxy provider. Start with a small `maxResults` value
and check the run cost before scheduling larger collections.

# Actor input Schema

## `cities` (type: `array`):

Metro areas to search. Each entry is a seed key (toronto, vancouver, calgary, montreal, ottawa, edmonton, mississauga, winnipeg, hamilton, quebec-city) or a free-form 'label/province/latMin/lonMin/latMax/lonMax' bounding box.

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

Listings to search: for sale or for rent.

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

Result pages to fetch per city (up to 200 listings per page).

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

Stop after this many listings across all cities.

## `recordsPerPage` (type: `integer`):

Listings requested per API page (200 = one full page, best value).

## `requestDelaySecs` (type: `number`):

Minimum 0.5 seconds.

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

Optional search filters mapped to realtor.ca's native params: sort (price-asc|price-desc|newest|oldest|open-houses|photos|virtual-tour), minPrice/maxPrice, beds/baths/storeys/units as {min,max}, buildingType (house|duplex|triplex|row-townhouse|apartment|fourplex|garden-home|mobile-home|manufactured-home|commercial-apartment|residential-commercial-mix|special-purpose|other), ownershipType (freehold|condo-strata|timeshare-fractional|leasehold), constructionStyle (detached|semi-detached|attached|stacked|link), airCondition/pool/fireplace/garage/waterfront/acreage (booleans), openHouse (boolean, with openHouseStartDate/openHouseEndDate MM/DD/YYYY), keywords (text or list).

## `proxyUrl` (type: `string`):

Optional custom proxy URL (full URL with embedded credentials, or host:port with proxyUsername/proxyPassword). Leave empty to use the Actor's default connection.

## `proxyUsername` (type: `string`):

Username for proxyUrl when the URL does not embed credentials.

## `proxyPassword` (type: `string`):

Password for proxyUrl when the URL does not embed credentials.

## `proxyCountry` (type: `string`):

Two-letter ISO country code for the proxy connection. Defaults to MX.

## Actor input object example

```json
{
  "cities": [
    "toronto"
  ],
  "transactionType": "for-sale",
  "maxPages": 1,
  "maxResults": 100,
  "recordsPerPage": 200,
  "requestDelaySecs": 1,
  "filters": {},
  "proxyCountry": "mx"
}
```

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

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

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

```

## MCP server setup

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