# Scraper for Redfin Property Listings (`powerai/scraper-for-redfin-property-listings`) Actor

Search and scrape real estate properties from Redfin with advanced filtering and sorting options using our API wrapper service

- **URL**: https://apify.com/powerai/scraper-for-redfin-property-listings.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Real estate, E-commerce, Other
- **Stats:** 50 total users, 6 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 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/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 Property Search Scraper

This actor searches for real estate properties on Redfin using our API wrapper service to find property listings based on various criteria.

### Features

- **Comprehensive Property Search**: Search properties by location, price, features, and more
- **Advanced Filtering**: Filter by price range, bedrooms, bathrooms, square footage, and property type
- **Multiple Sorting Options**: Sort results by price, newest, square footage, lot size, and more
- **Real-time Results**: Get instant property listings from Redfin
- **API Integration**: Uses our secure API wrapper service
- **Error Handling**: Comprehensive error handling and logging
- **Automatic Pagination**: Automatically fetches multiple pages with maximum efficiency

### Input

The actor accepts the following input parameters:

#### Required Parameters

- **location**: Location to search for properties (address or zip code)

#### Optional Parameters

- **sub\_location**: Sub-location within the main location
- **search\_by**: Search type (places, schools, agents, buildings, addresses)
- **sort**: Sort order (Recommended, Newest, PriceLowToHigh, PriceHighToLow, SquareFeet, LotSize, PriceSqft)
- **search\_type**: Search type (Sold, ForSale)
- **sold\_within**: Time range for sold properties (Last-1Week, Last-1Month, Last-3Months, Last-6Months, Last-1Year, Last-2Years, Last-3Years, Last-5Years)
- **min\_price**: Minimum price
- **max\_price**: Maximum price
- **home\_type**: Property type (comma-separated)
- **min\_bedroom**: Minimum number of bedrooms
- **max\_bedroom**: Maximum number of bedrooms
- **min\_bathroom**: Minimum number of bathrooms
- **status**: Property status (ComingSoon, Active)
- **time\_on\_redfin**: Time on Redfin (NewListings, LessThan3Days, LessThan7Days, LessThan14Days, LessThan30Days, MoreThan7Days, MoreThan14Days, MoreThan30Days, MoreThan45Days, MoreThan60Days, MoreThan90Days, MoreThan180Days)
- **min\_square\_feet**: Minimum square footage
- **max\_square\_feet**: Maximum square footage
- **min\_lot\_size**: Minimum lot size
- **max\_lot\_size**: Maximum lot size
- **min\_stories**: Minimum number of stories
- **max\_stories**: Maximum number of stories
- **min\_year\_built**: Minimum year built
- **max\_year\_built**: Maximum year built
- **garage\_spots**: Number of garage spots (1-5)
- **pool\_type**: Pool type (PrivatePool, CommunityPool, PrivateOrCommunityPool, NoPrivatePool)
- **keyword\_search**: Keyword search
- **listing\_type**: Listing type (comma-separated)
- **maxResults**: Maximum number of properties to fetch (default: 15, max: 50000)

### Output

The actor outputs each property as an individual data item. Each property contains:

```json
{
    "propertyId": 12345,
    "listingId": 67890,
    "price": {
        "level": 1,
        "value": 750000
    },
    "beds": 3,
    "baths": 2,
    "sqFt": {
        "level": 1,
        "value": 2000
    },
    "lotSize": {
        "level": 1,
        "value": 5000
    },
    "yearBuilt": {
        "level": 1,
        "value": 1995
    },
    "stories": 2,
    "location": {
        "level": 1,
        "value": "123 Main St, San Francisco, CA 94102"
    },
    "streetLine": {
        "level": 1,
        "value": "123 Main St"
    },
    "city": "San Francisco",
    "state": "CA",
    "zip": "94102",
    "postalCode": {
        "level": 1,
        "value": "94102"
    },
    "latLong": {
        "level": 1,
        "value": {
            "latitude": 37.7749,
            "longitude": -122.4194
        }
    },
    "listingRemarks": "Beautiful family home in prime location",
    "listingType": 1,
    "mlsStatus": "Active",
    "mlsId": {
        "label": "MLS#",
        "value": "1234567"
    },
    "listingAgent": {
        "name": "John Smith",
        "redfinAgentId": 12345
    },
    "photos": {
        "items": [
            "https://example.com/photo1.jpg",
            "https://example.com/photo2.jpg"
        ],
        "level": 1,
        "value": "https://example.com/photo1.jpg"
    },
    "url": "https://www.redfin.com/property/12345",
    "scanUrl": "https://www.redfin.com/scan/12345",
    "dom": {
        "level": 1,
        "value": 15
    },
    "timeOnRedfin": {
        "date": 1640995200000,
        "level": 1,
        "value": 15
    },
    "openHouseStart": 1640995200000,
    "openHouseEnd": 1640998800000,
    "openHouseStartFormatted": "2022-01-01T10:00:00Z",
    "openHouseEventName": "Open House",
    "openHouseText": "Open House Sunday 10AM-1PM",
    "sashes": [
        {
            "isActiveKeyListing": true,
            "isRedfin": false,
            "lastSaleDate": "2020-01-01",
            "lastSalePrice": "$650,000",
            "sashType": 1,
            "sashTypeColor": "#FF0000",
            "sashTypeId": 1,
            "sashTypeName": "Active"
        }
    ],
    "keyFacts": [
        {
            "description": "3 beds, 2 baths",
            "rank": 1
        }
    ],
    "pricePerSqFt": {
        "level": 1,
        "value": 375
    },
    "hoa": {
        "level": 1,
        "value": 0
    },
    "isHoaFrequencyKnown": false,
    "isHot": false,
    "isNewConstruction": false,
    "isRedfin": false,
    "isShortlisted": false,
    "isViewedListing": false,
    "has3DTour": true,
    "hasInsight": true,
    "hasVideoTour": true,
    "hasVirtualTour": true,
    "hideSalePrice": false,
    "showAddressOnMap": true,
    "showDatasourceLogo": true,
    "showMlsId": true,
    "soldDate": null,
    "partialBaths": 0,
    "fullBaths": 2,
    "propertyType": 1,
    "uiPropertyType": 1,
    "businessMarketId": 1,
    "marketId": 1,
    "dataSourceId": 1,
    "countryCode": "US",
    "timeZone": "America/Los_Angeles",
    "remarksAccessLevel": 1,
    "primaryPhotoDisplayLevel": 1,
    "searchStatus": 1,
    "unitNumber": {
        "level": 1
    },
    "additionalPhotosInfo": [],
    "alternatePhotosInfo": {
        "groupCode": "main",
        "mediaListIndex": 0,
        "mediaListType": "photo",
        "positionSpec": [0, 0],
        "type": 1
    },
    "newConstructionCommunityInfo": null,
    "originalTimeOnRedfin": {
        "date": 1640995200000,
        "level": 1,
        "value": 15
    },
    "posterFrameUrl": "https://example.com/poster.jpg",
    "scrapedAt": "2025-01-14T10:30:00.000Z"
}
```

### Usage

1. **Input Configuration**: Provide location and search criteria
2. **Set Max Results**: Specify how many properties you want to fetch (up to 50000)
3. **Run the Actor**: Execute the actor with your input
4. **Get Results**: Receive individual property listings in the dataset

### Examples

#### Basic Search by Location

```json
{
  "location": "San Francisco, CA",
  "maxResults": 100
}
```

#### Search with Price Filter

```json
{
  "location": "San Francisco, CA",
  "min_price": 500000,
  "max_price": 1000000,
  "sort": "PriceLowToHigh",
  "maxResults": 50
}
```

#### Search with Property Features

```json
{
  "location": "San Francisco, CA",
  "min_bedroom": 2,
  "max_bedroom": 4,
  "min_bathroom": 2,
  "min_square_feet": 1500,
  "home_type": "Single Family",
  "maxResults": 75
}
```

#### Search for Sold Properties

```json
{
  "location": "San Francisco, CA",
  "search_type": "Sold",
  "sold_within": "Last-1Year",
  "sort": "Newest",
  "maxResults": 25
}
```

### Property Data Structure

Each property listing includes:

#### Basic Information

- **propertyId**: Unique property identifier
- **listingId**: MLS listing ID
- **price**: Property price with level information
- **beds/baths**: Number of bedrooms and bathrooms
- **sqFt**: Square footage with level information
- **lotSize**: Lot size with level information

#### Location Information

- **location**: Full address
- **streetLine**: Street address
- **city/state/zip**: City, state, and zip code
- **latLong**: Latitude and longitude coordinates
- **postalCode**: Postal code

#### Property Details

- **yearBuilt**: Year the property was built
- **stories**: Number of stories
- **listingRemarks**: Property description
- **listingType**: Type of listing
- **mlsStatus**: MLS status
- **mlsId**: MLS identification

#### Agent Information

- **listingAgent**: Listing agent details
  - **name**: Agent name
  - **redfinAgentId**: Redfin agent ID

#### Media and Photos

- **photos**: Property photos
  - **items**: Array of photo URLs
  - **level**: Display level
  - **value**: Primary photo URL
- **url**: Redfin property page URL
- **scanUrl**: Redfin scan page URL

#### Market Information

- **dom**: Days on market
- **timeOnRedfin**: Time on Redfin platform
- **openHouseStart/End**: Open house times
- **openHouseText**: Open house description

#### Property Features

- **keyFacts**: Key property facts
- **pricePerSqFt**: Price per square foot
- **hoa**: HOA fees
- **has3DTour/hasVideoTour/hasVirtualTour**: Tour availability
- **isHot/isNewConstruction**: Property status flags

#### Listing Information

- **sashes**: Listing badges and information
- **status**: Property status (ComingSoon, Active)

### Search Parameters

#### Sort Options

- **Recommended**: Redfin's recommended order
- **Newest**: Newest listings first
- **PriceLowToHigh/PriceHighToLow**: Price sorting
- **SquareFeet**: Square footage sorting
- **LotSize**: Lot size sorting
- **PriceSqft**: Price per square foot sorting

#### Filter Options

- **search\_type**: Sold or ForSale properties
- **sold\_within**: Time range for sold properties
- **min\_price/max\_price**: Price range filtering
- **min\_bedroom/max\_bedroom**: Bedroom range
- **min\_bathroom**: Minimum bathrooms
- **min\_square\_feet/max\_square\_feet**: Square footage range
- **home\_type**: Property type filtering
- **status**: Property status filtering

#### Location Search

- **location**: Primary search location (required)
- **sub\_location**: Sub-location within main area
- **search\_by**: Search method (places, schools, agents, etc.)

### Use Cases

#### Home Buying

- Find properties in target neighborhoods
- Compare prices and features
- Track market trends

#### Investment Analysis

- Research sold properties for market analysis
- Identify investment opportunities
- Analyze price trends

#### Market Research

- Study property types and features
- Analyze days on market
- Research agent performance

#### Property Monitoring

- Track new listings
- Monitor price changes
- Follow open house schedules

### Support

For technical support or questions about this actor, please contact our support team.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Redfin or any of its subsidiaries. Redfin is a trademark of its respective owner. All trademarks mentioned are the property of their respective owners.

# Actor input Schema

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

Location to search for properties (address or zip code)

## `sub_location` (type: `string`):

Sub-location within the main location

## `search_by` (type: `string`):

Search type

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

Sort order for results

## `search_type` (type: `string`):

Search type

## `sold_within` (type: `string`):

Time range for sold properties

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

Minimum price

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

Maximum price

## `home_type` (type: `string`):

Property type (comma-separated)

## `min_bedroom` (type: `integer`):

Minimum number of bedrooms

## `max_bedroom` (type: `integer`):

Maximum number of bedrooms

## `min_bathroom` (type: `integer`):

Minimum number of bathrooms

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

Property status

## `time_on_redfin` (type: `string`):

Time on Redfin

## `min_square_feet` (type: `integer`):

Minimum square footage

## `max_square_feet` (type: `integer`):

Maximum square footage

## `min_lot_size` (type: `integer`):

Minimum lot size

## `max_lot_size` (type: `integer`):

Maximum lot size

## `min_stories` (type: `integer`):

Minimum number of stories

## `max_stories` (type: `integer`):

Maximum number of stories

## `min_year_built` (type: `integer`):

Minimum year built

## `max_year_built` (type: `integer`):

Maximum year built

## `garage_spots` (type: `integer`):

Number of garage spots (1-5)

## `pool_type` (type: `string`):

Pool type

## `keyword_search` (type: `string`):

Keyword search

## `listing_type` (type: `string`):

Listing type (comma-separated)

## `maxResults` (type: `integer`):

Maximum number of properties to fetch (default: 15, max: 50000)

## Actor input object example

```json
{
  "location": "Austin",
  "search_by": "places",
  "sort": "Recommended",
  "search_type": "ForSale",
  "maxResults": 100
}
```

# 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": "Austin",
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/scraper-for-redfin-property-listings").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": "Austin",
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/scraper-for-redfin-property-listings").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": "Austin",
  "maxResults": 100
}' |
apify call powerai/scraper-for-redfin-property-listings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,powerai/scraper-for-redfin-property-listings"
        }
    }
}

```

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/yAatbHtiQLZaHsCds/builds/5Amzo7ZnmEehDG8CT/openapi.json
