# Realtor Properties Search Scraper (`powerai/realtor-properties-search-scraper`) Actor

Search and scrape residential properties from Realtor Canada with advanced filtering and sorting options using our API wrapper service

- **URL**: https://apify.com/powerai/realtor-properties-search-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Real estate, Lead generation, E-commerce
- **Stats:** 33 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

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?

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

## Realtor Properties Search Scraper

This actor searches for residential properties on Realtor Canada using our API wrapper service to find real estate listings based on various criteria.

### Features

- **Comprehensive Property Search**: Search properties by geographic coordinates and various filters
- **Advanced Filtering**: Filter by price, bedrooms, bathrooms, property type, and more
- **Multiple Sorting Options**: Sort results by price, date, virtual tours, open houses, and photos
- **Real-time Results**: Get instant property listings from Realtor Canada
- **API Integration**: Uses our secure API wrapper service
- **Error Handling**: Comprehensive error handling and logging
- **Automatic Pagination**: Automatically fetches multiple pages with maximum efficiency (50 records per page)

### Input

The actor accepts the following input parameters:

#### Required Parameters

- **LatitudeMax**: Maximum latitude coordinate for search area
- **LatitudeMin**: Minimum latitude coordinate for search area
- **LongitudeMax**: Maximum longitude coordinate for search area
- **LongitudeMin**: Minimum longitude coordinate for search area

#### Optional Parameters

- **SortOrder**: Sort order (A-ascending, D-descending)
- **SortBy**: Sort field (1-price, 6-date, 11-virtual tours, 12-open houses, 13-more photos)
- **CultureId**: Culture ID (1-English, 2-French, default: 1)
- **NumberOfDays**: Number of days on market
- **Keywords**: Search keywords (comma-separated)
- **BedRange**: Bedroom range (e.g., "1-3")
- **BathRange**: Bathroom range (e.g., "1-2")
- **LandSizeRange**: Land size range
- **BuildingSizeRange**: Building size range
- **UnitRange**: Unit range
- **OpenHouseStartDate**: Open house start date (MM/dd/yyyy format)
- **OpenHouseEndDate**: Open house end date (MM/dd/yyyy format)
- **OpenHouse**: Enable open house filter
- **FarmTypeId**: Farm type ID
- **PriceMin**: Minimum price
- **PriceMax**: Maximum price
- **RentMin**: Minimum rent
- **RentMax**: Maximum rent
- **BuildingTypeId**: Building type ID
- **ZoningTypeGroupId**: Zoning type group ID
- **TransactionTypeId**: Transaction type ID (2-sale, 3-rent)
- **ConstructionStyleId**: Construction style ID
- **PropertySearchTypeId**: Property search type ID
- **ParkingTypeId**: Parking type ID
- **maxResults**: Maximum number of properties to fetch (default: 50, max: 50000)

### Output

The actor outputs each property as an individual data item. Each property contains:

```json
{
    "Id": "12345",
    "MlsNumber": "E1234567",
    "PublicRemarks": "Beautiful family home in prime location",
    "PostalCode": "M5V 3A8",
    "ProvinceName": "Ontario",
    "StatusId": "1",
    "Distance": "0.5",
    "RelativeDetailsURL": "/property/12345",
    "RelativeURLEn": "/en/property/12345",
    "RelativeURLFr": "/fr/property/12345",
    "InsertedDateUTC": "2024-01-01T00:00:00Z",
    "TimeOnRealtor": "5 days",
    "HistoricalDataIsCleared": false,
    "PhotoChangeDateUTC": "2024-01-01T00:00:00Z",
    "UploadedBy": 123,
    "Building": {
        "StoriesTotal": "2"
    },
    "Property": {
        "Price": "$750,000",
        "Type": "Single Family",
        "TypeId": "1",
        "PriceUnformattedValue": "750000",
        "ShortValue": "$750K",
        "PriceChangeTimeOnRealtor": "2024-01-01T00:00:00Z",
        "PriceChangeTagDateUTC": "2024-01-01T00:00:00Z",
        "Address": {
            "AddressText": "123 Main St, Toronto, ON",
            "Longitude": "-79.3832",
            "Latitude": "43.6532",
            "PermitShowAddress": true
        },
        "Photo": [
            {
                "SequenceId": "1",
                "HighResPath": "https://example.com/high.jpg",
                "MedResPath": "https://example.com/med.jpg",
                "LowResPath": "https://example.com/low.jpg",
                "LastUpdated": "2024-01-01T00:00:00Z",
                "TypeId": "1"
            }
        ]
    },
    "Land": {
        "SizeTotal": "5000 sq ft"
    },
    "AlternateURL": {
        "VideoLink": "https://example.com/video"
    },
    "Media": [
        {
            "MediaCategoryId": "1",
            "MediaCategoryURL": "https://example.com/media",
            "Description": "Virtual Tour",
            "Order": 1,
            "VideoType": "virtual"
        }
    ],
    "Individual": [
        {
            "IndividualID": 67890,
            "Name": "John Smith",
            "FirstName": "John",
            "LastName": "Smith",
            "Position": "Real Estate Agent",
            "Photo": "https://example.com/agent.jpg",
            "PhotoHighRes": "https://example.com/agent-high.jpg",
            "CccMember": false,
            "HasListings": true,
            "PermitShowListingLink": true,
            "PermitFreetextEmail": true,
            "RelativeDetailsURL": "/agent/john-smith",
            "AgentPhotoLastUpdated": "2024-01-01T00:00:00Z",
            "RankMyAgentKey": "abc123",
            "RealSatisfiedKey": "def456",
            "TestimonialTreeKey": "ghi789",
            "CorporationDisplayTypeId": "1",
            "HasOrganizationListings": true,
            "Organization": {
                "OrganizationID": 12345,
                "Name": "ABC Real Estate",
                "OrganizationType": "Real Estate Brokerage",
                "Designation": "Licensed",
                "HasListings": true,
                "PermitFreetextEmail": true,
                "PermitShowListingLink": true,
                "RelativeDetailsURL": "/brokerage/abc-real-estate",
                "PhotoLastupdate": "2024-01-01T00:00:00Z",
                "Address": {
                    "AddressText": "456 Broker St, Toronto, ON",
                    "PermitShowAddress": true
                },
                "Phones": [
                    {
                        "PhoneType": "Office",
                        "PhoneNumber": "416-555-0123",
                        "AreaCode": "416",
                        "PhoneTypeId": "1"
                    }
                ]
            },
            "Phones": [
                {
                    "PhoneType": "Mobile",
                    "PhoneNumber": "416-555-0123",
                    "AreaCode": "416",
                    "PhoneTypeId": "2"
                }
            ],
            "Websites": [
                {
                    "Website": "https://johnsmith.com/",
                    "WebsiteTypeId": "1"
                }
            ],
            "Emails": [
                {
                    "ContactId": "contact123"
                }
            ]
        }
    ],
    "Tags": [],
    "scrapedAt": "2025-01-14T10:30:00.000Z"
}
```

### Usage

1. **Input Configuration**: Provide geographic coordinates and search criteria
2. **Set Max Results**: Specify how many properties you want to fetch (up to 50000)
3. **Run the Actor**: Execute the actor with your input
4. **Get Results**: Receive individual property listings in the dataset

### Examples

#### Basic Search by Coordinates

```json
{
  "LatitudeMax": 43.6532,
  "LatitudeMin": 43.6000,
  "LongitudeMax": -79.3832,
  "LongitudeMin": -79.4000,
  "maxResults": 100
}
```

#### Search with Price Filter

```json
{
  "LatitudeMax": 43.6532,
  "LatitudeMin": 43.6000,
  "LongitudeMax": -79.3832,
  "LongitudeMin": -79.4000,
  "PriceMin": 500000,
  "PriceMax": 1000000,
  "SortBy": "1",
  "SortOrder": "A",
  "maxResults": 50
}
```

#### Search with Property Features

```json
{
  "LatitudeMax": 43.6532,
  "LatitudeMin": 43.6000,
  "LongitudeMax": -79.3832,
  "LongitudeMin": -79.4000,
  "BedRange": "2-4",
  "BathRange": "1-3",
  "TransactionTypeId": 2,
  "BuildingTypeId": 1,
  "maxResults": 75
}
```

#### Search with Keywords

```json
{
  "LatitudeMax": 43.6532,
  "LatitudeMin": 43.6000,
  "LongitudeMax": -79.3832,
  "LongitudeMin": -79.4000,
  "Keywords": "downtown,condo,modern",
  "NumberOfDays": 30,
  "maxResults": 25
}
```

### Property Data Structure

Each property listing includes:

#### Basic Information

- **Id**: Unique property identifier
- **MlsNumber**: MLS listing number
- **PublicRemarks**: Public description of the property
- **PostalCode**: Property postal code
- **ProvinceName**: Province name
- **StatusId**: Property status ID

#### Property Details

- **Property**: Detailed property information
  - **Price**: Formatted price display
  - **Type**: Property type
  - **Address**: Property address with coordinates
  - **Photo**: Array of property photos
  - **PriceUnformattedValue**: Raw price value
  - **ShortValue**: Short price format

#### Building and Land Information

- **Building**: Building details (stories, etc.)
- **Land**: Land size and details
- **AlternateURL**: Additional URLs (video tours, etc.)

#### Agent Information

- **Individual**: Array of listing agents with contact details
  - **Organization**: Agent's brokerage information
  - **Phones**: Agent contact numbers
  - **Websites**: Agent websites
  - **Emails**: Agent email contacts

#### Media and Additional Information

- **Media**: Virtual tours and media content
- **Tags**: Property tags
- **Distance**: Distance from search center
- **TimeOnRealtor**: Days on market

### Search Parameters

#### Sort Options

- **SortBy**: 1 (Price), 6 (Date), 11 (Virtual Tours), 12 (Open Houses), 13 (More Photos)
- **SortOrder**: A (Ascending), D (Descending)

#### Filter Options

- **TransactionTypeId**: 2 (Sale), 3 (Rent)
- **BuildingTypeId**: Various building types
- **PriceMin/PriceMax**: Price range filtering
- **BedRange/BathRange**: Bedroom and bathroom ranges
- **NumberOfDays**: Days on market filter

#### Geographic Search

- **LatitudeMax/Min**: North/south boundary
- **LongitudeMax/Min**: East/west boundary

### Support

For technical support or questions about this actor, please contact our support team.

# Actor input Schema

## `LatitudeMax` (type: `string`):

Maximum latitude coordinate for search area

## `LatitudeMin` (type: `string`):

Minimum latitude coordinate for search area

## `LongitudeMax` (type: `string`):

Maximum longitude coordinate for search area

## `LongitudeMin` (type: `string`):

Minimum longitude coordinate for search area

## `SortOrder` (type: `string`):

Sort order for results

## `SortBy` (type: `string`):

Sort field for results

## `CultureId` (type: `string`):

Culture ID for language preference

## `NumberOfDays` (type: `integer`):

Number of days on market

## `Keywords` (type: `string`):

Search keywords (comma-separated)

## `BedRange` (type: `string`):

Bedroom range (e.g., '1-3')

## `BathRange` (type: `string`):

Bathroom range (e.g., '1-2')

## `LandSizeRange` (type: `string`):

Land size range

## `BuildingSizeRange` (type: `string`):

Building size range

## `UnitRange` (type: `string`):

Unit range

## `OpenHouseStartDate` (type: `string`):

Open house start date (MM/dd/yyyy format)

## `OpenHouseEndDate` (type: `string`):

Open house end date (MM/dd/yyyy format)

## `OpenHouse` (type: `boolean`):

Enable open house filter

## `FarmTypeId` (type: `integer`):

Farm type ID

## `PriceMin` (type: `integer`):

Minimum price

## `PriceMax` (type: `integer`):

Maximum price

## `RentMin` (type: `integer`):

Minimum rent

## `RentMax` (type: `integer`):

Maximum rent

## `BuildingTypeId` (type: `integer`):

Building type ID

## `ZoningTypeGroupId` (type: `integer`):

Zoning type group ID

## `TransactionTypeId` (type: `string`):

Transaction type ID

## `ConstructionStyleId` (type: `integer`):

Construction style ID

## `PropertySearchTypeId` (type: `integer`):

Property search type ID

## `ParkingTypeId` (type: `integer`):

Parking type ID

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

Maximum number of properties to fetch (default: 50, max: 50000)

## Actor input object example

```json
{
  "LatitudeMax": "43.6532",
  "LatitudeMin": "43.6000",
  "LongitudeMax": "-79.3832",
  "LongitudeMin": "-79.4000",
  "SortOrder": "A",
  "SortBy": "1",
  "CultureId": "1",
  "maxResults": 50
}
```

# 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 = {
    "LatitudeMax": "43.6532",
    "LatitudeMin": "43.6000",
    "LongitudeMax": "-79.3832",
    "LongitudeMin": "-79.4000",
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/realtor-properties-search-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 = {
    "LatitudeMax": "43.6532",
    "LatitudeMin": "43.6000",
    "LongitudeMax": "-79.3832",
    "LongitudeMin": "-79.4000",
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/realtor-properties-search-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 '{
  "LatitudeMax": "43.6532",
  "LatitudeMin": "43.6000",
  "LongitudeMax": "-79.3832",
  "LongitudeMin": "-79.4000",
  "maxResults": 50
}' |
apify call powerai/realtor-properties-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,powerai/realtor-properties-search-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/T8z1XrPDoXLHfF4A9/builds/xkc3hyZT0GSjeZc1u/openapi.json
