# Trulia Scraper (`getdataforme/trulia-scraper`) Actor

The Trulia Scraper is a web crawler that extracts real estate listings from Trulia. It collects key details such as price, location, size, bedrooms, bathrooms, and listing status. The scraper efficiently handles pagination and dynamic content, providing accurate and up-to-date insights.

- **URL**: https://apify.com/getdataforme/trulia-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Real estate
- **Stats:** 7 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.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/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 Scraper Documentation

Looking to extract property listings from **Trulia.com**? The **Trulia Scraper** allows you to effortlessly extract detailed property information, including prices, amenities, and other relevant data from Trulia listings.

**Note**: Make sure to activate the proxy to avoid any interruptions when scraping data.

### How This Trulia Scraper Works

- Rent the **Trulia Scraper** and enjoy a **2-hour free trial** to test the actor and determine if it fits your needs.
- Provide the URL(s) of the Trulia listing you want to scrape, and the scraper will extract all relevant data.
- The data will be returned in a structured format for easy use.

#### Configuration Inputs

To use the **Trulia Scraper**, simply provide the following input configuration:

```json
{
    "proxyConfiguration": {
        "useApifyProxy": true
    },
    "urls": [
        "https://www.trulia.com/builder-community-plan/mayfair-60-3395w-442011777"
    ]
}
```

- **proxyConfiguration**: Set to `true` to use Apify Proxy for uninterrupted data extraction.
- **urls**: Enter the URLs of the Trulia property listings you want to scrape.

#### Trulia Scraper Output Result Sample

Once the scraping process is complete, you'll receive a detailed output with the following information:

```json
[
    {
        "title": "3395W - Mayfair 60' - New Braunfels, TX | Trulia",
        "property_type": null,
        "price": "$683,900+",
        "bedrooms": "4 Beds",
        "bathrooms": "4 Baths",
        "square_footage": "3,395 sqft",
        "lot_size": null,
        "year_built": "2025",
        "street_address": "314 Cleveland Way #GPO9O3",
        "city": "New Braunfels",
        "state": null,
        "zip_code": "78130",
        "neighborhood": null,
        "parking_spaces": "3",
        "image_urls": [
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/9aad80542d232573e90047fa489a14ea-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/c3261b308b121baa2ce99df2ccfa3c37-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/b95f1a25c1f81597f3afd14da13eb2da-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/22966c44f13de6d60ee65dc57e0ab08a-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/4dbcf0228160efd2a57f10d559c1b872-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/b95ed971524157ed661873962fde0d26-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/c8ea3935a1f8a5e676c0492e1a6db971-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/92b430b4dadbf61881c86ab3c982b24f-full.jpg",
            "https://www.trulia.com/pictures/thumbs_5/zillowstatic/fp/8cb3c7879f607dda58ba8bc4caf2472c-full.jpg"
        ],
        "virtual_tour_links": [
            "https://my.matterport.com/show/?m=NF99cBUvCGN"
        ],
        "price_history": null,
        "description": "Home office with French doors set at entry with 20-foot ceiling. Formal dining room opens to rotunda with curved staircase. Two-story family room with 18-foot ceiling and wall of windows opens to kitchen and morning area. Kitchen hosts generous island with built-in seating space. Primary suite with a wall of windows. Primary bath includes dual vanity, corner garden tub, separate glass-enclosed shower and large walk-in closet with access to utility room. First-floor guest suite. A game room, media room and two secondary bedrooms are upstairs. Covered backyard patio. Mud room off three-car garage. Representative Images. Features and specifications may vary by community.",
        "property_status": null
    }
]
```

The returned fields include:

- **title**: The title of the property listing.
- **property\_type**: The type of the property (e.g., single-family home, condo).
- **price**: The listed price of the property.
- **bedrooms**: The number of bedrooms in the property.
- **bathrooms**: The number of bathrooms in the property.
- **square\_footage**: The size of the property in square feet.
- **lot\_size**: The size of the lot (if available).
- **year\_built**: The year the property was built.
- **street\_address**: The street address of the property.
- **city**: The city where the property is located.
- **state**: The state (if available).
- **zip\_code**: The zip code of the property.
- **neighborhood**: The neighborhood of the property (if available).
- **parking\_spaces**: The number of parking spaces available.
- **image\_urls**: URLs to images of the property.
- **virtual\_tour\_links**: Links to a virtual tour of the property (if available).
- **price\_history**: Historical price data (if available).
- **description**: A description of the property.
- **property\_status**: The status of the property (if available).

### Support

For more custom/simplified outputs or if you encounter any issues, please contact support@getdataforme.com or report an issue.

You can easily reach us here: [Get Data For Me Contact](https://getdataforme.com/contact/)

When reaching out, don't forget to include the email subject and any specific support requests you have.

Thank you for using the **Trulia Scraper**! Happy scraping!

# Actor input Schema

## `urls` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

## `proxyConfiguration` (type: `object`):

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.trulia.com/builder-community-plan/mayfair-60-3395w-442011777"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "https://www.trulia.com/builder-community-plan/mayfair-60-3395w-442011777"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/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 = {
    "urls": ["https://www.trulia.com/builder-community-plan/mayfair-60-3395w-442011777"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/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 '{
  "urls": [
    "https://www.trulia.com/builder-community-plan/mayfair-60-3395w-442011777"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call getdataforme/trulia-scraper --silent --output-dataset

```

## MCP server setup

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