# Redfin Scraper - Homes For Sale & Sold (`s-r/redfin-scraper`) Actor

Scrape Redfin listings from any city, zipcode, county or neighborhood page. Price, beds, baths, floor area, lot size, year built, coordinates, MLS number, days on market and the agent's remarks.

- **URL**: https://apify.com/s-r/redfin-scraper.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Real estate, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 per-run start fees

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

## Redfin Scraper

Homes from Redfin as a clean table. Open any search on redfin.com, narrow it
however you like, paste the address bar into this actor, and get one row per
home with the price, the size, the age, the location and the listing agent's
own description.

It takes any Redfin region page: a city, a zipcode, a county, a neighborhood or
a whole state. Several at once, one per line. Switch **Listing status** to
Sold and the same search returns what has already sold instead of what is
available, which is the comparison most valuations start from.

### What you get per home

- `price`, `beds`, `baths`, `full_baths`, `partial_baths`
- `sqft`, `lot_size`, `price_per_sqft`, `year_built`
- `street`, `city`, `state`, `zip`, `country_code`, `latitude`, `longitude`
- `days_on_market`, `hoa_month`, `mls_id`, `mls_status`, `listing_broker`
- `remarks`, the listing agent's own description of the property
- `is_new_construction`, `is_hot`, `has_3d_tour`, `has_video_tour`, `photo_count`
- `sold_date` on sold listings
- `property_id`, `listing_id`, `url`, and where in the run the row came from

`price_per_sqft` is computed for you because it is the first thing anyone
works out and it is easy to get subtly wrong across a mixed set of listings.
It is null rather than zero when either input is missing.

### Run sizes

Redfin returns up to **350 homes per call**, so runs are fast and the two
limits behave differently from what you might expect. **Maximum listings** is
the overall cap and trims the final page; asking for 300 costs exactly the same
as asking for 350. **Maximum pages per URL** multiplies that, so five pages is
up to 1,750 homes from a single region.

A 350-home run finishes in a couple of seconds. Even several thousand homes
across a handful of regions is a run measured in tens of seconds, because the
work is a small number of large responses rather than a page load per home.

### Errors

A URL that fails becomes an entry in the `errors` record rather than a missing
row:

| Code | Meaning |
|---|---|
| `bad_input` | Not a Redfin region page link |
| `no_results` | The search ran and matched no homes |
| `search_failed` | Redfin rejected the search and said why |
| `fetch_failed` | Redfin could not be reached after several attempts |

`no_results` and `search_failed` are deliberately separate. A region with
nothing for sale and a region Redfin refused to search look identical if you
only count rows.

One input is rejected on purpose: a bare region number with no URL around it.
The same number means different places under different region types, so
accepting it would quietly scrape the wrong city rather than fail.

### Getting the URL you want

Search on redfin.com the way you normally would, apply the filters you care
about, and copy the address bar. Region pages look like
`redfin.com/city/30749/NY/New-York` or `redfin.com/zipcode/11411`. Both work,
as do county, neighborhood and state pages.

### Related actors

For US rentals rather than homes for sale, use **Apartments.com Scraper**. For
the UK market, use **Rightmove Scraper**.

# Actor input Schema

## `startUrls` (type: `array`):

One per line. Any Redfin city, zipcode, county, neighborhood or state page link. Open the search you want on redfin.com and paste the address bar.

## `listingStatus` (type: `string`):

Homes currently for sale, or homes that have sold.

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

Across all URLs. Redfin returns 350 homes per call, so this trims the last page rather than shortening the work.

## `maxPages` (type: `integer`):

Each page is up to 350 homes, so five pages is 1,750 for one region.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.redfin.com/city/30749/NY/New-York",
    "https://www.redfin.com/zipcode/11411"
  ],
  "listingStatus": "for_sale",
  "maxItems": 350,
  "maxPages": 5
}
```

# Actor output Schema

## `listings` (type: `string`):

One row per home.

## `summary` (type: `string`):

Regions walked and listings returned.

## `errors` (type: `string`):

URLs that could not be read.

# 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 = {
    "startUrls": [
        "https://www.redfin.com/city/30749/NY/New-York"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/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 = { "startUrls": ["https://www.redfin.com/city/30749/NY/New-York"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/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 '{
  "startUrls": [
    "https://www.redfin.com/city/30749/NY/New-York"
  ]
}' |
apify call s-r/redfin-scraper --silent --output-dataset

```

## MCP server setup

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