# Redfin Sold Homes Scraper: Recent Sales and Comps (`happyendpoint/redfin-sold-homes-scraper`) Actor

Get homes that recently sold on Redfin, by city, ZIP code, region or map polygon, from the past day up to five years back. Each row has the sale price, sale date, beds, baths, square feet, home type, address and photo, for comparable sales, pricing and market reports.

- **URL**: https://apify.com/happyendpoint/redfin-sold-homes-scraper.md
- **Developed by:** [Happy Endpoint](https://apify.com/happyendpoint) (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 $2.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

### What this Actor does

This Actor collects homes that recently sold on Redfin and returns one row per sale: the price it closed at, the closing date, bedrooms, bathrooms, living area, home type, the listed address with its coordinates, and the main photo. Choose the area as a typed place name, a Redfin region number with its type, or a polygon around a subdivision, a school zone or a stretch of a commute. Set how many days back to look, from one day to five years, and narrow the sales with price, size, room, home type and keyword filters, or with about thirty more criteria in Advanced filters, such as lot size, year built, HOA dues and school ratings.

The data is what Redfin shows to any visitor on its search and listing pages: prices, home facts, listing status, the listed address and the main photo.

### Use cases

- Pull comparable sales near a home you plan to price, buy or appraise.
- Follow how the price per square foot of closed sales moves in a ZIP code, month by month.
- Count how many homes of each type changed hands in a ZIP code over the past year.
- Outline a subdivision with a polygon and list every sale inside it for the last five years.
- Feed fresh closing prices into a valuation model or an investor deal sheet.

### How to use

1. Open the Actor's input form in Apify Console, or prepare a JSON input for the API.
2. Pick an `operation`: each one is a different kind of request to Redfin.
3. Set `maxItems` to the number of results you need. It is the only quantity setting; paging is handled for you.
4. Start the run. The results land in the run's dataset, where you can download them as JSON, CSV, Excel and
   other formats, or read them through the Apify API.

This is the example input, the one the input form starts with:

```json
{
  "operation": "soldByLocation",
  "maxItems": 10,
  "location": "Austin, TX",
  "soldWithinDays": 90
}
```

### Input

| Field | Type | Description | Used by |
| --- | --- | --- | --- |
| `operation` | string | Which data to fetch. Each option is one kind of request. | all operations |
| `maxItems` | integer | The most results to return. The run stops once it has this many. | all operations |
| `location` | string | The place to look in, as plain text: a city followed by its state code, a ZIP code, a neighborhood, a county, a school or a school district. A street address or a state name alone is refused. | Sold homes by location |
| `regionId` | integer | Redfin's number for a region: a city, county, neighborhood, ZIP code, state, school district or school zone. The homes-for-sale Actor listed under More Redfin Actors finds it from a typed place name. Send it with Region type, or send a Polygon instead. | Sold homes by region or polygon |
| `regionType` | string | What kind of place the Region ID stands for. Set it whenever you set Region ID. Sold-home searches also take a whole state. | Sold homes by region or polygon |
| `polygon` | string | The shape of the area to search, written as longitude and latitude pairs. Put a space inside each pair and a comma between pairs, use four points or more, and end on the starting point. | Sold homes by region or polygon, Sold homes by polygon |
| `soldWithinDays` | integer | How many days back a sale may have closed. Leave it empty for the last 30 days; the longest window is 1825 days, about five years. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `propertyTypes` | string | Home types separated by commas, any of which may match: house, townhouse, condo, co-op, multi-family, mobile, land or other. Leave it empty for all. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minPrice` | integer | Lowest sale price. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxPrice` | integer | Highest sale price. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minBeds` | integer | Fewest bedrooms a home may have. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxBeds` | integer | Most bedrooms a home may have. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minBaths` | number | Fewest bathrooms a home may have, such as 1.5 or 2. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minSqft` | integer | Smallest living area, in square feet. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxSqft` | integer | Largest living area, in square feet. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `query` | string | Words to look for in the listing text. With several words, only homes whose text has every one of them are kept. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `priceReduced` | string | Only homes whose asking price was lowered while they were on the market, by how recently. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `openHouse` | string | Only homes with an open house on their listing, at any time or on the coming weekend. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `sort` | string | How to order the homes. Latest sale first puts the newest sales on top. Leave it empty for the order Redfin recommends. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |

#### Advanced filters

Put these keys inside the `advancedFilters` object. Any other key is refused.

| Key | Type | Description | Used by |
| --- | --- | --- | --- |
| `acceptedFinancing` | string | Only homes whose sellers accepted this kind of loan. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `amenities` | string | Features that every home needs, with a comma between them: ac, pool, waterfront, garage, view, green, accessible, elevator, fixer, basement, fireplace, virtual_tour, primary_bed_on_main, guest_house, rv_parking, washer_dryer or pets_allowed. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `basementType` | string | Basement kinds separated by commas, any of which may match: any, finished, unfinished or none. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `exclude55Plus` | boolean | Skip homes in communities reserved for older residents. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `excludeLandLeases` | boolean | Skip homes that stand on leased land. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `excludeShortSale` | boolean | Skip short sales. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `includeUnratedSchools` | boolean | With a minimum school rating set, still show homes whose schools are not rated yet. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `listingType` | string | Kinds of sale separated by commas, any of which may match: agent-listed, mls-foreclosure, bank-owned, new-construction or fsbo (sold by the owner). | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minDaysOnMarket` | integer | Keep homes that were listed for this many days or longer. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxDaysOnMarket` | integer | Keep homes that were listed for this many days or fewer. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxHoa` | integer | Highest homeowners association fee shown on the listing. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minLotSize` | integer | Smallest lot in square feet. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxLotSize` | integer | Largest lot in square feet. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minMonthlyPayment` | integer | Lowest estimated monthly payment, as Redfin works it out. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxMonthlyPayment` | integer | Highest estimated monthly payment, as Redfin works it out. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minPricePerSqft` | integer | Smallest price for each square foot. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxPricePerSqft` | integer | Largest price for each square foot. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxPropertyTax` | integer | Highest property tax shown on the listing. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minStories` | integer | Fewest floors a home may have. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxStories` | integer | Most floors a home may have. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minYearBuilt` | integer | Earliest year of construction. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `maxYearBuilt` | integer | Latest year of construction. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minBikeScore` | integer | Lowest Bike Score, out of 100. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minTransitScore` | integer | Lowest Transit Score, out of 100. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minWalkScore` | integer | Lowest Walk Score, out of 100. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `minSchoolRating` | integer | Lowest rating, from 1 to 10, for schools at the grades chosen in School levels. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `schoolTypes` | string | Grades that the minimum school rating is checked for, with a comma between them: elementary, middle or high. Empty means all three. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `poolType` | string | The pool type a home needs, or a choice to keep only homes without a private pool. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |
| `redfinListedOnly` | boolean | Only homes that Redfin agents listed. | Sold homes by region or polygon, Sold homes by location, Sold homes by polygon |

### Output

Every row holds the run's own fields first (`operation`, `scrapedAt` and `sourceUrl`),
then the core fields `id`, `url`, `title`, `price`, `currency`, `location`, which are empty when the source has no such value,
and then every field of the source item as Redfin returns it. The dataset has an overview view and one view per
operation.

A sample of Sold homes by location rows from a test run. Personal data, contact data, outside links and anything
that looks like a credential are replaced with `(removed)`:

```json output-excerpt
[
  {
    "operation": "soldByLocation",
    "scrapedAt": "2026-11-23T07:16:56.784Z",
    "sourceUrl": "(removed)",
    "id": "(removed)",
    "url": "(removed)",
    "title": null,
    "price": 380000,
    "currency": null,
    "location": "6715 Windrift Way Unit 26",
    "lastSoldDate": "2026-10-02T07:00:00Z",
    "beds": 3,
    "baths": 2.5,
    "sqft": 2050,
    "propertyType": "condo",
    "propertyId": "(removed)",
    "listingId": "(removed)",
    "photoUrl": "(removed)"
  }
]
```

### Pricing

This Actor uses pay-per-event pricing: a start fee of $0.002 for each run, plus
$0.002 for each result in the dataset. Every operation is priced the same way.

| Operation | Start fee per run | Price per result |
| --- | --- | --- |
| Sold homes by region or polygon | $0.002 | $0.002 |
| Sold homes by location | $0.002 | $0.002 |
| Sold homes by polygon | $0.002 | $0.002 |

Worked examples for one run:

| Results | Total cost |
| --- | --- |
| 10 | $0.022 |
| 100 | $0.202 |
| 1,000 | $2.002 |

Invalid input, a not-found answer or an internal error adds no charge of its own: such a run pays the start
fee plus only the results it delivered before it stopped (none for invalid input). To cap what one run may
cost, set the maximum cost per run when you start it.

### Limits and tips

- One run returns at most 1,000 results; the input form allows no higher `maxItems`.
- Set `maxItems` to what you need: you pay per result, and a smaller run finishes sooner.
- A request that matches nothing ends with an empty dataset and costs only the start fee.
- Only closed sales are returned. Homes on the market now and rentals are outside this Actor.
- Sold homes by region or polygon needs either a Region ID with its Region type, or a Polygon.
- Sold homes by location takes a city, county, neighborhood, ZIP code, school or school district. For a whole state, use a Region ID with the State region type instead.
- Each row describes the latest sale of a home. Older sales of the same home are not part of the row.

### Resume a run that stopped at your cost limit

If you set a maximum cost per run and a run reaches it, the run stops early. To get the rest, resurrect the
run in Apify Console, or through the API, with a higher limit. The Actor resumes where it stopped: results
already in the dataset are not fetched or charged again, and the run still ends at `maxItems`.
Resurrecting can charge the start fee again.

### Running without input

The example input above is also this Actor's example run input. Apify's API documents that a run started with
no input at all uses the example run input: Sold homes by location, at most 10 results,
which costs at most $0.022 (the start fee plus 10 results). For your own runs, always send an input with the fields you need.

### FAQ

#### Do I need an account on Redfin?

No. The Actor reads public data, so an Apify account is all you need.

#### How do I get the data into my own tools?

Download the dataset from the run's page, or read it through the Apify API and its integrations.

#### How far back can I look?

Set Sold within (days) to any number from 1 to 1825. Empty means the last 30 days, 90 is a quarter and 365 a full year.

#### Which price does a row show?

For a sold home, price is what the sale closed at, and lastSoldDate is the day it closed.

#### How do I find comparable sales for one home?

Pick Sold homes by polygon and outline a few blocks around the home. Then set the bedroom, bathroom and living area filters close to that home, and sort by Latest sale first so the newest comparables come on top.

#### Can I also get homes that are still for sale?

Not here: this Actor reads closed sales only. The homes-for-sale Actor listed under More Redfin Actors covers active listings, price cuts and open houses.

### More Redfin Actors

- [redfin-property-search-scraper](https://apify.com/happyendpoint/redfin-property-search-scraper)

### Related Actors

- [realtor-com-property-search-scraper](https://apify.com/happyendpoint/realtor-com-property-search-scraper)
- [rent-com-rental-search-scraper](https://apify.com/happyendpoint/rent-com-rental-search-scraper)
- [houzz-professionals-scraper](https://apify.com/happyendpoint/houzz-professionals-scraper)

### Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Redfin. All
trademarks belong to their owners.

### Is it legal to use this data?

This Actor collects data that Redfin shows publicly.
Some fields hold business contact data: `agent`.
Personal data is protected by laws such as the GDPR in the EU. Collect and use it only when you have a lawful
reason, keep only what you need, and do not use it for unsolicited messages. If you are unsure, ask a lawyer.

# Changelog

This Actor's version history is a separate document: https://apify.com/happyendpoint/redfin-sold-homes-scraper/changelog.md

# Actor input Schema

## `operation` (type: `string`):

Which data to fetch. Each option is one kind of request.

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

The most results to return. The run stops once it has this many.

## `location` (type: `string`):

The place to look in, as plain text: a city followed by its state code, a ZIP code, a neighborhood, a county, a school or a school district. A street address or a state name alone is refused. Used by: Sold homes by location.

## `regionId` (type: `integer`):

Redfin's number for a region: a city, county, neighborhood, ZIP code, state, school district or school zone. The homes-for-sale Actor listed under More Redfin Actors finds it from a typed place name. Send it with Region type, or send a Polygon instead. Used by: Sold homes by region or polygon.

## `regionType` (type: `string`):

What kind of place the Region ID stands for. Set it whenever you set Region ID. Sold-home searches also take a whole state. Used by: Sold homes by region or polygon.

## `polygon` (type: `string`):

The shape of the area to search, written as longitude and latitude pairs. Put a space inside each pair and a comma between pairs, use four points or more, and end on the starting point. Used by: Sold homes by region or polygon, Sold homes by polygon.

## `soldWithinDays` (type: `integer`):

How many days back a sale may have closed. Leave it empty for the last 30 days; the longest window is 1825 days, about five years. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

## `propertyTypes` (type: `string`):

Home types separated by commas, any of which may match: house, townhouse, condo, co-op, multi-family, mobile, land or other. Leave it empty for all. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Lowest sale price. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Highest sale price. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Fewest bedrooms a home may have. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Most bedrooms a home may have. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Fewest bathrooms a home may have, such as 1.5 or 2. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Smallest living area, in square feet. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

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

Largest living area, in square feet. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

## `query` (type: `string`):

Words to look for in the listing text. With several words, only homes whose text has every one of them are kept. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

## `priceReduced` (type: `string`):

Only homes whose asking price was lowered while they were on the market, by how recently. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

## `openHouse` (type: `string`):

Only homes with an open house on their listing, at any time or on the coming weekend. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

## `sort` (type: `string`):

How to order the homes. Latest sale first puts the newest sales on top. Leave it empty for the order Redfin recommends. Used by: Sold homes by region or polygon, Sold homes by location, Sold homes by polygon.

## `advancedFilters` (type: `object`):

More filters as one JSON object. The README lists every accepted key; any other key is refused.

## Actor input object example

```json
{
  "operation": "soldByLocation",
  "maxItems": 10,
  "location": "Austin, TX",
  "soldWithinDays": 90
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `sold` (type: `string`):

No description

## `soldByLocation` (type: `string`):

No description

## `soldByPolygon` (type: `string`):

No description

## `summary` (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 = {
    "operation": "soldByLocation",
    "maxItems": 10,
    "location": "Austin, TX",
    "soldWithinDays": 90
};

// Run the Actor and wait for it to finish
const run = await client.actor("happyendpoint/redfin-sold-homes-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 = {
    "operation": "soldByLocation",
    "maxItems": 10,
    "location": "Austin, TX",
    "soldWithinDays": 90,
}

# Run the Actor and wait for it to finish
run = client.actor("happyendpoint/redfin-sold-homes-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 '{
  "operation": "soldByLocation",
  "maxItems": 10,
  "location": "Austin, TX",
  "soldWithinDays": 90
}' |
apify call happyendpoint/redfin-sold-homes-scraper --silent --output-dataset

```

## MCP server setup

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