# Redfin API Scraper (`rl1987/redfin-api-scraper`) Actor

Scrape Redfin real estate listings — address, price, beds/baths, sqft, lat/lng, listing ID, status, URL, and listing agent — via Redfin's private mobile API (GET /stingray/api/gis). No API key. Search by city/ZIP, filter by type and status, paginate to maxItems.

- **URL**: https://apify.com/rl1987/redfin-api-scraper.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** Real estate, Open source
- **Features:** Limited permissions
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listing row — basic data

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 Scraper — Scrape Redfin.com Listings, Prices, Photos & Sales History

**Redfin Scraper** — Search Redfin for-sale real-estate listings by location and extract full property detail — all photos, price/sale/tax history, facts & features, schools, agent contacts, geo and IDs — via Redfin's private mobile API. It reads Redfin's own API directly, so it's **fast, reliable and complete** — no flaky HTML parsing, no headless browser. Export to **JSON, CSV, Excel, or an API**.

> Search any US market and pull listings with full photo galleries and property/sales history.

***

### Why use this Redfin Scraper?

- **No code required** — set your input, click **Start**, download your data.
- **Fast & accurate** — reads Redfin's own private API and returns structured JSON, not scraped HTML.
- **Rich, structured data** — every field below, clean and ready to use.
- **Full pagination** — collects results to your `maxItems` cap.
- **Transparent pay-per-event pricing** — you are charged for what a run delivers; the **Pricing** tab lists the events and their current prices.
- **Export anywhere** — JSON, CSV, Excel, XML, or pull it live via the Apify API.

***

### What can you do with Redfin data?

- **Market & competitor research** — analyse Redfin real-estate listings at scale.
- **Price & availability monitoring** — track changes over time.
- **Data science & trend analysis** — build clean datasets.
- **Lead generation & enrichment** — feed Redfin data into your own tools.

***

### What data does the Redfin Scraper extract?

Each row includes: `propertyId`, `listingId`, `mlsId`, `url`, `streetLine`, `unitNumber`, `city`, `state`, `zip`, `countryCode`, `latitude`, `longitude`, `price`, `pricePerSqFt` …and more. See the full **Data table** below.

***

### How to scrape Redfin.com (3 steps)

1. **Set your input** — provide `location` or `status` (see the table below; defaults work out of the box).
2. **Pick options** — filters, a `proxyConfiguration`, and a `maxItems` cap.
3. **Run & export** — click **Start**, then download the dataset as JSON/CSV/Excel or fetch it via the API.

***

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `location` | string | `Seattle` | City, ZIP, neighborhood or county to search (e.g. 'Seattle', '98115', 'Austin, TX'). Resolved to a Redfin region at runtime. |
| `status` | enum | `active` | Which listings to return. — one of `active`, `sold`, `active_and_pending` |
| `soldWithinDays` | integer | `30` | When status = Sold, only include homes sold within this many days. |
| `minPrice` | integer | – | Minimum list price (USD). |
| `maxPrice` | integer | – | Maximum list price (USD). |
| `minBeds` | integer | – | Minimum number of bedrooms. |
| `minBaths` | integer | – | Minimum number of bathrooms. |
| `includeDetails` | boolean | `true` | Fetch each home's full detail (all photos, sale/tax history, facts, schools, agent contacts, Redfin Estimate). Slower — one extra request per home. |
| `maxItems` | integer | `100` | Maximum listings to return. 0 = all in the region. |
| `propertyTypes` | enum | – | Which property types to include (comma list of Redfin uipt codes). Default is all types. — one of `1,2,3,4,5,6,7,8`, `1`, `2`, `3`, `1,2,3`, `5` |
| `proxyConfiguration` | object | Apify Proxy | Route requests through a proxy (Apify Proxy by default). |

#### Example input

```jsonc
{
  "location": "Seattle",
  "status": "active",
  "soldWithinDays": 30,
  "includeDetails": true,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

***

### Output

Each result is a JSON object like this:

```jsonc
{
  "propertyId": 313871,
  "listingId": 220549917,
  "mlsId": "2544655",
  "url": "https://www.redfin.com/WA/Seattle/6050-43rd-Ave-NE-98115/home/313871",
  "streetLine": "6050 43rd Ave NE",
  "unitNumber": {
    "level": 1
  },
  "city": "Seattle",
  "state": "WA",
  "zip": "98115",
  "countryCode": "US",
  "latitude": 47.6736643,
  "longitude": -122.2818475,
  "price": 1250000,
  "pricePerSqFt": 460,
  "hoa": {
    "level": 1
  },
  "sqFt": 2720,
  "lotSize": 7749,
  "beds": 4,
  "baths": 2,
  "yearBuilt": 1955,
  "stories": 1,
  "propertyType": "House",
  "mlsStatus": "Active",
  "daysOnMarket": 1,
  "isNewConstruction": false,
  "hasVirtualTour": true,
  "has3DTour": true,
  "numPhotos": 40,
  "photos": [
    "https://ssl.cdn-redfin.com/system_files/media/1251171_JPG/item_64.jpg",
    "https://ssl.cdn-redfin.com/system_files/media/1251171_JPG/item_58.jpg",
    "…+39 more"
  ],
  "tour3dScan": "https://my.matterport.com/show/?m=LtFXoPMdNwa",
  "listingAgentName": "Forrest Moody",
  "listingBrokerName": "Redfin",
  "openHouseStart": "2026-07-08T19:30:00Z",
  "openHouseName": "Open House - 12:30 - 2:30 PM",
  "listingRemarks": "Offered for the first time since it was custom built in 1955, this exceptional mid-century residence presents a rare opportunity to own an architectural gem …",
  "redfinEstimate": 1252018.51,
  "apn": "710110 0095",
  "countyName": "King County",
  "saleHistory": [
    {
      "eventDescription": "Listed",
      "mlsDescription": "Active",
      "price": 1250000,
      "eventDateMs": 1783407600000,
      "source": "NWMLS as Distributed by MLS Grid",
      "sourceId": "2544655",
      "historyEventType": 1
    }
  ],
  "taxHistory": [
    {
      "rollYear": 2026,
      "taxesDue": 15473.84,
      "taxableLandValue": 900000,
      "taxableImprovementValue": 561000
    },
    {
      "rollYear": 2025,
      "taxesDue": 11788.72,
      "taxableLandValue": 900000,
      "taxableImprovementValue": 561000
    },
    "…+16 more"
  ],
  "schools": [
    {
      "name": "Sand Point Elementary School",
      "rating": 6,
      "parentRating": 4,
      "gradeRanges": "PreK-5",
      "institutionType": "Public",
      "distanceMiles": "0.9",
      "numStudents": 163,
      "url": "/school/192958/WA/Seattle/Sand-Point-Elementary-School",
      "servesHome": true
    },
    {
      "name": "Eckstein Middle School",
      "rating": 9,
      "parentRating": 3,
      "gradeRanges": "6-8",
      "institutionType": "Public",
      "distanceMiles": "0.8",
      "numStudents": 1021,
      "url": "/school/138525/WA/Seattle/Eckstein-Middle-School",
      "servesHome": true
    },
    "…+1 more"
  ],
  "listingAgentPhone": null,
  "listingBrokerPhone": "206-258-6097",
  "totalViews": 915,
  "favoriteCount": 71,
  "detailPhotos": [
    "https://ssl.cdn-redfin.com/system_files/media/1251171_JPG/item_2.jpg",
    "https://ssl.cdn-redfin.com/system_files/media/1251171_JPG/item_3.jpg",
    "…+40 more"
  ]
}
```

> Fields marked *(detail)* — `images`, `propertyHistory`, `description` — are only populated when the per-item detail option is enabled.

***

### Data table

Columns marked **needs `includeDetails`** are null on a run that leaves
`includeDetails` off — they come from the per-home detail document, which is one extra
request per home and is what the `detail-row` event pays for.

| Field | Type | Description |
| --- | --- | --- |
| `propertyId` | number | Property ID |
| `listingId` | number | Listing ID |
| `mlsId` | text | MLS # |
| `url` | link | URL |
| `streetLine` | text | Address |
| `unitNumber` | text | Unit |
| `city` | text | City |
| `state` | text | State |
| `zip` | text | ZIP |
| `countryCode` | text | Country |
| `latitude` | text | Latitude |
| `longitude` | text | Longitude |
| `price` | number | Price |
| `pricePerSqFt` | number | Price / sqft |
| `hoa` | number | HOA |
| `sqFt` | number | Sq ft |
| `lotSize` | number | Lot size |
| `beds` | number | Beds |
| `baths` | number | Baths |
| `yearBuilt` | number | Year built |
| `stories` | number | Stories — search-level; Redfin omits it for most homes (null on 5 of 5 live rows, 2026-11-03) |
| `propertyType` | text | Property type |
| `mlsStatus` | text | MLS status |
| `daysOnMarket` | number | Days on market |
| `isNewConstruction` | text | New construction |
| `hasVirtualTour` | text | Virtual tour |
| `has3DTour` | text | 3D tour |
| `numPhotos` | number | # photos |
| `photos` | array | Photos — **needs `includeDetails`**: the search payload no longer carries a usable photo path, so this is filled from the detail document |
| `tour3dScan` | text | 3D scan URL — only for homes with a Redfin 3D scan |
| `listingAgentName` | text | Listing agent |
| `listingBrokerName` | text | Listing broker |
| `openHouseStart` | text | Open house start |
| `openHouseName` | text | Open house |
| `listingRemarks` | text | Remarks |
| `redfinEstimate` | number | Redfin Estimate — **needs `includeDetails`**, and Redfin withholds it on restricted listings (`isVisibilityRestricted`), so it is null on some homes |
| `apn` | text | APN — **needs `includeDetails`** |
| `countyName` | text | County — **needs `includeDetails`** |
| `saleHistory` | array | Sale history — **needs `includeDetails`**, and only for homes whose history Redfin publishes (9 events on 1 of 5 live rows, empty on the rest) |
| `taxHistory` | array | Tax history — **needs `includeDetails`**, same condition as `saleHistory` |
| `schools` | array | Schools — **needs `includeDetails`** |
| `listingAgentPhone` | text | Agent phone — **needs `includeDetails`** |
| `listingBrokerPhone` | text | Broker phone — **needs `includeDetails`** |
| `totalViews` | number | Views — **needs `includeDetails`** |
| `favoriteCount` | number | Favorites — **needs `includeDetails`** |
| `detailPhotos` | array | All photos (detail) — **needs `includeDetails`**; the same list as `photos`, kept for backwards compatibility |

***

### How much does it cost?

The current price of every event is on the **Pricing** tab of this Actor's page in Apify Store. That tab is generated from the Actor's own pricing record, so it is always current, and your plan's rung is applied automatically. A figure repeated here would be a second copy that drifts out of date.

You can cap what any single run may spend with **Max total charge**.

### Use the Redfin Scraper via API

Run it programmatically with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/redfin-api-scraper/runs?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "location": "Seattle",
  "status": "active",
  "soldWithinDays": 30,
  "includeDetails": true,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}'
```

Or with the Apify CLI: `apify call redfin-api-scraper -i input.json -o`.

***

### FAQ

**Do I need an account or API key for Redfin?**

No. The actor talks to Redfin's public/mobile API for you — you only need an Apify account.

**Do I need a proxy?**

A proxy is recommended for reliable runs; set `proxyConfiguration` (Residential is safest for geo-restricted or bot-protected sites).

**What export formats are supported?**

JSON, CSV, Excel, XML, JSONL, RSS, or live via the Apify API and dataset endpoints.

**Is scraping this legal?**

You are responsible for how you use the data. Scrape only public real-estate listing data and comply with Redfin.com's Terms and applicable law (e.g. GDPR/CCPA for personal data).

***

### How it works

The actor impersonates Redfin's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.

***

### Good to know

- Scrape only public real-estate listing data and respect Redfin.com's Terms of Service and robots policy.
- For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
- Fields can be `null` when Redfin doesn't expose them for a given record.

***

### Global real estate toolkit

Part of the **Global real estate toolkit** — real-estate listing data across major US, European, and Australian property portals:

- [Zillow API Scraper](https://apify.com/rl1987/zillow-api-scraper) — US real-estate details — address, price, beds/baths, sqft, agent — by ZPID.
- [realestate.com.au API Scraper](https://apify.com/rl1987/realestateau-api-scraper) — Scrape realestate.com.au property listings (buy/rent/sold) with full detail, media, and agent contact.
- [ImmoScout24 API Scraper](https://apify.com/rl1987/immoscout24-api-scraper) — Scrape ImmoScout24 real-estate listings (Germany) with full detail, images, and agent contact.

***

### Found this useful?

Give the **Redfin Scraper** a star on Apify and check out my other `apify-*-api-scraper` actors.

# Actor input Schema

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

City, ZIP, neighborhood or county to search (e.g. 'Seattle', '98115', 'Austin, TX'). Resolved to a Redfin region at runtime.

## `status` (type: `string`):

Which listings to return.

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

When status = Sold, only include homes sold within this many days.

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

Minimum list price (USD).

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

Maximum list price (USD).

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

Minimum number of bedrooms.

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

Minimum number of bathrooms.

## `includeDetails` (type: `boolean`):

Fetch each home's full detail (all photos, sale/tax history, facts, schools, agent contacts, Redfin Estimate). Slower — one extra request per home.

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

Maximum listings to return. 0 = all in the region.

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

Which property types to include (comma list of Redfin uipt codes). Default is all types.

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

Route requests through a proxy (Apify Proxy by default).

## Actor input object example

```json
{
  "location": "Seattle",
  "status": "active",
  "soldWithinDays": 30,
  "includeDetails": true,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "location": "Seattle",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/redfin-api-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 = {
    "location": "Seattle",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rl1987/redfin-api-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 '{
  "location": "Seattle",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rl1987/redfin-api-scraper --silent --output-dataset

```

## MCP server setup

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