# Redfin Sold Comps Scraper - Sold Homes, Prices & $/Sqft Bands (`fanndev/redfin-sold-comps-scraper`) Actor

Recently sold homes from Redfin for any city, ZIP code, county or neighborhood: sale price, sold date, $/sqft, beds, baths, sqft, lot, year built, HOA and MLS #, plus a comps summary per location with p10 to p90 price and $/sqft bands by bedroom count.

- **URL**: https://apify.com/fanndev/redfin-sold-comps-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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 Sold Comps Scraper - Sold Homes, Prices & $/Sqft Bands

Pull **recently sold homes** from Redfin for any city, ZIP code, county or neighborhood. Each sale comes with its price, sold date, price per square foot, beds, baths, square feet, lot size, year built, HOA dues and MLS number. Every location also gets a **comps summary**: p10 to p90 bands for price and $/sqft, plus medians by bedroom count and by property type.

### Why use this actor

- **Comps in one run.** Sold homes and a ready-made price summary per area. Investors, agents, appraisers and lenders get an ARV or CMA starting point without copying listings by hand.
- **Every sale, not just the first page.** A county with 14,000+ sales in a year is collected in full; large areas are split into price ranges automatically so no sale is skipped or repeated.
- **Honest about hidden prices.** In non-disclosure states such as Texas, Redfin does not publish the sale price. Each sale says whether its price is the real sale price (`salePriceDisclosed`), and the summary tells you which kind of price its bands use.
- **The filters you use for comps.** Sold within 7 days to 5 years, property type, price, beds, baths, square feet and year built.
- **No account, no login, no API key.** Export to JSON, CSV or Excel, or feed a spreadsheet, a deal analyzer or a market report.

### How it works

1. Enter one or more locations: `Seattle, WA`, `78704`, `Travis County, TX`, `Ballard, Seattle`, or a Redfin URL such as `https://www.redfin.com/city/16163/WA/Seattle`.
2. Pick how far back to look and, optionally, narrow by property type, price, size, beds, baths and age.
3. Run. You get one row per sold home (newest first) and one comps summary per location.

You don't need to maintain any scrapers or browsers, or deal with blocks.

### Input

```json
{
    "locations": ["Ballard, Seattle", "78704"],
    "soldWithinDays": "365",
    "propertyTypes": ["house", "townhouse"],
    "minBeds": 3,
    "maxResults": 0,
    "includeCompsSummary": true
}
```

| Field | Type | Description |
| --- | --- | --- |
| `locations` | array | City, ZIP code, county, neighborhood, or a Redfin city/county/neighborhood/ZIP URL. One set of sales and one summary per entry. |
| `soldWithinDays` | string | `7`, `30`, `90` (default), `180`, `365`, `730`, `1095` or `1825` (5 years). |
| `propertyTypes` | array | `house`, `condo`, `townhouse`, `multi-family`, `land`, `manufactured`, `co-op`, `other`. Empty = all. |
| `minPrice`, `maxPrice` | integer | Price range in USD. |
| `minBeds`, `maxBeds`, `minBaths` | integer | Bedrooms and bathrooms. |
| `minSqft`, `maxSqft` | integer | Interior size in square feet. |
| `minYearBuilt`, `maxYearBuilt` | integer | Year built. |
| `maxResults` | integer | Sales per location, newest first (default 1000). `0` = every matching sale. |
| `includeCompsSummary` | boolean | One summary row per location (default on). |
| `includeListingRemarks` | boolean | Adds the listing description to each sale (off by default; rows get much longer). |
| `proxyConfiguration` | object | Apify Proxy settings. The default datacenter proxy works for Redfin; switch to Residential only if you see blocks. |

### Output

A real sale row (Ballard, Seattle):

```json
{
  "_input": "loc:Ballard, Seattle | sold:365d",
  "_source": "S1-gis",
  "recordType": "sale",
  "location": "Ballard, Seattle, WA",
  "address": "1430 NW 59th St #202, Seattle, WA 98107",
  "street": "1430 NW 59th St #202",
  "unit": "#202",
  "city": "Seattle",
  "state": "WA",
  "zip": "98107",
  "price": 299950.0,
  "salePriceDisclosed": true,
  "soldDate": "2026-11-12",
  "pricePerSqFt": 425.0,
  "beds": 1,
  "baths": 1.0,
  "fullBaths": 1,
  "sqFt": 706.0,
  "lotSizeSqFt": 706.0,
  "yearBuilt": 1968,
  "stories": 1.0,
  "propertyType": "condo",
  "hoaMonthly": 419.0,
  "subdivision": "Ballard",
  "mlsStatus": "Closed",
  "mlsId": "2564912",
  "latitude": 47.6718552,
  "longitude": -122.3751223,
  "url": "https://www.redfin.com/WA/Seattle/1430-NW-59th-St-98107/unit-202/home/12537300",
  "listingTags": ["UPDATED KITCHEN", "STAINLESS STEEL APPLIANCES", "GRANITE COUNTERS", "PRIVATE PATIO"],
  "propertyId": 12537300,
  "listingId": 221999347
}
```

The comps summary for the same location (shortened):

```json
{
  "recordType": "COMPS_SUMMARY",
  "location": "Ballard, Seattle, WA",
  "regionType": "neighborhood",
  "soldWithinDays": 365,
  "salesFound": 707,
  "coverage": "complete",
  "disclosedSales": 705,
  "undisclosedSales": 0,
  "priceBasis": "sale price",
  "price": { "count": 705, "min": 275000.0, "p10": 559715.0, "p25": 720000.0, "median": 889850.0, "p75": 1162500.0, "p90": 1484000.0, "max": 10800000.0, "mean": 991770.29 },
  "pricePerSqFt": { "count": 702, "p10": 441.2, "p25": 512.25, "median": 569.0, "p75": 634.0, "p90": 722.8, "…": "…" },
  "byBedrooms": {
    "3": { "count": 270, "medianPrice": 939500.0, "medianPricePerSqFt": 561.0 },
    "2": { "count": 188, "medianPrice": 699995.0, "medianPricePerSqFt": 596.5 },
    "4": { "count": 137, "medianPrice": 1200000.0, "medianPricePerSqFt": 560.0 }
  },
  "byPropertyType": {
    "house": { "count": 322, "medianPrice": 1111568.5, "medianPricePerSqFt": 579.0 },
    "townhouse": { "count": 232, "medianPrice": 807500.0, "medianPricePerSqFt": 560.5 },
    "condo": { "count": 125, "medianPrice": 540000.0, "medianPricePerSqFt": 580.0 }
  },
  "redfinSearchMedian": { "price": 889850, "sqFt": 1633, "pricePerSqFt": 569, "beds": 3, "baths": 2.0 },
  "firstSoldDate": "2025-11-19",
  "lastSoldDate": "2026-11-17"
}
```

| Field | Description |
| --- | --- |
| `price`, `salePriceDisclosed`, `soldDate`, `pricePerSqFt` | What it sold for and when. `salePriceDisclosed` is false where the sale price is not public. |
| `beds`, `baths`, `fullBaths`, `halfBaths`, `sqFt`, `lotSizeSqFt`, `yearBuilt`, `stories` | Property facts. |
| `propertyType`, `hoaMonthly`, `subdivision`, `listingTags` | Type, HOA dues, subdivision and the listing's feature tags. |
| `address`, `street`, `unit`, `city`, `state`, `zip`, `latitude`, `longitude` | Location. |
| `mlsStatus`, `mlsId`, `url`, `propertyId`, `listingId` | Listing references. |
| `COMPS_SUMMARY` rows | `salesFound`, `coverage`, `priceBasis`, `price` and `pricePerSqFt` bands, `sqFt` bands, `byBedrooms`, `byPropertyType`, Redfin's own median, date range. In areas with both kinds of prices, `disclosedSalePrice` and `undisclosedListPrice` give separate bands. |

A location Redfin doesn't know, or one with no sales for your filters, gives one free `NOTICE` row.

### Notes and limits

- **Non-disclosure states.** Texas, Utah and a few other states don't publish sale prices. Redfin shows another price for those homes (usually the last list price), and the actor marks them with `salePriceDisclosed: false`. Read their bands as list-price comps.
- A handful of sales Redfin knows only from public records come without an MLS status or sale date; they are kept and sorted last.
- Days on market and agent details are not published for sold homes, so they aren't included.
- With `maxResults: 0` on an area with more than 10,000 sales, rows arrive price range by price range (newest first within each range) so memory stays low; the summary still covers every sale. With a cap, you always get the newest sales.
- US locations only. The same sale can appear under two locations if the areas overlap (a ZIP inside a county); each location keeps its full set.

# Actor input Schema

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

Where to pull sold homes: a city ('Austin, TX'), ZIP code ('78704'), county ('Travis County, TX'), neighborhood ('Ballard, Seattle'), or a Redfin URL such as https://www.redfin.com/city/16163/WA/Seattle. One set of sales (and one comps summary) per entry.

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

How far back to look.

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

Only these property types. Leave empty for all.

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

Only homes that sold at or above this price.

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

Only homes that sold at or below this price.

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

At least this many bedrooms.

## `maxBeds` (type: `integer`):

At most this many bedrooms.

## `minBaths` (type: `integer`):

At least this many bathrooms.

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

Interior size at least this many square feet.

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

Interior size at most this many square feet.

## `minYearBuilt` (type: `integer`):

Only homes built in or after this year.

## `maxYearBuilt` (type: `integer`):

Only homes built in or before this year.

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

Newest sales first. 0 = every matching sale (more than 10,000 sales are collected price range by price range so nothing is skipped).

## `includeCompsSummary` (type: `boolean`):

Adds one summary row per location: p10 / p25 / median / p75 / p90 sale price and price per square foot, plus medians by bedroom count and property type.

## `includeListingRemarks` (type: `boolean`):

Adds the agent's listing description to every sale (makes rows much longer).

## `maxRetries` (type: `integer`):

Retries per request.

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

Apify Proxy. The default (datacenter) works for Redfin and costs least; switch to Residential only if a large run starts getting blocked.

## Actor input object example

```json
{
  "locations": [
    "Seattle, WA"
  ],
  "soldWithinDays": "90",
  "maxResults": 500,
  "includeCompsSummary": true,
  "includeListingRemarks": false,
  "maxRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per sold home plus one COMPS_SUMMARY 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": [
        "Seattle, WA"
    ],
    "maxResults": 500,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/redfin-sold-comps-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": ["Seattle, WA"],
    "maxResults": 500,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/redfin-sold-comps-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": [
    "Seattle, WA"
  ],
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fanndev/redfin-sold-comps-scraper --silent --output-dataset

```

## MCP server setup

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