# Trulia Scraper: Homes for Sale, Rentals and Sold Prices (`benthepythondev/trulia-scraper`) Actor

Trulia scraper for US real estate: export homes for sale, rentals and recently sold homes by city, ZIP code or Trulia search URL. Price, beds, baths, sqft, price per sqft, agent and broker, photos, GPS. Duplicates removed and never charged. JSON, CSV, API.

- **URL**: https://apify.com/benthepythondev/trulia-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.68 / 1,000 listings

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

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🏡 Trulia Scraper: Homes for Sale, Rentals and Sold Prices

Export Trulia listings for any US city, ZIP code or Trulia search URL: homes for sale, apartments and houses for rent, and recently sold homes. Each row is one home or rental building with price, beds, baths, square feet, price per square foot, listing agent and broker, photos and GPS coordinates. **$0.80 per 1,000 listings plus $0.00005 per run, and a home that shows up twice is saved and charged once.**

- Mix several cities, ZIP codes and pasted Trulia URLs in one run
- For sale, for rent or recently sold, with bedroom and price filters
- Duplicates across pages and searches are removed before they reach your dataset, so you never pay for them
- If Trulia blocks a search, the run says so in its status message instead of handing you an empty dataset
- Export to JSON, CSV or Excel, call it from the API, or connect it to Make, Zapier or n8n

### 💰 What does it cost?

| Plan | Per 1,000 listings |
|---|---|
| Free | $0.80 |
| Bronze | $0.76 |
| Silver | $0.72 |
| Gold and above | $0.68 |

These prices apply from 2026-11-27; until then this Actor's earlier price of $2.00 per 1,000 listings stays in force, as Apify requires 14 days' notice for a price change. Plus $0.00005 per run start. Not charged: duplicate homes and searches Trulia blocked. An empty search saves no row; its status message and OUTPUT record say "no_results". In our tests 130 listings from three searches took about 15 seconds.

### 🔎 What is the Trulia Scraper?

It is an Apify Actor that reads Trulia's search results for the places you name, page by page, and turns every listing card into a structured row. You get what a buyer or renter sees on trulia.com, without a browser and without copying pages by hand.

A search for "Austin, TX" with the listing type "For rent" returns apartment communities such as a South Lamar building with its rent range ($1,369 to $2,838 a month), studio to 2-bedroom units, 450 to 1,139 square feet and tags like "SPECIAL OFFER" and "PET FRIENDLY". A "Recently sold" search for San Francisco returns the sale price and the sale date.

#### What data does it extract?

- **Identity:** `listingId`, `listingType` (`for_sale`, `for_rent`, `sold`), `name` (rental community), `url`
- **Location:** `address`, `street`, `city`, `state`, `zip`, `latitude`, `longitude`
- **Price:** `price` (single price), `priceMin` and `priceMax` (rent ranges of buildings), `priceText`, `priceKind`, `pricePerSqft`
- **Size:** `beds`, `bedsMin`, `bedsMax`, `baths`, `bathsMin`, `bathsMax`, `sqft`, `sqftMin`, `sqftMax`, `lotSize`
- **Listing:** `propertyType`, `listingCategory` (resale, new construction, rental community...), `isForeclosure`, `dateListed`, `soldDate`, `tags` (NEW, PRICE CUT, OPEN HOUSE, PET FRIENDLY...)
- **Who lists it:** `listingAgent`, `broker`, `builder` as Trulia shows them
- **Media:** `imageUrl`, `photos`, `hasVideo`, `has3DTour`, `description`

Numbers are numbers: `price` is `450000`, not `"$450K"`, so you can sort and filter the export right away.

#### Sample row

```json
{
  "listingId": "466599466_ZPID",
  "listingType": "for_sale",
  "url": "https://www.trulia.com/home/mission-dalycity-daly-city-ca-94014-466599466",
  "address": "Mission Dalycity, Daly City, CA 94014",
  "city": "Daly City",
  "state": "CA",
  "zip": "94014",
  "latitude": 37.708286,
  "longitude": -122.45187,
  "price": 1688000,
  "priceText": "$1,688,000",
  "pricePerSqft": 967,
  "beds": 2,
  "baths": 1,
  "sqft": 1745,
  "propertyType": "MULTI_FAMILY",
  "listingCategory": "RESALE",
  "dateListed": "2026-11-12T22:33:24+00:00",
  "tags": ["NEW - 1 HR AGO"],
  "listingAgent": "Regan Cherrington",
  "broker": "KW Advisors"
}
```

### ⬇️ Input

| Field | Type | What it does |
|---|---|---|
| `locations` | array | Cities ("Austin, TX") or ZIP codes ("78704") |
| `startUrls` | array | Trulia search URLs; each keeps its own filters and sort |
| `listingType` | string | `for_sale` (default), `for_rent` or `sold`, for the locations |
| `maxResults` | integer | Maximum unique listings across all searches (default 20) |
| `minBeds` | integer | Minimum bedrooms |
| `minPrice`, `maxPrice` | integer | Price range in dollars (monthly rent for rentals) |

Example: rentals with 2+ bedrooms under $2,000 in two ZIP codes, plus one sold search pasted from trulia.com:

```json
{
  "locations": ["78704", "78702"],
  "listingType": "for_rent",
  "minBeds": 2,
  "maxPrice": 2000,
  "startUrls": [{ "url": "https://www.trulia.com/sold/San_Francisco,CA/" }],
  "maxResults": 500
}
```

### ❓ FAQ

**How many listings can I get from one search?** Trulia shows 40 listings per page and the Actor reads page after page until your `maxResults` or the end of the search. To cover a large city completely, split it by ZIP code or price range.

**Why is `price` empty on some sold homes?** Some states, Texas among them, do not disclose sale prices, so Trulia shows none. The row still has the sale date, size and location.

**Do I need a proxy?** No setup needed. The Actor starts on a direct connection and moves to Apify proxies on its own only if Trulia blocks a request.

**What happens when Trulia blocks a search?** The Actor retries on other connections. If one search still fails, the others are saved and the run's status message names the search that was blocked. You are not charged for it.

**Is scraping Trulia legal?** The Actor reads public listing pages that anyone can open without an account. It collects no personal data beyond the agent and broker names Trulia publishes with each listing. Check that your use complies with Trulia's terms and the laws that apply to you.

**How does it compare with other Trulia scrapers?** Most Trulia Actors on the Store charge $0.70 to $1.00 per 1,000 results plus a start fee of $0.0005 to $0.005 per run. This one charges $0.80 and $0.00005 per run start (100 times less), accepts locations and URLs together, and removes duplicates before they are charged.

### 📚 Tutorials and guides

- [Run this Actor on a schedule](https://docs.apify.com/platform/schedules): a daily or weekly Trulia export for one city or ZIP code, to watch new listings and price cuts.
- [Call it from Python](https://docs.apify.com/api/client/python) or [get the rows in one HTTP request](https://docs.apify.com/api/v2/act-run-sync-get-dataset-items-post) for your own pipeline.
- [Send each finished run to Make](https://docs.apify.com/platform/integrations/make), [Zapier](https://docs.apify.com/platform/integrations/zapier) or [n8n](https://docs.apify.com/platform/integrations/n8n), for example into Google Sheets or a CRM.
- [Get a webhook when a run finishes](https://docs.apify.com/platform/integrations/webhooks).
- Guides for other US rental portals, with the same workflow: [Redfin rental listing data](https://benthepythondev00.github.io/how-to-get-redfin-rental-listing-data.html) · [Zumper rental listings and rent changes](https://benthepythondev00.github.io/how-to-get-zumper-rental-listing-data.html) · [Austin rental monitor, a tested change-only feed](https://benthepythondev00.github.io/austin-rental-monitoring.html)

### 🔗 Related Actors

- [Zillow Rentals Scraper](https://apify.com/benthepythondev/zillow-rentals-scraper) for rent prices, floor plans and units
- [Redfin Rental Scraper](https://apify.com/benthepythondev/redfin-rental-scraper)
- [Zumper Rental Scraper](https://apify.com/benthepythondev/zumper-rental-scraper)

Reviews help other people find this Actor: [leave one](https://apify.com/benthepythondev/trulia-scraper/reviews).

Questions or a missing field? Open an issue on the Issues tab; it is usually answered within a day.

# Actor input Schema

## `locations` (type: `array`):

City and state ("Austin, TX") or 5-digit ZIP codes ("78704"). The listing type and filters below apply to these.

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

Optional. Any Trulia search page, for example https://www.trulia.com/for_rent/Austin,TX/2p_beds/. A pasted URL keeps its own filters, sort and listing type.

## `listingType` (type: `string`):

Which Trulia search to run for the locations.

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

Maximum unique listings to save across all searches. Each listing is one charged result; duplicates are skipped and not charged.

## `minBeds` (type: `integer`):

Only homes with at least this many bedrooms. Empty: any.

## `minPrice` (type: `integer`):

Sale price, or monthly rent for rentals.

## `maxPrice` (type: `integer`):

Sale price, or monthly rent for rentals.

## Actor input object example

```json
{
  "locations": [
    "Austin, TX"
  ],
  "listingType": "for_sale",
  "maxResults": 20
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Austin, TX"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/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 = {
    "locations": ["Austin, TX"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/trulia-scraper").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 '{
  "locations": [
    "Austin, TX"
  ],
  "maxResults": 20
}' |
apify call benthepythondev/trulia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,benthepythondev/trulia-scraper"
        }
    }
}
```

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/KhMe72NcNTDvMcmHr/builds/CqmSDldRjlpGqgDq1/openapi.json
