# Trulia Scraper & API: Scrape Homes, Schools & Tax History (`headofactors/trulia-scraper`) Actor

Scrape Trulia data for US real estate: homes for sale, rentals and sold listings with prices, addresses, photos, tax history, school ratings and resident neighborhood surveys. Export as JSON, CSV or Excel with address and Zillow ID join keys.

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

## Pricing

$1.00 / 1,000 trulia listing rows

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/actors/running/actors-in-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: US Homes, Rentals, Schools and Tax History

Trulia scraper turns public US property searches into structured Trulia data: one row per home for sale, rental community or recently sold property, with addresses, prices, photographs and available local information. Export the dataset as JSON, CSV or Excel, call the Actor through the Apify API, or start it with a city and state, a ZIP code or an existing Trulia search URL.

The results help property analysts, real estate teams and data engineers compare housing inventory, enrich prospect lists and build repeatable local market research. Each row includes a public listing URL and a typed listing identifier. Where the source publishes a Zillow property ID, the `zpid` field provides another useful way to connect records across sources.

### Trulia scraper input

Start with this search:

```json
{"location":"Austin, TX","limit":40,"include_details":true}
```

`location` accepts a city followed by its two-letter US state code, or a five-digit ZIP code. `listing_type` chooses `for_sale`, `for_rent` or `sold`; the default is `for_sale`. To reuse a search you already prepared, supply `url` with a Trulia city or ZIP search URL. The URL takes precedence over the location and separate filters. Individual home and building URLs are outside the supported input format.

`min_price` and `max_price` apply to asking prices for sale searches and monthly rent for rental searches. `min_beds` and `min_baths` set minimum room counts. `property_types` accepts `SINGLE_FAMILY_HOME`, `CONDO`, `TOWNHOUSE`, `MULTI_FAMILY` and `APARTMENT`. Unsupported values produce an input error. A dropped source filter is reported instead of quietly returning a broader search.

`limit` sets the maximum number of listings across the search, from 1 to 1,000. The default is 100. `maxItems` is an alternative spelling. Use one volume field per request. The Actor resolves this alias before applying its delivery cap; the direct API uses the smaller value if both fields are present. `include_details` defaults to true. Disable it when you need only the fields present on search cards, such as addresses, prices and room counts.

### Output and field meanings

The dataset contains one row per listing. A listing can represent a single property, a rental community or a new construction floor plan; `home_kind` distinguishes those cases. The shared fields include `listing_id`, `listing_type`, `url`, `address`, `street`, `city`, `state`, `postal_code`, `country_code`, `lat`, `lng`, `price`, `currency`, `property_type`, `bedrooms`, `bathrooms`, `living_area` and `living_area_unit`.

Rental communities often publish price and room ranges. `price` is the lower published rent and `price_max` is the upper amount. The corresponding room ranges appear in `bedrooms_max` and `bathrooms_max`. These building-level ranges describe the community and do not promise that a particular unit is available at every combination of rent and bedroom count. Published rental prices can include required monthly fees; consult `price_text` and the original listing for context.

Photos appear in `photos`, with a primary image in `image_url`. Listing descriptions, agent names, brokerage names, construction years, HOA text and status flags are included when available. Every row carries `source`, `platform` and `fetched_at` for provenance. `position` follows delivered source order across the search.

When details are enabled, `tax_history` contains published year, tax amount and assessment records. The currently observed source provides one tax year where present, rather than a complete multi-year history. `tax_assessed_value` is the latest available assessment. `price_history` contains dated listing and sale events; events without a published amount retain a null price.

`schools` includes assigned school names, grade ranges, school type, district and available GreatSchools and parent ratings. School ratings describe the named provider's scale and are not scores calculated by this scraper. Availability and school assignments may change; confirm the original source when making an enrollment decision.

#### Example row from a real run

This is the first row of a real run for Austin, TX homes for sale with details enabled
(`{"location":"Austin, TX","limit":1,"include_details":true}`), with every value exactly as the
source returned it. The same row in the dataset also carries `source`, `platform`, `fetched_at`,
`query`, `position`, `photos`, `image_url`, `price_history`, `status`, `tags` and
`description`.

```json
{
  "url": "https://www.trulia.com/home/9010-wellesley-dr-austin-tx-78754-29415750",
  "listing_id": "29415750_ZPID",
  "listing_type": "for_sale",
  "address": "9010 Wellesley Dr, Austin, TX 78754",
  "street": "9010 Wellesley Dr",
  "city": "Austin",
  "state": "TX",
  "postal_code": "78754",
  "lat": 30.331982,
  "lng": -97.64691,
  "zpid": "29415750",
  "home_kind": "property",
  "price": 289900,
  "price_text": "$289,900",
  "currency": "USD",
  "property_type": "SINGLE_FAMILY_HOME",
  "bedrooms": 3,
  "bathrooms": 2,
  "living_area": 1318,
  "living_area_unit": "sqft",
  "year_built": 1995,
  "hoa_fee_text": "$60/Yearly",
  "listed_at": "2026-11-10T01:33:51+00:00",
  "days_on_market": 0,
  "broker": "Entera Realty LLC",
  "agent_name": "Robert Salmons",
  "tax_history": [
    {
      "year": 2025,
      "tax": 4673,
      "assessment": 301651
    }
  ],
  "tax_assessed_value": 301651,
  "schools": [
    {
      "id": "91254",
      "name": "Dobie Middle School",
      "categories": [
        "MIDDLE"
      ],
      "grades": "6-8",
      "type": "PUBLIC",
      "district": "Austin Independent School District",
      "students": 512,
      "rating": 1,
      "parent_rating": 3,
      "url": "https://www.trulia.com/schools/TX-austin-dobie_middle_school-1056181",
      "lat": 30.354473,
      "lng": -97.679565
    },
    {
      "id": "91688",
      "name": "Jordan Elementary School",
      "categories": [
        "PRE_K",
        "ELEMENTARY"
      ],
      "grades": "PK-5",
      "type": "PUBLIC",
      "district": "Austin Independent School District",
      "students": 492,
      "rating": 1,
      "parent_rating": null,
      "url": "https://www.trulia.com/schools/TX-austin-jordan_elementary_school-4014936",
      "lat": 30.301222,
      "lng": -97.64701
    },
    {
      "id": "91851",
      "name": "LBJ Early College High School",
      "categories": [
        "HIGH"
      ],
      "grades": "9-12",
      "type": "PUBLIC",
      "district": "Austin Independent School District",
      "students": 731,
      "rating": 2,
      "parent_rating": 4,
      "url": "https://www.trulia.com/schools/TX-austin-lbj_early_college_high_school-1056454",
      "lat": 30.313496,
      "lng": -97.65667
    }
  ],
  "neighborhood": "Austin",
  "neighborhood_scores": {
    "DogFriendly": 91,
    "NeedACar": 82,
    "EasyParking": 77,
    "Sidewalks": 75,
    "WellKeptYards": 68,
    "HolidaySpirit": 67,
    "PeopleWouldWalkAloneAtNight": 65,
    "Quiet": 64,
    "KidsPlayOutside": 58,
    "WellLitStreets": 52,
    "WalkableToRestaurants": 51,
    "FriendlyNeighbors": 51,
    "Wildlife": 50,
    "LongTermResidents": 49,
    "WalkableToGroceries": 44,
    "CommunityEvents": 34
  },
  "neighborhood_review_count": 1577,
  "result_count": 5351
}
```

### Neighborhood survey scores

`neighborhood_scores` contains percentages of residents agreeing with statements such as `DogFriendly`, `PeopleWouldWalkAloneAtNight`, `WellLitStreets`, `WalkableToGroceries` and `WalkableToRestaurants`. These are resident opinions about an area. They are not crime rates, official safety classifications, independent walkability scores or lists of shops and restaurants. The area named in `neighborhood` can be a neighborhood or a city, depending on the listing.

Unavailable enrichment remains null. An empty neighborhood object is never substituted for missing survey data. A detail failure preserves the search listing and produces a warning; it does not create an invented tax record, school rating or survey percentage.

### Pagination and coverage

Trulia exposes at most 25 search pages, normally 40 listings per page. A single broad search therefore reaches at most 1,000 listings even when the reported match count is larger. Split large markets into ZIP codes or price bands to cover more inventory. Source overlap between different searches is possible, so use `listing_id`, `zpid` and address fields when combining exports.

The Actor collects cursor responses automatically. Direct API users pass `next_cursor` back as `cursor` with the same input until it becomes null. A continuation or source limitation appears in `partial` and `warnings`. The match count in `result_count` reflects the source search and can exceed the accessible window or the requested limit.

Sold prices can be undisclosed. In the observed Texas sold results, dates were available while sale prices were missing. Those rows keep `price` null; the scraper does not replace an undisclosed price with zero or an estimate. This matters when computing sale-price averages or joining transactions to listing histories.

### Use cases

- **Comparable sales and valuations.** Combine asking price, living area, year built and the
  published tax assessment in one row, so an offer can be checked against the assessed value
  before anyone opens a single listing page.
- **School-driven home search.** Rank the inventory of a city or ZIP search by the assigned
  schools in `schools` — name, grade range, district and the available ratings — for relocation
  and family-buyer research.
- **Area comparison.** Join `neighborhood_scores` onto your own records to compare walkability,
  street lighting, quietness and errand distance between neighborhoods instead of between
  addresses.
- **Lead lists for agents and local services.** New listings with `days_on_market`, `broker` and
  `agent_name` show which properties and which professionals are active in an area this week.
- **Enrichment for records you already hold.** Join on `zpid` or on the address fields to turn a
  bare address into a record with price, tax, school and survey context, and to keep that record
  fresh when you rerun the same search.

### How to scrape Trulia without code

Choose a city with its two-letter US state code or a five-digit ZIP code, pick the listing type
and the price or room filters you need, and start the run; download the dataset as JSON, CSV or
Excel when it finishes. To reuse a search you already prepared, paste the Trulia search URL from
your browser into `url`. The same search can be called through the Apify API or scheduled, so
fresh listings land in your spreadsheet, database or workflow tool every day.

### Trulia scraper compared with other options

- **The Trulia scrapers already in the Store** cover the listing basics: URL, address, price,
  photographs, room counts and status. In the output field lists we reviewed for the established
  ones, school ratings, available tax history and the resident neighborhood survey scores are not
  among the returned fields. Those three are what this actor adds to every detailed row.
- **Trulia has no public listing API.** Its developer portal has been offline since 2016 and no
  official endpoint returns current search results, so any structured export runs through the
  public website. This actor turns those pages into typed rows for you.
- **Zillow or Redfin data** comes from the same company group but carries different detail pages
  and survey content. Join on `zpid` or address to combine this export with the Zillow and Redfin
  scrapers in this catalogue before you compare areas or transaction histories.
- **Writing your own scraper** means maintaining parsers for the search pages and the detail
  requests as the site changes. Here you pay per delivered listing row, with stable field names
  and nothing to host yourself.

### Pricing

Usage is measured per delivered listing. The current Actor price is shown in the Pricing tab. Detail availability is reported with each result and does not create a second listing charge. Searches with no delivered rows have no listing event charge. Non-paying users receive at most ten delivered listings per run, with details still enabled when requested. This delivery cap does not change the platform's displayed prices or account terms.

### FAQ

#### Can I scrape rentals and sold homes as well as homes for sale?

Yes. Set `listing_type` to `for_rent` or `sold`. Each output row retains its listing type, so separate exports can be combined without guessing what the price represents.

#### Does the output include complete tax and crime histories?

Tax records reflect what Trulia publishes and currently contain a single year where available. Safety-related fields are resident survey opinions, not crime histories. Missing data remains null and is never manufactured.

#### Can I join this export with Zillow or property sales records?

Yes. Use `zpid` where both sources provide it. Address, postal code and coordinates support joins with other listing and transaction products. Rental building identifiers are distinct from individual home identifiers, so account for `home_kind` before deduplicating.

#### Is there an official Trulia API I could use instead?

Trulia does not currently offer a public listing API; its developer portal has been offline since
2016\. Listings are therefore collected from the public website, and this Actor gives you the rows
as a dataset or through the Apify API without you maintaining that collection yourself.

#### Why did I receive fewer listings than the match count?

Your requested limit, the ten-listing cap for non-paying users, the source's 25-page window, inventory changes or an unavailable source page can limit delivery. Check the run summary and warnings before treating a smaller export as a complete market census.

# Actor input Schema

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

US city and state, such as Austin, TX, or a five-digit ZIP code.

## `url` (type: `string`):

Trulia city or ZIP search URL. Takes precedence over location and filter fields.

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

Choose active for-sale listings, rentals or sold homes.

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

Minimum asking price or monthly rent in USD.

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

Maximum asking price or monthly rent in USD.

## `min_beds` (type: `integer`):

Minimum bedrooms; rental buildings may include a range.

## `min_baths` (type: `integer`):

Minimum bathrooms.

## `property_types` (type: `array`):

Property types verified against the search filter response.

## `include_details` (type: `boolean`):

Include available tax history, price history, schools and resident survey scores.

## `limit` (type: `integer`):

Maximum listings across all cursor responses for this search.

## `maxItems` (type: `integer`):

Alternative name for limit. With both fields present, the direct API uses the smaller value; the Actor resolves this alias before applying its delivery cap.

## `retries` (type: `integer`):

Maximum attempts per source request within the shared request deadline.

## `cursor` (type: `string`):

Opaque next_cursor returned by the previous response. Keep other input unchanged.

## Actor input object example

```json
{
  "location": "Austin, TX",
  "listing_type": "for_sale",
  "include_details": true,
  "limit": 100,
  "retries": 4
}
```

# Actor output Schema

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

Delivered listings.

## `summary` (type: `string`):

Run totals and warnings.

# 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("headofactors/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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,headofactors/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/d16j4XBXYFPA3I3HK/builds/tm84EA7hJGLueRFLY/openapi.json
