# Trulia.com Real Estate Scraper (`moving_beacon-owner1/trulia-com-real-estate-scraper`) Actor

Trulia.com Real Estate Scraper is an Apify actor that scrapes property listings across US cities, extracting prices, addresses, beds, baths, sqft, property types, and listing URLs with filtering, deduplication, and residential proxy support.

- **URL**: https://apify.com/moving\_beacon-owner1/trulia-com-real-estate-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Real estate, Automation, Developer tools
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 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 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

## Trulia.com Real Estate Scraper — Apify Actor

Scrapes property listings from **Trulia.com** across any US city. Supports for-sale, for-rent, and recently-sold listings. Extracts price (USD), full address, beds/baths, square footage, lot size, property type, year built, and listing URL.

### What it does

- Handles `$2.5M` / `$1,500,000` / `$2,000/mo` price formats
- Parses addresses into separate `street_address`, `city`, `state`, `zip_code` fields
- Lot size converts acres → sqft automatically
- Server-side filters: min/max price, min bedrooms, property type
- Deduplicates by `listing_id`
- Streams results to the dataset as they're found
- Saves full HTML to the KV store on 0 results for inspection

### ⚠ Proxy is mandatory for Trulia

Trulia is owned by Zillow and ships some of the **most aggressive anti-bot** in real estate. The default proxy config in this actor is:

```json
{
  "useApifyProxy": true,
  "apifyProxyGroups": ["RESIDENTIAL"],
  "apifyProxyCountry": "US"
}
````

**Without a US residential proxy** (or another non-datacenter IP), expect HTTP 403 on every request. Apify Residential proxy costs ~$8/GB at the time of writing, but it's the only realistic way to scrape Trulia at any scale.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `state` | string | `CA` | 2-letter US state code (CA, NY, TX, FL, ...) |
| `city` | string | `San Francisco` | Trulia city name (spaces or underscores both work) |
| `listing_type` | enum | `sale` | `sale`, `rent`, or `sold` |
| `max_pages` | integer | `3` | Pages to scrape (~40 listings each) |
| `start_page` | integer | `1` | Page to start from |
| `max_listings` | integer | `0` | Hard cap (0 = unlimited) |
| `min_price_usd` | integer | `0` | Filter out below |
| `max_price_usd` | integer | `0` | Filter out above |
| `min_bedrooms` | integer | `0` | Filter out below |
| `property_type_filter` | string\[] | `[]` | Substring match (`["single family", "condo"]`) |
| `include_raw` | boolean | `false` | Include raw Trulia JSON per record |
| `request_delay_seconds` | integer | `3` | Pause between pages (Trulia rate-limits aggressively) |
| `proxy_configuration` | proxy | RESIDENTIAL+US | See above |

### Output (per dataset record)

```json
{
  "listing_id": "15121721",
  "title": "2470 43rd Ave, San Francisco, CA 94116",
  "price_usd": 1750000,
  "price_text": "$1,750,000",
  "currency": "USD",
  "street_address": "2470 43rd Ave",
  "city": "San Francisco",
  "state": "CA",
  "zip_code": "94116",
  "country": "USA",
  "bedrooms": 4,
  "bathrooms": 3,
  "area_sqft": 1821,
  "lot_size_sqft": 2500,
  "property_type": "Single Family Home",
  "listing_type": "sale",
  "year_built": 1948,
  "url": "https://www.trulia.com/home/2470-43rd-ave-san-francisco-ca-94116-15121721",
  "image_url": "https://www.trulia.com/...jpg",
  "scraped_at": "2026-05-13T07:50:00+00:00"
}
```

### URL patterns this actor builds

| listing\_type | URL |
|---|---|
| `sale` | `https://www.trulia.com/CA/San_Francisco/` |
| `rent` | `https://www.trulia.com/for_rent/San_Francisco,CA/` |
| `sold` | `https://www.trulia.com/sold/San_Francisco,CA/` |

With pagination: `/{N}_p/` appended for page ≥ 2.

# Actor input Schema

## `state` (type: `string`):

US state abbreviation, e.g. CA, NY, TX, FL

## `city` (type: `string`):

City name. Use underscores or spaces between words (e.g. 'San Francisco' or 'San\_Francisco'). Trulia is case-sensitive on cities.

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

What kind of listings to scrape

## `max_pages` (type: `integer`):

Maximum number of result pages to scrape (~40 listings each)

## `start_page` (type: `integer`):

Page number to start scraping from (1-indexed)

## `max_listings` (type: `integer`):

Hard cap on total listings (0 = unlimited)

## `min_price_usd` (type: `integer`):

Filter out listings below this price. 0 = no filter.

## `max_price_usd` (type: `integer`):

Filter out listings above this price. 0 = no filter.

## `min_bedrooms` (type: `integer`):

Filter out listings with fewer beds. 0 = no filter.

## `property_type_filter` (type: `array`):

Keep only listings whose type matches one of these (substring, case-insensitive). Examples: 'single family', 'condo', 'townhouse', 'multi family', 'land', 'mobile'.

## `include_raw` (type: `boolean`):

Include the raw Trulia object in each record (large)

## `request_delay_seconds` (type: `integer`):

How long to pause between paginated requests. Trulia rate-limits aggressively — keep ≥2.

## `proxy_configuration` (type: `object`):

Proxy settings. STRONGLY RECOMMENDED for Trulia: enable Apify Proxy → group RESIDENTIAL → country US. Trulia (owned by Zillow) blocks most datacenter IP ranges. If you enable Apify Proxy without choosing a group, this actor auto-upgrades to RESIDENTIAL+US.

## Actor input object example

```json
{
  "state": "CA",
  "city": "San Francisco",
  "listing_type": "sale",
  "max_pages": 3,
  "start_page": 1,
  "max_listings": 0,
  "min_price_usd": 0,
  "max_price_usd": 0,
  "min_bedrooms": 0,
  "property_type_filter": [],
  "include_raw": false,
  "request_delay_seconds": 3,
  "proxy_configuration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/trulia-com-real-estate-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/trulia-com-real-estate-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 '{}' |
apify call moving_beacon-owner1/trulia-com-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=moving_beacon-owner1/trulia-com-real-estate-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trulia.com Real Estate Scraper",
        "description": "Trulia.com Real Estate Scraper is an Apify actor that scrapes property listings across US cities, extracting prices, addresses, beds, baths, sqft, property types, and listing URLs with filtering, deduplication, and residential proxy support.",
        "version": "0.0",
        "x-build-id": "0eff0dlzXdO7fOKOT"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/moving_beacon-owner1~trulia-com-real-estate-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-trulia-com-real-estate-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/moving_beacon-owner1~trulia-com-real-estate-scraper/runs": {
            "post": {
                "operationId": "runs-sync-moving_beacon-owner1-trulia-com-real-estate-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/moving_beacon-owner1~trulia-com-real-estate-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-moving_beacon-owner1-trulia-com-real-estate-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",
                "required": [
                    "state",
                    "city",
                    "listing_type"
                ],
                "properties": {
                    "state": {
                        "title": "State (2-letter code)",
                        "pattern": "^[A-Za-z]{2}$",
                        "type": "string",
                        "description": "US state abbreviation, e.g. CA, NY, TX, FL",
                        "default": "CA"
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "City name. Use underscores or spaces between words (e.g. 'San Francisco' or 'San_Francisco'). Trulia is case-sensitive on cities.",
                        "default": "San Francisco"
                    },
                    "listing_type": {
                        "title": "Listing type",
                        "enum": [
                            "sale",
                            "rent",
                            "sold"
                        ],
                        "type": "string",
                        "description": "What kind of listings to scrape",
                        "default": "sale"
                    },
                    "max_pages": {
                        "title": "Max Pages",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum number of result pages to scrape (~40 listings each)",
                        "default": 3
                    },
                    "start_page": {
                        "title": "Start Page",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Page number to start scraping from (1-indexed)",
                        "default": 1
                    },
                    "max_listings": {
                        "title": "Max Listings (cap)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on total listings (0 = unlimited)",
                        "default": 0
                    },
                    "min_price_usd": {
                        "title": "Min price (USD)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Filter out listings below this price. 0 = no filter.",
                        "default": 0
                    },
                    "max_price_usd": {
                        "title": "Max price (USD)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Filter out listings above this price. 0 = no filter.",
                        "default": 0
                    },
                    "min_bedrooms": {
                        "title": "Min bedrooms",
                        "minimum": 0,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Filter out listings with fewer beds. 0 = no filter.",
                        "default": 0
                    },
                    "property_type_filter": {
                        "title": "Property type filter (optional)",
                        "type": "array",
                        "description": "Keep only listings whose type matches one of these (substring, case-insensitive). Examples: 'single family', 'condo', 'townhouse', 'multi family', 'land', 'mobile'.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "include_raw": {
                        "title": "Include raw JSON",
                        "type": "boolean",
                        "description": "Include the raw Trulia object in each record (large)",
                        "default": false
                    },
                    "request_delay_seconds": {
                        "title": "Delay between pages (seconds)",
                        "minimum": 0,
                        "maximum": 30,
                        "type": "integer",
                        "description": "How long to pause between paginated requests. Trulia rate-limits aggressively — keep ≥2.",
                        "default": 3
                    },
                    "proxy_configuration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. STRONGLY RECOMMENDED for Trulia: enable Apify Proxy → group RESIDENTIAL → country US. Trulia (owned by Zillow) blocks most datacenter IP ranges. If you enable Apify Proxy without choosing a group, this actor auto-upgrades to RESIDENTIAL+US.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
