# Trulia Scraper - US Real Estate Listings  ($0.9/1000) (`igolaizola/trulia-scraper`) Actor

$0.9/1K 🔥 Scrape Trulia real estate listings in the United States for sale, rent, and sold data with advanced filters (price, beds, baths, property type, amenities, foreclosure). Ideal for housing market research, real estate analytics, lead generation, price tracking, and investment insights.

- **URL**: https://apify.com/igolaizola/trulia-scraper.md
- **Developed by:** [Iñigo Garcia Olaizola](https://apify.com/igolaizola) (community)
- **Categories:** Real estate, Lead generation, Travel
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Trulia Real Estate Listings Scraper

### 🤖 What does the Trulia Scraper do?

**Trulia Scraper** lets you extract real estate listings from **Trulia.com** directly into Apify datasets. Search by a named location or a latitude/longitude radius, apply powerful filters, and collect **buy**, **rent**, and **sold** listings.

Use it to build market dashboards, track inventory, analyze pricing trends, or power lead generation workflows — all from the Apify platform.

### ✅ Why scrape Trulia?

Trulia is one of the most popular real estate marketplaces in the US. With this actor you can:

- Monitor new listings in specific cities or neighborhoods
- Track price changes and market trends
- Compare property types across regions
- Analyze sold activity or foreclosure inventory
- Build datasets for research, analytics, or automation

### 🚀 How to use the actor on Apify

1. **Add the actor** to your Apify account.
2. **Configure input** (location, filters, max items, etc.).
3. **Run the actor** and wait for completion.
4. **Download results** from the **Dataset** tab (JSON, CSV, Excel).

### 💡 Input parameters

This actor supports **all available filters exposed by the Trulia app**. Below is a practical summary; see the full schema in **Input** on Apify.

| Field                           | Type    | Example                   | Description                               |
| ------------------------------- | ------- | ------------------------- | ----------------------------------------- |
| `location`                      | string  | `"Austin, TX"`            | Search location (city, ZIP, neighborhood) |
| `latitude`                      | number  | `30.2672`                 | Coordinate search center latitude         |
| `longitude`                     | number  | `-97.7431`                | Coordinate search center longitude        |
| `distanceMiles`                 | integer | `20`                      | Radius around the coordinates, in miles   |
| `operation`                     | string  | `"buy"`                   | `buy`, `rent`, or `sold`                  |
| `maxItems`                      | integer | `100`                     | Maximum listings to return                |
| `sortBy`                        | string  | `"price_high"`            | Sort order                                |
| `propertyTypes`                 | array   | `["house", "condo"]`      | Property type filters                     |
| `listingTypes`                  | array   | `["resale", "new_homes"]` | Listing type filters                      |
| `foreclosureTypes`              | array   | `["auction"]`             | Foreclosure types                         |
| `minPrice` / `maxPrice`         | integer | `500000`                  | Price range                               |
| `minBeds` / `maxBeds`           | integer | `3`                       | Bedroom range                             |
| `minBaths` / `maxBaths`         | integer | `2`                       | Bathroom range                            |
| `minSqft` / `maxSqft`           | integer | `1500`                    | Square feet range                         |
| `minLotSize` / `maxLotSize`     | integer | `4000`                    | Lot size range                            |
| `minHoaFee` / `maxHoaFee`       | integer | `0`                       | HOA fee range                             |
| `minYearBuilt` / `maxYearBuilt` | integer | `1990`                    | Year built range                          |
| `keywords`                      | array   | `["pool", "garage"]`      | Keyword filters                           |
| `soldWithin`                    | integer | `3`                       | Sold within **months**                    |
| `pets`                          | array   | `["cats"]`                | Pet filters (rent)                        |
| `buildingAmenities`             | array   | `["pool", "garage"]`      | Amenity filters                           |
| `unitAmenities`                 | array   | `["washerdryer"]`         | Unit amenity filters                      |
| `furnished`                     | string  | `"furnished"`             | Furnished filter                          |
| `includeOffMarket`              | boolean | `true`                    | Include off‑market listings               |

> The actor exposes many more filters (open homes, price per sqft, landlord pays, 55+ communities, etc.) in the Apify input form.

### 📥 Example input

```json
{
  "maxItems": 60,
  "location": "Austin, TX",
  "operation": "buy",
  "sortBy": "price_high",
  "propertyTypes": ["house", "condo"],
  "listingTypes": ["resale", "new_homes"],
  "minPrice": 500000,
  "maxPrice": 1500000,
  "minBeds": 3,
  "minBaths": 2,
  "minSqft": 1500,
  "keywords": ["pool", "garage"],
  "includeOffMarket": true
}
```

#### Coordinate-radius example

```json
{
  "maxItems": 20,
  "latitude": 30.2672,
  "longitude": -97.7431,
  "distanceMiles": 10,
  "operation": "buy",
  "propertyTypes": ["house"],
  "includeOffMarket": false
}
```

### 📤 Output

Each dataset item represents a property listing and typically includes:

- Listing URL and identifiers
- Address (street, city, state, ZIP, neighborhood)
- Price and price changes
- Bedrooms, bathrooms, and square feet
- Listing status (for sale, for rent, sold, off‑market)
- Photos and media
- Provider/attribution details

Example output fragment:

```json
{
  "url": "https://www.trulia.com/home/123-main-st-austin-tx-78701-123456789",
  "location": {
    "streetAddress": "123 Main St",
    "city": "Austin",
    "stateCode": "TX",
    "zipCode": "78701",
    "formattedLocation": "123 Main St, Austin, TX 78701"
  },
  "genericPrice": {
    "formattedPrice": "$825,000"
  },
  "bedrooms": {"formattedValue": "3bd"},
  "bathrooms": {"formattedValue": "2ba"},
  "floorSpace": {"formattedDimension": "1,742 sqft"},
  "currentStatus": {
    "isActiveForSale": true,
    "isOffMarket": false
  },
  "media": {
    "photos": [
      {"url": {"large": "https://.../"}}
    ]
  },
  ...
}
```

### 💳 Pricing

On the **Free plan**, Apify provides $5 of free usage credits every month. Small tests often fit within this limit. For larger data needs, you can upgrade to a paid plan for higher limits and faster runs.

### ✅ Use cases

- Track new listings in a city or ZIP code
- Monitor foreclosure inventory
- Analyze price trends by property type
- Build datasets for investment, research, or lead generation

# Actor input Schema

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

Maximum number of listings to scrape.

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

Location to search (city, state, ZIP, or neighborhood). Ignored when latitude and longitude are provided.

## `latitude` (type: `number`):

Latitude of the coordinate search center.

## `longitude` (type: `number`):

Longitude of the coordinate search center.

## `distanceMiles` (type: `integer`):

Search radius around the latitude/longitude point, in miles.

## `operation` (type: `string`):

Type of listings to search.

## `sortBy` (type: `string`):

Sort order for results.

## `propertyTypes` (type: `array`):

Filter by property types (leave empty for defaults).

## `listingTypes` (type: `array`):

Filter by listing types (leave empty for defaults).

## `foreclosureTypes` (type: `array`):

Filter by foreclosure types.

## `street` (type: `string`):

Street address filter.

## `mlsId` (type: `string`):

MLS ID filter.

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

Minimum price (0 for any).

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

Maximum price (0 for any).

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

Minimum bedrooms.

## `maxBeds` (type: `integer`):

Maximum bedrooms.

## `minBaths` (type: `integer`):

Minimum bathrooms.

## `maxBaths` (type: `integer`):

Maximum bathrooms.

## `minSqft` (type: `integer`):

Minimum square feet.

## `maxSqft` (type: `integer`):

Maximum square feet.

## `minLotSize` (type: `integer`):

Minimum lot size.

## `maxLotSize` (type: `integer`):

Maximum lot size.

## `minHoaFee` (type: `integer`):

Minimum HOA fee.

## `maxHoaFee` (type: `integer`):

Maximum HOA fee.

## `minPricePerSqft` (type: `integer`):

Minimum price per square foot.

## `maxPricePerSqft` (type: `integer`):

Maximum price per square foot.

## `minYearBuilt` (type: `integer`):

Minimum year built.

## `maxYearBuilt` (type: `integer`):

Maximum year built.

## `keywords` (type: `array`):

Keywords to match.

## `soldWithin` (type: `integer`):

Sold within (months).

## `pets` (type: `array`):

Pet filters (rent only).

## `space` (type: `string`):

Space filter (rent only).

## `brokerFee` (type: `string`):

Broker fee filter (rent only).

## `buildingAmenities` (type: `array`):

Building amenity filters (rent only).

## `unitAmenities` (type: `array`):

Unit amenity filters (rent only).

## `furnished` (type: `string`):

Furnished filter.

## `rentalListingTags` (type: `array`):

Rental listing tag filters (rent only).

## `landlordPays` (type: `array`):

Landlord pays filters (rent only).

## `view` (type: `string`):

View type.

## `plus55Exclude` (type: `boolean`):

Exclude 55+ communities.

## `airConditioning` (type: `boolean`):

Require air conditioning.

## `newListingDaysAgo` (type: `integer`):

New listing days ago.

## `newListingMinDate` (type: `string`):

New listing minimum date (string).

## `newListingMaxDate` (type: `string`):

New listing maximum date (string).

## `newListingTimestamp` (type: `integer`):

New listing timestamp.

## `openHomesType` (type: `string`):

Open homes type (t, w, p).

## `openHomesMinDate` (type: `string`):

Open homes minimum date (string).

## `openHomesMaxDate` (type: `string`):

Open homes maximum date (string).

## `openHomesTimestamp` (type: `integer`):

Open homes timestamp.

## `recentlyReducedDaysAgo` (type: `integer`):

Recently reduced days ago.

## `recentlyReducedMinDate` (type: `string`):

Recently reduced minimum date (string).

## `recentlyReducedMaxDate` (type: `string`):

Recently reduced maximum date (string).

## `recentlyReducedTimestamp` (type: `integer`):

Recently reduced timestamp.

## `transitSystem` (type: `string`):

Transit system filter.

## `transitLine` (type: `string`):

Transit line filter.

## `transitStation` (type: `string`):

Transit station filter.

## `includeOffMarket` (type: `boolean`):

Include off market listings.

## `includeBuilderCommunities` (type: `boolean`):

Include builder communities.

## `hasVirtualTour` (type: `boolean`):

Only include homes with virtual tours.

## `includeNearBy` (type: `boolean`):

Include nearby homes on the first page.

## `isAlternateListingSource` (type: `boolean`):

Enable alternate listing source.

## Actor input object example

```json
{
  "maxItems": 100,
  "location": "Austin, TX",
  "distanceMiles": 20,
  "operation": "buy",
  "sortBy": "best",
  "minPrice": 0,
  "maxPrice": 0,
  "minBeds": 0,
  "maxBeds": 0,
  "minBaths": 0,
  "maxBaths": 0,
  "minSqft": 0,
  "maxSqft": 0,
  "minLotSize": 0,
  "maxLotSize": 0,
  "minHoaFee": 0,
  "maxHoaFee": 0,
  "minPricePerSqft": 0,
  "maxPricePerSqft": 0,
  "minYearBuilt": 0,
  "maxYearBuilt": 0,
  "soldWithin": 0,
  "plus55Exclude": false,
  "airConditioning": false,
  "newListingDaysAgo": 0,
  "newListingMinDate": "",
  "newListingMaxDate": "",
  "newListingTimestamp": 0,
  "openHomesMinDate": "",
  "openHomesMaxDate": "",
  "openHomesTimestamp": 0,
  "recentlyReducedDaysAgo": 0,
  "recentlyReducedMinDate": "",
  "recentlyReducedMaxDate": "",
  "recentlyReducedTimestamp": 0,
  "transitSystem": "",
  "transitLine": "",
  "transitStation": "",
  "includeOffMarket": true,
  "includeBuilderCommunities": true,
  "hasVirtualTour": false,
  "includeNearBy": true,
  "isAlternateListingSource": false
}
```

# 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 = {
    "location": "Austin, TX"
};

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

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

```

## MCP server setup

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