# Trulia Property Scraper (`crawlerbros/trulia-scraper`) Actor

Scrape property listings from Trulia, for sale, for rent, and sold. Supports search pages and direct property URLs. No login required.

- **URL**: https://apify.com/crawlerbros/trulia-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Real estate, Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Property Scraper

Extract publicly available property listing data from [Trulia](https://www.trulia.com) — no account or subscription required. Supports for-sale, for-rent, and sold listings. Accepts Trulia search pages and direct property URLs.

### What This Scraper Does

This actor fetches Trulia listing pages and extracts all publicly visible metadata: address, price, beds/baths, square footage, property type, listing date, agent details, photos, and more. With **Fetch Property Details** enabled, it also retrieves price history, tax history, full feature lists, and open house schedules.

### Input

| Field | Type | Description |
|---|---|---|
| **Start URLs** | List of strings | Trulia search pages (e.g. `https://www.trulia.com/for_sale/Austin,TX/`) or individual property pages. Apply filters on Trulia first, then paste the URL. |
| **Max Items** | Integer | Maximum number of listings to return from search pages (1–10,000). Default: 50. Ignored for direct property URLs. |
| **Fetch Property Details** | Boolean | Fetch the full detail page for each listing. Adds price history, tax history, features, and open house data. Doubles request count. Default: false. |
| **Proxy Configuration** | Proxy object | Residential proxy is **required** for reliable scraping. Trulia's PerimeterX protection blocks datacenter IPs. Defaults to Apify Residential proxy. |

#### How to Use Filters

Apply any filter directly on Trulia's website (price range, beds, baths, property type, neighbourhood, etc.), then copy the URL from your browser's address bar and paste it as a Start URL. The scraper will paginate through all results matching those filters.

**Examples:**
- For-sale homes in Austin under $600K: `https://www.trulia.com/for_sale/Austin,TX/0-600000_price/`
- 3+ bedroom rentals in NYC: `https://www.trulia.com/for_rent/New_York,NY/3p_beds/`
- Recently sold condos in Boston: `https://www.trulia.com/sold/Boston,MA/CONDO_type/`

### Output

Each record represents one property listing. Fields marked `?` are optional and appear only when Trulia makes them publicly available.

| Field | Type | Description |
|---|---|---|
| `url` | string | Canonical Trulia property URL |
| `listingType` | string | `for_sale`, `for_rent`, or `sold` |
| `propertyType` | string? | e.g. Single Family Residential, Condo, Townhouse |
| `price` | integer? | Price in USD |
| `priceLabel` | string? | Formatted price (e.g. `$485,000`) |
| `address` | string? | Street address |
| `city` | string? | City |
| `state` | string? | State abbreviation |
| `zipCode` | string? | ZIP code |
| `neighborhood` | string? | Neighbourhood name |
| `latitude` | number? | Latitude |
| `longitude` | number? | Longitude |
| `bedrooms` | integer? | Number of bedrooms |
| `bathrooms` | number? | Number of bathrooms |
| `sqft` | integer? | Living area in square feet |
| `photos` | string[]? | Photo URLs |
| `listingDate` | string? | Date listed (ISO 8601) |
| `daysOnMarket` | integer? | Days on market |
| `agentName` | string? | Listing agent name |
| `brokerName` | string? | Brokerage name |
| `mlsId` | string? | MLS listing number |
| `priceHistory` | array? | Price change history *(requires Fetch Details)* |
| `taxHistory` | array? | Tax assessment history *(requires Fetch Details)* |
| `features` | object? | Full feature categories *(requires Fetch Details)* |
| `openHouses` | array? | Scheduled open houses *(requires Fetch Details)* |
| `agentPhone` | string? | Agent phone number *(requires Fetch Details)* |
| `scrapedAt` | string | ISO 8601 UTC scrape timestamp |

#### Error Records

If a listing cannot be fetched or parsed, the record contains:

| Field | Description |
|---|---|
| `inputUrl` | The URL that was attempted |
| `error` | Human-readable error message |
| `scrapedAt` | Timestamp |

### Frequently Asked Questions

**Do I need a Trulia or Zillow account?**
No. This scraper only extracts data from public Trulia pages visible to any visitor without logging in.

**Is a proxy required?**
Yes, residential proxy is required when running on Apify cloud. Trulia uses PerimeterX bot detection that blocks datacenter IP addresses. The scraper defaults to Apify Residential proxy — no extra configuration needed. Running locally without proxy may work depending on your IP.

**How many listings can I get from one search URL?**
Trulia displays up to 40 listings per page. The scraper paginates automatically. A typical city search returns 100–2,000+ listings depending on market size. Use Max Items to cap the total.

**What data is NOT available?**
Fields requiring a Trulia/Zillow account: full school ratings and reports, detailed neighbourhood demographics, crime scores, mortgage pre-qualification data, full contact phone numbers (partial numbers may appear publicly), and private listing notes.

**Can I scrape sold listings?**
Yes. Use a URL starting with `https://www.trulia.com/sold/` — for example `https://www.trulia.com/sold/Austin,TX/`.

**What is the difference between search mode and direct property mode?**
Search mode paginates a search results page and collects many listings. Direct mode fetches a single property page — useful when you already have a list of specific property URLs. Both modes can be mixed in the same run.

# Actor input Schema

## `startUrls` (type: `array`):

Trulia search result pages (e.g. https://www.trulia.com/for_sale/Austin,TX/) or individual property pages. Apply filters on Trulia first, then paste the URL here.
## `maxItems` (type: `integer`):

Maximum number of property records to return from search pages. Ignored for direct property URLs.
## `fetchDetails` (type: `boolean`):

Fetch the full property detail page for each search result. Adds price history, tax history, features, open house schedule, and agent phone. Doubles the number of HTTP requests.
## `proxyConfiguration` (type: `object`):

Proxy configuration. Trulia's PerimeterX protection blocks datacenter IPs — residential proxy is required for reliable scraping on Apify cloud.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.trulia.com/for_sale/Austin,TX/"
  ],
  "maxItems": 3,
  "fetchDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
````

# Actor output Schema

## `results` (type: `string`):

Dataset containing scraped property records

# 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 = {
    "startUrls": [
        "https://www.trulia.com/for_sale/Austin,TX/"
    ],
    "maxItems": 3,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/trulia-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 = {
    "startUrls": ["https://www.trulia.com/for_sale/Austin,TX/"],
    "maxItems": 3,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/trulia-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 '{
  "startUrls": [
    "https://www.trulia.com/for_sale/Austin,TX/"
  ],
  "maxItems": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call crawlerbros/trulia-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trulia Property Scraper",
        "description": "Scrape property listings from Trulia, for sale, for rent, and sold. Supports search pages and direct property URLs. No login required.",
        "version": "1.0",
        "x-build-id": "OZFD2X89EZQFWhU7t"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~trulia-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-trulia-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/crawlerbros~trulia-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-trulia-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/crawlerbros~trulia-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-trulia-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": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Trulia search result pages (e.g. https://www.trulia.com/for_sale/Austin,TX/) or individual property pages. Apply filters on Trulia first, then paste the URL here.",
                        "default": [
                            "https://www.trulia.com/for_sale/Austin,TX/"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of property records to return from search pages. Ignored for direct property URLs.",
                        "default": 3
                    },
                    "fetchDetails": {
                        "title": "Fetch Property Details",
                        "type": "boolean",
                        "description": "Fetch the full property detail page for each search result. Adds price history, tax history, features, open house schedule, and agent phone. Doubles the number of HTTP requests.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy configuration. Trulia's PerimeterX protection blocks datacenter IPs — residential proxy is required for reliable scraping on Apify cloud.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
