# Redfin Real Estate Scraper: MLS Listings, Sold Homes & Rentals (`wyle/redfin-real-estate-mls-scraper`) Actor

Search Redfin MLS homes for sale, recently sold comps, and rentals by city, ZIP, or URL. Extract prices, Redfin estimates, beds/baths, square footage, HOA fees, and listing agent contacts.

- **URL**: https://apify.com/wyle/redfin-real-estate-mls-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Real Estate Scraper: MLS Listings, Sold Homes & Rentals

Extract For Sale MLS properties, Recently Sold home comps, and Apartments or Homes For Rent from Redfin across the United States and Canada. Search by city, 5-digit ZIP code, or direct Redfin URL with filters for price, bedrooms, bathrooms, square footage, property type, and sold timeframe. Fast, lightweight, and runs without launching a browser.

### Modes

| Mode | Input | What you get |
|---|---|---|
| For Sale (`for_sale`) | `locations` + `listingMode: "for_sale"` | Active, Coming Soon, and Pending/Under Contract MLS listings with prices, price/sq.ft, HOA fees, beds, baths, lot size, days on market, MLS #, listing agent, open houses, 3D tours, and HD photos. |
| Recently Sold (`sold`) | `locations` + `listingMode: "sold"` + `soldWithinDays` | Historical closed sales from the past 30 to 1,095 days with sold date, closing price, price/sq.ft, MLS board source, and GPS coordinates. |
| For Rent (`for_rent`) | `locations` + `listingMode: "for_rent"` | Rental homes and apartment communities with rent ranges, bed/bath counts, available unit counts, leasing office info, and rental photo galleries. |
| Direct Property URL | `locations` containing a Redfin `/home/...` URL | Detailed MLS and property record for that specific listing. |

### Supported Regions & Options

- **US & Canada coverage**: Search by `"City, ST"` (`"Austin, TX"`, `"Miami, FL"`, `"Toronto, ON"`, `"Vancouver, BC"`), 5-digit US ZIP codes (`"90210"`, `"78701"`), or Redfin city/ZIP/county/property URLs.
- **Property types**: Filter by `house`, `condo`, `townhouse`, `multifamily`, `land`, `manufactured`, or `coop` (leave empty for all).
- **Filters & sorting**: `minPrice`/`maxPrice`, `minBeds`, `minBaths`, `minSqft`/`maxSqft`, `includePending`, `soldWithinDays` (`30`, `90`, `180`, `365`, `730`, `1095`), and `sortBy` (`redfin-recommended-asc`, `days-on-redfin-asc`, `price-asc`, `price-desc`, `sqft-desc`, `price-per-sqft-asc`).

### Output Modes & Proxy Tips

- **Mode-specific fields & grid expansion**: Up to 350 listings are returned per search area; setting `maxItems` above 350 automatically subdivides the city bounding box into a grid (`2x2` or `3x3`) and deduplicates by `propertyId` (up to `5,000` per location). Note that `sold` mode includes a street-view photo URL rather than interior galleries, and `for_rent` mode populates monthly rent ranges in `priceFormatted` and available unit counts in `status`.
- **Zero-null output**: All 43 output fields return typed non-null defaults (`""`, `0`, `0.0`, `false`, `[]`).
- **Proxy tips**: Direct connections work out of the box for standard runs. Apify Proxy is used automatically as a fallback if rate-limited, or can be enabled explicitly in `proxyConfiguration` for high-volume multi-ZIP crawls.

### Use Cases

- **Real Estate Deal Sourcing**: Identify undervalued MLS listings by comparing `pricePerSqFt`, `hoaFeeMonthly`, and `daysOnMarket` against local medians.
- **Comparative Market Analysis (CMA) & AVMs**: Pull closed sales from the past 30–1,095 days (`listingMode: "sold"`) to power automated valuation models.
- **Rental Yield & Cap Rate Modeling**: Combine `for_sale` prices with `for_rent` monthly rates across the same ZIP codes.
- **Broker & PropTech CRM Enrichment**: Track `mlsId`, `listingAgentName`, `openHouseSchedule`, and newest listings (`days-on-redfin-asc`).

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `locations` | Array | `["Austin, TX", "Miami, FL"]` | US/Canadian cities, 5-digit ZIP codes, or Redfin search/property URLs. |
| `listingMode` | String | `"for_sale"` | Listing mode: `for_sale`, `sold`, or `for_rent`. |
| `propertyTypes` | Array | `[]` | Property type filter (leave empty for all types). |
| `minPrice` | Integer | `0` | Minimum price in USD (`0` = no minimum). |
| `maxPrice` | Integer | `0` | Maximum price in USD (`0` = no maximum). |
| `minBeds` | Integer | `0` | Minimum bedrooms (`0` = any, up to `10`). |
| `minBaths` | Number | `0` | Minimum bathrooms (`0` = any, e.g., `1.5`, `2`). |
| `minSqft` | Integer | `0` | Minimum interior living area in sq.ft (`0` = any). |
| `maxSqft` | Integer | `0` | Maximum interior living area in sq.ft (`0` = any). |
| `includePending` | Boolean | `true` | Include Pending / Under Contract listings in `for_sale` mode. |
| `soldWithinDays` | String | `"90"` | Filter closed sales in `sold` mode: `30`, `90`, `180`, `365`, `730`, or `1095` days. |
| `sortBy` | String | `"redfin-recommended-asc"` | Sort order: `redfin-recommended-asc`, `days-on-redfin-asc`, `price-asc`, `price-desc`, `sqft-desc`, `price-per-sqft-asc`. |
| `maxItems` | Integer | `50` | Maximum listings per location (`1` to `5000`). |
| `proxyConfiguration` | Object | `{"useApifyProxy": false}` | Optional Apify Proxy configuration. |

### Sample Output

```json
{
  "propertyId": "31912982",
  "listingId": "226424645",
  "mlsId": "6496433",
  "listingMode": "for_sale",
  "status": "Active",
  "propertyType": "Single Family Residential",
  "price": 350000,
  "priceFormatted": "$350,000",
  "pricePerSqFt": 241,
  "hoaFeeMonthly": 0,
  "beds": 3.0,
  "baths": 2.0,
  "sqFt": 1450,
  "lotSizeSqFt": 11125,
  "stories": 1.0,
  "yearBuilt": 1963,
  "daysOnMarket": 1,
  "soldDate": "",
  "address": "11504 N Oaks Dr, Austin, TX 78753",
  "streetAddress": "11504 N Oaks Dr",
  "city": "Austin",
  "state": "TX",
  "zipCode": "78753",
  "neighborhood": "North Oaks Sec 02",
  "latitude": 30.3806578,
  "longitude": -97.6735775,
  "listingAgentName": "Gabriel Recio",
  "mlsSource": "MLS Board #92",
  "openHouseSchedule": "Nov 8, 12:00PM",
  "garageSpaces": 2,
  "isNewConstruction": false,
  "isHotHome": false,
  "has3DTour": true,
  "virtualTourUrl": "https://my.matterport.com/show/?m=4bvNqfafsQp&",
  "primaryPhotoUrl": "https://ssl.cdn-redfin.com/photo/92/bigphoto/433/6496433_0.jpg",
  "photoCount": 26,
  "photos": [
    "https://ssl.cdn-redfin.com/photo/92/bigphoto/433/6496433_0.jpg",
    "https://ssl.cdn-redfin.com/photo/92/bigphoto/433/6496433_19_0.jpg"
  ],
  "keyFacts": [
    "Huge backyard",
    "No hoa",
    "Single story living"
  ],
  "listingTags": [
    "SINGLE STORY LIVING",
    "HUGE BACKYARD",
    "DETACHED STORAGE SHED",
    "NO HOA"
  ],
  "description": "Single-story living, recent updates, a huge backyard, and no HOA in North Austin.",
  "url": "https://www.redfin.com/TX/Austin/11504-N-Oaks-Dr-78753/home/31912982",
  "searchLocation": "Austin, TX",
  "scrapedAt": "2026-11-08T01:35:00Z"
}
```

# Actor input Schema

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

Enter US/Canadian Cities (e.g., 'Austin, TX', 'Miami, FL', 'Los Angeles, CA'), 5-digit ZIP codes (e.g., '90210', '78701'), or direct Redfin Search/Property URLs (e.g., 'https://www.redfin.com/city/30818/TX/Austin').

## `listingMode` (type: `string`):

Choose whether to scrape active/pending homes For Sale ('for_sale'), Recently Sold homes/comps ('sold'), or Apartments/Homes For Rent ('for_rent').

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

Filter by property type. Leave empty to include all property types (Single Family House, Condo, Townhouse, Multi-Family, Land, Manufactured, Co-op).

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

Optional minimum listing/sold/rent price in USD (e.g., 250000). Set 0 for no minimum.

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

Optional maximum listing/sold/rent price in USD (e.g., 1500000). Set 0 for no maximum.

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

Optional minimum number of bedrooms (0 = any).

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

Optional minimum number of bathrooms (0 = any, e.g., 1.5, 2, 3).

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

Optional minimum interior living area in square feet (0 = any).

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

Optional maximum interior living area in square feet (0 = any).

## `includePending` (type: `boolean`):

When enabled in 'for_sale' mode, includes both Active and Pending/Under Contract MLS listings.

## `soldWithinDays` (type: `string`):

When 'listingMode' is set to 'sold', filter homes sold within the last N days.

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

Sort order for listings returned by Redfin.

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

Maximum number of property listings to extract per location query. When set above 350, the Actor automatically subdivides the search area into a multi-quadrant grid to collect more listings.

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

Optional Apify Proxy configuration. Direct connections work out of the box, with Apify Proxy used automatically as a fallback if rate-limited.

## Actor input object example

```json
{
  "locations": [
    "Austin, TX",
    "Miami, FL"
  ],
  "listingMode": "for_sale",
  "propertyTypes": [],
  "minPrice": 0,
  "maxPrice": 0,
  "minBeds": 0,
  "minBaths": 0,
  "minSqft": 0,
  "maxSqft": 0,
  "includePending": true,
  "soldWithinDays": "90",
  "sortBy": "redfin-recommended-asc",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "locations": [
        "Austin, TX",
        "Miami, FL"
    ],
    "listingMode": "for_sale",
    "propertyTypes": [],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/redfin-real-estate-mls-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",
        "Miami, FL",
    ],
    "listingMode": "for_sale",
    "propertyTypes": [],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/redfin-real-estate-mls-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",
    "Miami, FL"
  ],
  "listingMode": "for_sale",
  "propertyTypes": [],
  "maxItems": 50
}' |
apify call wyle/redfin-real-estate-mls-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wyle/redfin-real-estate-mls-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/fMEAdm7naZ3txGcrw/builds/E7ta82lYFcAYXooMw/openapi.json
