# Royal LePage Property Discovery Scraper (`trovevault/royal-lepage-property-discovery-scraper`) Actor

Discover public Royal LePage listings by location, sale or rent, and property type. Extract prices, descriptions, rooms, images, agents, and URLs.

- **URL**: https://apify.com/trovevault/royal-lepage-property-discovery-scraper.md
- **Developed by:** [Trove Vault](https://apify.com/trovevault) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Royal LePage Property Discovery Scraper

Discover public Royal LePage real estate listings from buyer-facing inputs: location, operation, property type, and result limit. The Actor searches Royal LePage for you, then returns structured listing rows with prices, rooms, descriptions, images, agents, and listing URLs.

This is a discovery Actor. You do not need to provide search result URLs.

### Why Use This Actor

Use this Actor when you need a clean Canadian real estate dataset from Royal LePage without manually building search URLs or copying listings from the website.

It is useful for:

- Canadian property lead discovery by city
- sale and rental inventory research
- price and area comparison across Royal LePage listings
- proptech, agency, investor, and market-monitoring workflows
- TroveVault pipelines that combine several property portals into one dataset

### What It Extracts

Each dataset row can include:

- `platform`, `listingId`, `title`, and `url`
- `operation` and `propertyType`
- `price`, `currency`, `priceText`, and `pricePerM2`
- `areaM2`, `bedrooms`, and `bathrooms`
- `address`, `city`, and `country`
- `description`
- `features`
- `sellerName`
- `mainImage` and `images`
- `listedAtText`
- `scrapedAt`
- `runId` when supplied in the input

Fields are only populated when they are publicly visible in Royal LePage pages.

### Input

```json
{
  "location": "Toronto, ON",
  "operation": "sale",
  "propertyType": "any",
  "maxItems": 3,
  "datasetId": "",
  "runId": ""
}
```

### Input Fields

- `location` - Canadian city or city plus province to search, for example `Toronto, ON`, `Vancouver, BC`, `Calgary, AB`, `Montreal, QC`, or `Ottawa, ON`.
- `operation` - Dropdown. Use `sale` for properties for sale or `rent` for rental listings.
- `propertyType` - Dropdown. Use `any`, `apartment`, `house`, `land`, or `commercial`.
- `maxItems` - Maximum number of listings to save.
- `datasetId` - Optional Apify dataset ID. When provided, each saved listing is also appended to that dataset.
- `runId` - Optional workflow run ID. When provided, it is copied into each output row and the `RUN_SUMMARY` key-value record.

### API Usage

```bash
curl -X POST "https://api.apify.com/v2/acts/trovevault~royal-lepage-property-discovery-scraper/runs" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"location":"Toronto, ON","operation":"sale","propertyType":"any","maxItems":3}'
```

### Notes And Limitations

- City-level locations are more stable than broad province or country searches.
- Detail pages are used to enrich descriptions and image galleries when publicly accessible.
- Some promoted cards may point outside the requested city; the Actor filters saved rows by the requested city.
- Prices, availability, and listing details can change after scraping. Use `scrapedAt` to judge freshness.
- The Actor does not read search URLs from input and does not require an upstream dataset for discovery.

# Actor input Schema

## `location` (type: `string`):

Canadian city or city plus province to search. Use English names, for example Toronto, ON; Vancouver, BC; Calgary, AB; Montreal, QC; or Ottawa, ON. City-level searches are more stable than broad province or country searches.

## `operation` (type: `string`):

Choose whether to discover Royal LePage properties offered for sale or for rent.

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

Choose the type of property to discover. Use Any to return the broadest listing set supported by Royal LePage.

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

Maximum number of property listings to return. Use smaller values for quick checks and higher values for broader market discovery.

## `datasetId` (type: `string`):

Optional Apify dataset ID to append each saved listing to, in addition to this run's default dataset. Use this when chaining multiple discovery actors into one shared dataset.

## `runId` (type: `string`):

Optional external or Apify run ID copied into each output row and RUN\_SUMMARY. Use this to trace listings back to a parent workflow run.

## Actor input object example

```json
{
  "location": "Toronto, ON",
  "operation": "sale",
  "propertyType": "apartment",
  "maxItems": 3
}
```

# Actor output Schema

## `dataset` (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 = {
    "location": "Toronto, ON"
};

// Run the Actor and wait for it to finish
const run = await client.actor("trovevault/royal-lepage-property-discovery-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 = { "location": "Toronto, ON" }

# Run the Actor and wait for it to finish
run = client.actor("trovevault/royal-lepage-property-discovery-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "Toronto, ON"
}' |
apify call trovevault/royal-lepage-property-discovery-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=trovevault/royal-lepage-property-discovery-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/Y3EWJ6QKbbmqxp4ZN/builds/FXpA0svFfkUYlqusf/openapi.json
