# Centris.ca Scraper - Quebec MLS Property Listings (Canada) API (`barefoot_grade/centris-ca-scraper`) Actor

Residential property listings from Centris.ca, the MLS board for Quebec, Canada. Search across regions including Montreal, Quebec City, Laval and Gatineau. One record per listing: URL, price CAD, address, region, city, bedrooms, property type, images. On-demand - fresh every run.

- **URL**: https://apify.com/barefoot_grade/centris-ca-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/barefoot_grade) (community)
- **Categories:** Real estate
- **Stats:** 3 total users, 2 monthly users, 100.0% 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

## Quebec Property Listings from Centris.ca

### Quick Start

Collect public Quebec residential properties for sale.
Useful for Quebec market research, valuation, and property discovery.
Start with:

```json
{"regions":["Montreal"],"maxPages":1,"maxResults":10}
```

### Input

| Name | Type | Default | What it does |
|---|---|---|---|
| `regions` | array | Montreal, Quebec City, Laval, Gatineau | Selects Quebec regions. |
| `maxPages` | integer | `1` | Maximum pages per region, 1-10. |
| `maxResults` | integer | `50` | Maximum listings, 1-200. |

### Output

Records include `listing_key`, `url`, `price_cad`, `address`, `region`, `city`, `neighbourhood`, `bedrooms`, `bathrooms`, `property_type`, `images`, `source`, and `scraped_at`.

```json
{"listing_key":"centris.ca:12345678","url":"https://www.centris.ca/en/real-estate/quebec/montreal/example/12345678","price_cad":549000,"address":"Montreal, Quebec","region":"Montreal","city":"Montreal","neighbourhood":"Ville Marie","bedrooms":3,"bathrooms":2,"property_type":"Condominium","images":[]}
```

### FAQ

#### How fresh is the data?

Listings are collected from Centris.ca during each run.

#### Which areas are supported?

Quebec regions, including Montreal, Quebec City, Laval, and Gatineau.

#### What are the limits?

Up to 10 pages per region and 200 listings per run.

#### What happens if one region fails?

The Actor continues with other regions and reports errors in the run.

#### Does it collect rentals?

This Actor focuses on properties for sale.

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

# Actor input Schema

## `regions` (type: `array`):

Quebec regions to search. Defaults to the four mapped regions (Montreal, Quebec City, Laval, Gatineau); free-text region names are slugified into the site's ~ filter tokens.

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

Result pages to fetch per region (~20 listing cards per page; page 1 is the GET search page, pages 2+ ride centris's POST search API).

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

Stop after this many listings across all regions.

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

Minimum 0.5 seconds.

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

Optional custom proxy URL. Either a full URL with embedded credentials, or a bare host:port together 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.

## Actor input object example

```json
{
  "regions": [
    "Montreal",
    "Quebec City",
    "Laval",
    "Gatineau"
  ],
  "maxPages": 1,
  "maxResults": 50,
  "requestDelaySecs": 1
}
```

# 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/centris-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/centris-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/centris-ca-scraper --silent --output-dataset

```

## MCP server setup

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