# DuProprio Scraper — Quebec Real Estate Listings (`memo23/duproprio`) Actor

Scrape Quebec real estate listings from duproprio.com — price, address, coordinates, property type. JSON or CSV out.

- **URL**: https://apify.com/memo23/duproprio.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 scraped items

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

## DuProprio Scraper — Quebec Real Estate Listings

<p align="center"><img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/duproprio-logo.png" width="140" alt="DuProprio Scraper"></p>

Scrape Quebec real estate listings from **duproprio.com** — price, address, coordinates, property type, and description for every listing. Works with search pages or direct listing URLs. One row per listing, clean JSON out.

***

### Why use this scraper

- **Full listing detail.** Price (CAD), address, postal code, coordinates, property type (bungalow, home, condo, lot, duplex), description, and image.
- **Search or direct URLs.** Paste a search URL (`/en/search`) to get listings, or individual listing URLs (`/hab-...`) — both are auto-classified.
- **No login.** Reads the public listing data, no credentials needed.
- **Structured output.** Clean schema.org `SingleFamilyResidence` + `Product` JSON-LD parsed into flat rows.

***

### Overview

DuProprio is a Quebec-based real estate platform where homeowners sell their properties without a broker. This actor scrapes listing pages, returning structured data: price, address, geo coordinates, property type, and description.

***

### Supported inputs

- **Search URLs** — list properties:
  - `https://duproprio.com/en/search`
  - `https://duproprio.com/fr/rechercher`
- **Listing URLs** — single property:
  - `https://duproprio.com/en/montreal/lasalle/bungalow-for-sale/hab-7721-rue-miller-1143215`

Leave `startUrls` empty to use the default search page.

***

### Use cases

- **Real estate database** — build a directory of Quebec properties for sale.
- **Price monitoring** — track asking prices by region or property type.
- **Market research** — analyze Quebec's FSBO (for-sale-by-owner) market.
- **Geo analysis** — map property listings with coordinates.

***

### How it works

<p align="center"><img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-duproprio.png" width="900" alt="How it works"></p>

1. You provide a search URL (or direct listing URLs).
2. The actor fetches the search page and extracts listing links from the DOM.
3. It fetches each listing detail page in parallel and parses the schema.org JSON-LD.
4. Each listing becomes one clean row in the dataset.

***

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `startUrls` | array | `/en/search` | Duproprio URLs to scrape. Search and listing URLs are auto-classified. |
| `maxItems` | integer | 1000 | Maximum listings to scrape. |
| `maxConcurrency` | integer | 10 | How many listing pages to fetch in parallel. |
| `proxy` | object | Apify proxy | Proxy configuration. |

```json
{
  "startUrls": [{ "url": "https://duproprio.com/en/search" }],
  "maxItems": 100
}
```

***

### Output

One row per listing:

```json
{
  "type": "listing",
  "listingId": "1143215",
  "listingUrl": "https://duproprio.com/en/montreal/lasalle/bungalow-for-sale/hab-7721-rue-miller-1143215",
  "title": "7721 rue Miller, LaSalle for sale",
  "description": "DuProprio invites you to discover your future Bungalow...",
  "propertyType": "bungalow",
  "price": 879000,
  "priceCurrency": "CAD",
  "streetAddress": "7721 rue Miller",
  "addressLocality": "LaSalle",
  "addressRegion": "QC",
  "postalCode": "H8N 2R7",
  "coordinates": { "latitude": 45.43336, "longitude": -73.61254 },
  "image": "https://photos.duproprio.com/photos/..."
}
```

#### Key output fields

- **`listingId`** — DuProprio listing ID, stable across runs.
- **`price` / `priceCurrency`** — asking price in CAD.
- **`propertyType`** — bungalow, home, condo, lot, duplex, etc.
- **`streetAddress` / `addressLocality` / `addressRegion` / `postalCode`** — full address.
- **`coordinates`** — lat/lng for mapping.

***

### ⚠️ Disclaimer

This Actor scrapes publicly available listing data from duproprio.com. It does not access authenticated or private content. You are responsible for using the output in line with DuProprio's terms and any applicable law in your jurisdiction. This Actor is not affiliated with, endorsed by, or sponsored by DuProprio.

***

### SEO Keywords

duproprio scraper, quebec real estate scraper, fsbo scraper, for sale by owner scraper, quebec property listings, duproprio api, quebec homes for sale, montreal real estate scraper, quebec city listings, fsbo data, quebec mls alternative, duproprio csv export, quebec property prices, canada real estate scraper

# Actor input Schema

## `startUrls` (type: `array`):

Duproprio URLs to scrape. Search URLs (https://duproprio.com/en/search) list properties; direct listing URLs (containing /hab-) are parsed directly.

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

Maximum number of listings to scrape.

## `maxConcurrency` (type: `integer`):

How many listing pages to fetch in parallel.

## `proxy` (type: `object`):

Apify proxy to use.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://duproprio.com/en/search"
    }
  ],
  "maxItems": 1000,
  "maxConcurrency": 10,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://duproprio.com/en/search"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/duproprio").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 = { "startUrls": [{ "url": "https://duproprio.com/en/search" }] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/duproprio").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 '{
  "startUrls": [
    {
      "url": "https://duproprio.com/en/search"
    }
  ]
}' |
apify call memo23/duproprio --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/duproprio"
        }
    }
}
```

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/JVuoWPbtsDakiVV8P/builds/3sdWgzMHOWxun5nAM/openapi.json
