# Redfin Scraper - US Homes for Sale, Price, $/sqft, Market Data (`centorprat/redfin-scraper`) Actor

Scrape US homes for sale from Redfin by city, ZIP or county with price, beds, baths, sqft, type and days-on-market filters: price, $/sqft, HOA, year built, address, coordinates, MLS #, remarks, key facts, plus a free market summary. No login.

- **URL**: https://apify.com/centorprat/redfin-scraper.md
- **Developed by:** [Centor Prat](https://apify.com/centorprat) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.68 / 1,000 homes

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/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

## 🏡 Redfin Scraper - US Homes for Sale, Price, $/sqft, Market Data

**Scrape homes for sale from Redfin** for any US **city, ZIP code, neighbourhood or county**, with filters for
**price**, **beds**, **baths**, **square footage**, **property type**, **days on market**, coming-soon and new
construction. One row per home: **price**, beds, baths, **sqft**, **$/sqft**, lot size, **year built**, **HOA**,
property type, **status** (active / coming soon), **days on market**, address, unit, city, ZIP, **coordinates**,
subdivision, **MLS #**, stories, garage / parking spaces, pool, new-construction and "hot home" flags, photo and tour
counts, **listing remarks**, **key facts** and tags, last sold date and the Redfin link. No login, no browser.

**No 350-home ceiling**: Redfin's map search stops at 350 homes; busy areas are split into tiles automatically and merged
without duplicates (up to 5,000 per location).

Free with every location: a **market summary row**: median price, median $/sqft, median days on market, **median price
by bedroom count**, property-type mix, new-construction, coming-soon and HOA shares.

### 📥 Input

| Field | Meaning |
|---|---|
| `locations` | e.g. `["Austin, TX", "78704", "Travis County, TX"]` |
| `maxHomesPerLocation`, `sortBy` | size and order |
| `propertyTypes`, `minPrice`, `maxPrice`, `minBeds`, `minBaths`, `minSqft`, `maxSqft` | Redfin filters |
| `maxDaysOnMarket`, `includeComingSoon`, `onlyNewConstruction` | freshness |

```json
{ "locations": ["Austin, TX"], "propertyTypes": ["house"], "minBeds": 3, "maxPrice": 600000, "maxDaysOnMarket": 7, "maxHomesPerLocation": 500 }
```

### 📤 Output (one home, shortened)

```json
{ "price": 390000, "beds": 3, "baths": 2, "sqft": 998, "pricePerSqft": 391, "yearBuilt": 1984, "propertyType": "House",
  "status": "Active", "daysOnMarket": 1, "address": "12821 Staton Dr", "city": "Austin", "zip": "78727", "hoaMonthly": null,
  "latitude": 30.42, "longitude": -97.72, "mlsId": "...", "keyFacts": ["Low tax rate"], "remarks": "...",
  "url": "https://www.redfin.com/TX/Austin/12821-Staton-Dr-78727/home/31550967" }
```

### 💡 Uses

- **Real estate investors and agents**: fresh listings, price per sqft and days on market by area.
- **Market research and appraisal**: median prices by bedroom count, type mix, new-construction share.
- **Lead lists and alerts**: schedule daily with `maxDaysOnMarket: 1` for new listings.

### 💰 Pricing

Pay per home returned (`home` event). Market summaries are free. Empty searches are free.

### 🤖 API / agents

```bash
curl -X POST "https://api.apify.com/v2/acts/centorprat~redfin-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
     -H "Content-Type: application/json" -d '{"locations": ["Denver, CO"], "minBeds": 2, "maxHomesPerLocation": 50}'
```

MCP: `https://mcp.apify.com/?tools=actors,docs,centorprat/redfin-scraper`

### ❓ FAQ

- **Login needed?** No.
- **Which area is searched?** The place's area as OpenStreetMap defines it (a city's bounding box may include neighbouring towns; use ZIP codes for precision).
- **Sold homes?** This actor covers homes for sale (active and coming soon).

# Actor input Schema

## `locations` (type: `array`):

US places: cities, ZIP codes, neighbourhoods or counties, e.g. \["Austin, TX", "78704", "Travis County, TX"]. Homes inside the place's area.

## `maxHomesPerLocation` (type: `integer`):

Busy areas are split automatically to go past Redfin's 350-per-search limit.

## `sortBy` (type: `string`):

Order of results.

## `propertyTypes` (type: `array`):

Only these property types.

## `minPrice` (type: `integer`):

USD.

## `maxPrice` (type: `integer`):

USD.

## `minBeds` (type: `integer`):

At least this many bedrooms.

## `minBaths` (type: `number`):

At least this many bathrooms.

## `minSqft` (type: `integer`):

Minimum living area.

## `maxSqft` (type: `integer`):

Maximum living area.

## `maxDaysOnMarket` (type: `integer`):

Keep fresh listings only, e.g. 7.

## `includeComingSoon` (type: `boolean`):

Include coming-soon listings as well as active ones.

## `onlyNewConstruction` (type: `boolean`):

Keep new-construction homes only.

## `marketSummary` (type: `boolean`):

Free summary per location: median price, $/sqft, days on market, median price by beds, type mix.

## `proxyConfiguration` (type: `object`):

For very large runs: route through Apify Proxy if Redfin starts rate-limiting.

## Actor input object example

```json
{
  "locations": [
    "Austin, TX"
  ],
  "maxHomesPerLocation": 30,
  "sortBy": "newest",
  "includeComingSoon": true,
  "onlyNewConstruction": false,
  "marketSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per home for sale (price, beds, baths, sqft, $/sqft, HOA, type, status, days on market, address, coordinates, MLS #, remarks) plus one marketSummary row per location.

# 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 = {
    "locations": [
        "Austin, TX"
    ],
    "maxHomesPerLocation": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("centorprat/redfin-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 = {
    "locations": ["Austin, TX"],
    "maxHomesPerLocation": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("centorprat/redfin-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 '{
  "locations": [
    "Austin, TX"
  ],
  "maxHomesPerLocation": 30
}' |
apify call centorprat/redfin-scraper --silent --output-dataset

```

## MCP server setup

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