# Rew Buy Scraper (`getdataforme/rew-buy-scraper`) Actor

Effortlessly scrape Canadian real estate listings from REW.ca with Rew Buy Scraper. Extract prices, locations, images, and details via keyword search for market analysis. Features JSON output, rate limiting, and configurable limits. Ideal for investors, researchers, and professionals....

- **URL**: https://apify.com/getdataforme/rew-buy-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Agents, Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 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?

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

## Rew Buy Scraper

The Rew Buy Scraper is an Apify Actor designed to extract real estate property listings from REW.ca, a popular Canadian real estate platform. It enables users to search for properties by keywords and retrieve detailed information such as prices, locations, and images, making it a powerful tool for market analysis. This Actor streamlines data collection, saving time and effort for real estate professionals, researchers, and investors.

### Features

- **Keyword-Based Search**: Allows targeted scraping of property listings using specific search keywords like city or neighborhood names.
- **Comprehensive Data Extraction**: Retrieves key property details including price, title, neighborhood, city, beds, baths, size, and images.
- **Structured JSON Output**: Delivers clean, machine-readable data in JSON format for easy integration and analysis.
- **Configurable Limits**: Supports setting maximum requests to control crawl depth and avoid overloading the target site.
- **Efficient Crawling**: Utilizes CheerioCrawler for fast, lightweight scraping with built-in error handling.
- **Rate Limiting Compliance**: Respects website rate limits to ensure reliable and ethical data extraction.
- **Versatile Applications**: Ideal for market research, price monitoring, and competitive intelligence in the real estate sector.

### Input Parameters

| Parameter     | Type    | Required | Description                                                                 | Example          |
|---------------|---------|----------|-----------------------------------------------------------------------------|------------------|
| searchKeyword | string  | Yes      | The search keyword for which you want to scrape property listings from REW.ca. | "newmarket-on"   |
| maxLimit      | integer | No       | Maximum number of requests that can be made by this crawler. Default is 100. | 100              |

### Example Usage

To run the Rew Buy Scraper, provide input parameters in JSON format. Here's an example:

```json
{
  "searchKeyword": "newmarket-on",
  "maxLimit": 100
}
```

This will scrape property listings matching the keyword "newmarket-on" with a maximum of 100 requests.

Example output in JSON format:

```json
[
  {
    "url": "https://www.rew.ca/properties/604-250-davis-drive-newmarket-on",
    "price": "$614,900",
    "title": "604 - 250 Davis Drive",
    "neighborhood": "Central Newmarket",
    "city": "Newmarket",
    "beds": "3 bd",
    "baths": "2 ba",
    "size": "1400 - 1599 sf",
    "image": "https://assets-listings.rew.ca/listing/treb_dla/N12763794/00_N12763794_e02eaeb90f431032e2555cd4a69486ca.jpeg?auto=format&trim=auto&fit=crop&w=480&h=287&sharp=25",
    "scrapedFrom": "https://www.rew.ca/properties/areas/newmarket-on"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Gather data on property prices and trends in specific areas for informed decision-making.
- **Competitive Intelligence**: Monitor competitor listings and pricing strategies in the real estate market.
- **Price Monitoring**: Track price changes for specific properties or neighborhoods over time.
- **Content Aggregation**: Collect property data for websites, blogs, or real estate portals.
- **Academic Research**: Obtain datasets for studies on housing markets, urban development, or economic trends.
- **Business Automation**: Integrate scraped data into CRM systems or automated reporting tools for real estate agencies.

### Installation and Usage

1. Search for "Rew Buy Scraper" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters (e.g., search keyword and max limit).
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The Actor outputs data as a JSON array of objects, where each object represents a scraped property listing. Key fields include:

- `url`: The direct link to the property listing on REW.ca.
- `price`: The listed price of the property (e.g., "$614,900").
- `title`: The property title or address (e.g., "604 - 250 Davis Drive").
- `neighborhood`: The neighborhood or area (e.g., "Central Newmarket").
- `city`: The city name (e.g., "Newmarket").
- `beds`: Number of bedrooms (e.g., "3 bd").
- `baths`: Number of bathrooms (e.g., "2 ba").
- `size`: Approximate size in square feet (e.g., "1400 - 1599 sf").
- `image`: URL to the property's main image.
- `scrapedFrom`: The source URL from which the data was scraped.

This structured format ensures easy parsing and integration into databases or analysis tools.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

# Actor input Schema

## `searchKeyword` (type: `string`):

Enter the search keyword for which you want to scrape recipes from REWE.

## `maxLimit` (type: `integer`):

Maximum number of requests that can be made by this crawler.

## Actor input object example

```json
{
  "searchKeyword": "newmarket-on",
  "maxLimit": 100
}
```

# Actor output Schema

## `overview` (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 = {
    "searchKeyword": "newmarket-on"
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/rew-buy-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 = { "searchKeyword": "newmarket-on" }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/rew-buy-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 '{
  "searchKeyword": "newmarket-on"
}' |
apify call getdataforme/rew-buy-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/rew-buy-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/yOBcwllkR5Fmlbntw/builds/gvTdzZGmhHm5tEXNe/openapi.json
