# Redfin Property Search Scraper (`thescrappa/redfin-property-search-scraper`) Actor

Scrape Redfin property search listings with prices, beds, baths, square footage, addresses, coordinates, URLs, MLS numbers, and listing IDs.

- **URL**: https://apify.com/thescrappa/redfin-property-search-scraper.md
- **Developed by:** [Scrappa](https://apify.com/thescrappa) (community)
- **Categories:** Business, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Property Search Scraper

Scrape Redfin property search results by region, market, price, beds, baths,
property type, status, and page. The actor is a thin Apify wrapper around
Scrappa's Redfin API and saves one dataset item per property listing.

Recommended paid pricing: **$0.30 per 1,000 saved property listings** using the
`property-result` pay-per-event charge.

### Example input

```json
{
  "region_id": 16163,
  "region_type": 6,
  "market": "seattle",
  "num_homes": 50,
  "page": 1
}
````

### Batch input

Use `searches` to run multiple Redfin searches in one Apify run:

```json
{
  "searches": [
    { "region_id": 16163, "region_type": 6, "market": "seattle", "num_homes": 25 },
    { "region_id": 11203, "region_type": 6, "market": "socal", "num_homes": 25 }
  ]
}
```

### Output fields

Common top-level fields include:

- `property_id`
- `listing_id`
- `address`
- `city`
- `state`
- `zip`
- `price`
- `beds`
- `baths`
- `sqft`
- `lot_size`
- `year_built`
- `property_type`
- `property_type_label`
- `status`
- `latitude`
- `longitude`
- `url`
- `mls_number`
- `request_search_index`
- `request_region_id`
- `request_region_type`
- `request_market`
- `request_min_price`
- `request_max_price`
- `request_num_beds`
- `request_num_baths`
- `request_property_types`
- `request_status`
- `request_status_label`
- `request_sold_within_days`
- `request_num_homes`
- `request_page`

# Actor input Schema

## `region_id` (type: `integer`):

Redfin region identifier from Scrappa's /api/redfin/locations endpoint. Example: 16163 for Seattle.

## `region_type` (type: `string`):

Redfin region type: 1=neighborhood, 2=ZIP, 4=postal code, 5=county, 6=city.

## `market` (type: `string`):

Redfin market identifier from the locations endpoint, such as seattle, socal, dc, or nyc.

## `min_price` (type: `integer`):

Minimum listing price.

## `max_price` (type: `integer`):

Maximum listing price.

## `num_beds` (type: `integer`):

Minimum number of bedrooms.

## `num_baths` (type: `number`):

Minimum number of bathrooms.

## `property_types` (type: `string`):

Comma-separated Redfin property type IDs from 1-8. Leave blank for all types.

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

Listing status: 1=active, 9=all, 130=pending, 131=active plus pending.

## `sold_within_days` (type: `integer`):

Include properties sold within this many days. Required for some sold-listing workflows.

## `num_homes` (type: `integer`):

Number of listings to return for each search.

## `page` (type: `integer`):

Results page to fetch.

## `searches` (type: `array`):

Run multiple Redfin region searches in one Apify run. When provided, top-level search fields are ignored.

## Actor input object example

```json
{
  "region_id": 16163,
  "region_type": "6",
  "market": "seattle",
  "property_types": "1,2,3",
  "status": "9",
  "num_homes": 50,
  "page": 1
}
```

# 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 = {
    "property_types": "1,2,3"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrappa/redfin-property-search-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 = { "property_types": "1,2,3" }

# Run the Actor and wait for it to finish
run = client.actor("thescrappa/redfin-property-search-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 '{
  "property_types": "1,2,3"
}' |
apify call thescrappa/redfin-property-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=thescrappa/redfin-property-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Redfin Property Search Scraper",
        "description": "Scrape Redfin property search listings with prices, beds, baths, square footage, addresses, coordinates, URLs, MLS numbers, and listing IDs.",
        "version": "1.0",
        "x-build-id": "G1s5pWq96XNyC7SYX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/thescrappa~redfin-property-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-thescrappa-redfin-property-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/thescrappa~redfin-property-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-thescrappa-redfin-property-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/thescrappa~redfin-property-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-thescrappa-redfin-property-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "region_id": {
                        "title": "Region ID",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Redfin region identifier from Scrappa's /api/redfin/locations endpoint. Example: 16163 for Seattle.",
                        "default": 16163
                    },
                    "region_type": {
                        "title": "Region Type",
                        "enum": [
                            "1",
                            "2",
                            "4",
                            "5",
                            "6"
                        ],
                        "type": "string",
                        "description": "Redfin region type: 1=neighborhood, 2=ZIP, 4=postal code, 5=county, 6=city.",
                        "default": "6"
                    },
                    "market": {
                        "title": "Market",
                        "maxLength": 30,
                        "type": "string",
                        "description": "Redfin market identifier from the locations endpoint, such as seattle, socal, dc, or nyc.",
                        "default": "seattle"
                    },
                    "min_price": {
                        "title": "Minimum Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum listing price."
                    },
                    "max_price": {
                        "title": "Maximum Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum listing price."
                    },
                    "num_beds": {
                        "title": "Minimum Bedrooms",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Minimum number of bedrooms."
                    },
                    "num_baths": {
                        "title": "Minimum Bathrooms",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "number",
                        "description": "Minimum number of bathrooms."
                    },
                    "property_types": {
                        "title": "Property Types",
                        "type": "string",
                        "description": "Comma-separated Redfin property type IDs from 1-8. Leave blank for all types."
                    },
                    "status": {
                        "title": "Listing Status",
                        "enum": [
                            "1",
                            "9",
                            "130",
                            "131"
                        ],
                        "type": "string",
                        "description": "Listing status: 1=active, 9=all, 130=pending, 131=active plus pending.",
                        "default": "9"
                    },
                    "sold_within_days": {
                        "title": "Sold Within Days",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Include properties sold within this many days. Required for some sold-listing workflows."
                    },
                    "num_homes": {
                        "title": "Results Per Search",
                        "minimum": 1,
                        "maximum": 450,
                        "type": "integer",
                        "description": "Number of listings to return for each search.",
                        "default": 50
                    },
                    "page": {
                        "title": "Page",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Results page to fetch.",
                        "default": 1
                    },
                    "searches": {
                        "title": "Batch Searches",
                        "maxItems": 25,
                        "type": "array",
                        "description": "Run multiple Redfin region searches in one Apify run. When provided, top-level search fields are ignored.",
                        "items": {
                            "type": "object",
                            "required": [
                                "region_id",
                                "region_type",
                                "market"
                            ],
                            "properties": {
                                "region_id": {
                                    "title": "Region ID",
                                    "type": "integer",
                                    "description": "Redfin region identifier.",
                                    "minimum": 1
                                },
                                "region_type": {
                                    "title": "Region Type",
                                    "type": "integer",
                                    "description": "Redfin region type ID: 1, 2, 4, 5, or 6."
                                },
                                "market": {
                                    "title": "Market",
                                    "type": "string",
                                    "description": "Redfin market identifier.",
                                    "maxLength": 30
                                },
                                "min_price": {
                                    "title": "Minimum Price",
                                    "type": "integer",
                                    "description": "Minimum listing price.",
                                    "minimum": 0
                                },
                                "max_price": {
                                    "title": "Maximum Price",
                                    "type": "integer",
                                    "description": "Maximum listing price.",
                                    "minimum": 0
                                },
                                "num_beds": {
                                    "title": "Minimum Bedrooms",
                                    "type": "integer",
                                    "description": "Minimum number of bedrooms.",
                                    "minimum": 0,
                                    "maximum": 10
                                },
                                "num_baths": {
                                    "title": "Minimum Bathrooms",
                                    "type": "number",
                                    "description": "Minimum number of bathrooms.",
                                    "minimum": 0,
                                    "maximum": 10
                                },
                                "property_types": {
                                    "title": "Property Types",
                                    "type": "string",
                                    "description": "Comma-separated Redfin property type IDs from 1-8."
                                },
                                "status": {
                                    "title": "Listing Status",
                                    "type": "integer",
                                    "description": "Redfin listing status ID: 1, 9, 130, or 131."
                                },
                                "sold_within_days": {
                                    "title": "Sold Within Days",
                                    "type": "integer",
                                    "description": "Include properties sold within this many days.",
                                    "minimum": 1,
                                    "maximum": 365
                                },
                                "num_homes": {
                                    "title": "Results Per Search",
                                    "type": "integer",
                                    "description": "Number of listings to return for this search.",
                                    "minimum": 1,
                                    "maximum": 450
                                },
                                "page": {
                                    "title": "Page",
                                    "type": "integer",
                                    "description": "Results page to fetch.",
                                    "minimum": 1
                                }
                            }
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
