# Royal LePage Canada Properties and Details Scraper (`realestateapi/royallepage-canada-properties-and-details-scraper`) Actor

Permission-gated Royal LePage Canada Actor. Current Terms of Use prohibit automated collection and restrict saving listing data without written authorization. The default run stores its policy diagnostic in RUN_METADATA and makes zero source requests.

- **URL**: https://apify.com/realestateapi/royallepage-canada-properties-and-details-scraper.md
- **Developed by:** [Real Estate API](https://apify.com/realestateapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.

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

## Royal LePage Canada Properties and Details Scraper

This Actor is currently permission-gated. Royal LePage's Terms of Use prohibit automated access and restrict copying or storing listing information without written permission. The normal run makes no source requests unless the operator confirms that current written authorization covers the requested collection and use.

### Safe default

With the default input, the Actor stores one `AUTHORIZATION_REQUIRED` diagnostic in `RUN_METADATA` with `status: "SUCCEEDED"`, `runStatus: "SKIPPED_POLICY"`, expected exit 0, zero source requests, and zero Dataset records. The confirmation checkbox records the operator's assertion; it does not grant or establish permission.

### Output

Only validated, source-backed Royal LePage property listings are dataset rows. The default run is policy-skipped with zero source requests and zero rows until applicable written authorization is recorded. This synthetic example is conditional/schema-only and is not a live listing.

```json
{
  "recordType": "propertyListing",
  "status": "success",
  "dataAvailable": true,
  "sourceBacked": true,
  "diagnostic": false,
  "sourceTransport": "public-source",
  "listingId": "EXAMPLE-ON-001",
  "url": "https://www.royallepage.ca/en/property/example-listing/",
  "sourceUrl": "https://www.royallepage.ca/en/property/example-listing/",
  "sourceWebsite": "Royal LePage Canada",
  "title": "Illustrative three-bedroom home",
  "address": "100 Example Street, Example City, ON A0A 0A0",
  "price": 500000,
  "currency": "CAD",
  "propertyType": "House",
  "bedrooms": 3,
  "bathrooms": 2,
  "latitude": 0,
  "longitude": 0,
  "description": "Synthetic example description for the output schema.",
  "postedAt": "2026-01-01T00:00:00.000Z",
  "mlsNumber": "EXAMPLE-MLS-001",
  "image": "https://www.royallepage.ca/assets/example-property.jpg",
  "images": ["https://www.royallepage.ca/assets/example-property.jpg"],
  "source": "Royal LePage",
  "scrapedAt": "2026-01-15T12:00:00.000Z"
}
```

### Input

After confirming written authorization, provide an explicit official search URL. No URL is configured by default.

```json
{
  "authorizationConfirmed": false,
  "searchUrl": "https://www.royallepage.ca/en/search/homes/on/toronto/",
  "maxItems": 10,
  "maxPages": 1,
  "includeDetails": true
}
```

Only HTTPS search and property pages on `www.royallepage.ca` are accepted. Redirects are refused, and the direct client sends no browser-identifying headers. The Actor has no fixture, raw HTML, alternate-host, proxy, or debug input options. The Dataset accepts only validated source-backed property listings; diagnostics stay in `RUN_METADATA`. `images` is a string array. Clean completion, including an empty response, is `SUCCEEDED` / `COMPLETED`; a zero-record source failure is `FAILED` / `FAILED`; a failure after at least one saved listing is `SUCCEEDED` / `PARTIAL` with expected exit 0.

### Current review status

Chrome verified the Royal LePage Terms of Use (last updated October 2025), which prohibit automated scraping and restrict collection and storage of listing data without written permission. No written authorization is recorded for this project, so no listing page or local source Actor request was made during the gate review.

The local `storage/` directory holds three historical `propertyListing` rows written on 2026-10-30 by a run made before the 2026-10-31 stop-collection decision. They were preserved unchanged, were not verified against the current site in the gate review, and are not evidence of current source access. The dataset schema declares 26 fields; those rows populate 20, 22, and 20 of them, and detail-only fields such as `description`, `postedAt`, `mlsNumber`, and `images` are absent because that run did not fetch detail pages. See [BROWSER_REVIEW.md](BROWSER_REVIEW.md).

# Actor input Schema

## `authorizationConfirmed` (type: `boolean`):

Confirm only if you hold current written permission from Royal LePage for the automated collection and use in this run. Checking this box does not grant permission. Defaults to false; without it the Actor makes zero source requests.

## `searchUrl` (type: `string`):

Explicit HTTPS English or French Royal LePage search URL. The Actor will not use a default search URL.

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

Maximum unique property listings to emit.

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

Maximum paginated search pages to request.

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

If written authorization covers detail-page requests, fetch each property page for available listing fields.

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

Maximum time allowed for each authorized Royal LePage request.

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

Delay between authorized property detail requests.

## Actor input object example

```json
{
  "authorizationConfirmed": false,
  "maxItems": 10,
  "maxPages": 1,
  "includeDetails": true,
  "requestTimeoutSecs": 30,
  "requestDelayMs": 200
}
```

# Actor output Schema

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

No description

## `summary` (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("realestateapi/royallepage-canada-properties-and-details-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("realestateapi/royallepage-canada-properties-and-details-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 realestateapi/royallepage-canada-properties-and-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realestateapi/royallepage-canada-properties-and-details-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/DI3RbkNv3kpH7HDok/builds/KMgXf5U61HZoD03CT/openapi.json
