# 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
- **Stats:** 3 total users, 2 monthly users, 82.1% 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# 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-result pricing** — pay only for the rows you get.
- 📤 **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

| 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 |
| `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 |
| `tour3dScan` | text | 3D scan URL |
| `listingAgentName` | text | Listing agent |
| `listingBrokerName` | text | Listing broker |
| `openHouseStart` | text | Open house start |
| `openHouseName` | text | Open house |
| `listingRemarks` | text | Remarks |
| `redfinEstimate` | number | Redfin Estimate |
| `apn` | text | APN |
| `countyName` | text | County |
| `saleHistory` | array | Sale history |
| `taxHistory` | array | Tax history |
| `schools` | array | Schools |
| `listingAgentPhone` | text | Agent phone |
| `listingBrokerPhone` | text | Broker phone |
| `totalViews` | number | Views |
| `favoriteCount` | number | Favorites |
| `detailPhotos` | array | All photos (detail) |

***

### 💰 Pricing — pay per result

This actor uses **pay-per-event** pricing: you pay only for the rows it delivers.

| You scrape | Price |
| --- | --- |
| **Listing row — basic data** | **$1.00 per 1,000 rows** |
| **Listing details — photos, sale/tax history, schools** | **$0.50 per 1,000 rows** |

***

### 🔌 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.

***

### ⭐ 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=rl1987/redfin-api-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/snf4k7HZpxJ4L84KM/builds/Jq0XeA6ELl9cfefAb/openapi.json
