# trulia.search

The homes of a Trulia search for a US city, for sale, for rent or recently sold: price, address, beds, baths, area, labels and photo.

Trulia search, one of the Trulia scrapers.

| | |
| --- | --- |
| Id | `trulia.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/trulia.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `location` | string | no | A US city and its state, e.g. `San Francisco, CA`, `Austin, TX`. Limit: at most 80 characters. |
| `listing` | "for_sale" \| "for_rent" \| "sold" | no | What to look for: homes for sale, for rent, or recently sold. Default: `"for_sale"`. |
| `url` | string | no | Instead of a location: the address of a Trulia search page, e.g. `https://www.trulia.com/CA/San_Francisco/`, with the filters it carries. Its page number is replaced by `page`. Limit: at most 600 characters. |
| `page` | integer | no | The results page, 40 homes a page. Limit: 1 to 30. Default: `1`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `position` | integer | The home's place among the homes of this page, from 1. |
| `page` | integer | The results page the home was on. |
| `home_id` | string | Trulia's id of the home, e.g. `79842456_ZPID`, or of a building, e.g. `2748928566_BUILDING_ID`. |
| `url` | string | The home's page on trulia.com. |
| `kind` | string | What the listing is, from: resale, new_construction, builder_plan, foreclosure, lot_land, rental, rental_community, sold, other. |
| `status` | string or null | Whether the home is for sale, for rent, recently sold or off the market: for_sale, for_rent, sold, off_market. |
| `property_type` | string or null | The kind of home as Trulia names it, e.g. `SINGLE_FAMILY_HOME`, `CONDO`, `TOWNHOUSE`. Null for a building and a builder's plan. |
| `name` | string or null | The building's or the community's name, for a rental community or a builder's plan. |
| `address` | string or null | The address in one line, as the card writes it. |
| `street` | string or null | The street line of the address, with the unit number when there is one. |
| `city` | string or null | The city of the address. |
| `state` | string or null | The two-letter state of the address. |
| `zipcode` | string or null | The ZIP code of the address. |
| `latitude` | number or null | Latitude of the home, in decimal degrees. |
| `longitude` | number or null | Longitude of the home, in decimal degrees. |
| `price` | number or null | The asking price in US dollars (for a rental, the monthly rent); for a range, its lowest; for a sold home, the price it sold for; for a foreclosure, Trulia's estimate (see price_note). Null when the card shows no number. |
| `price_max` | number or null | The highest price of a range (a building's rents, a builder's plan); null for one price. |
| `price_text` | string or null | The price as the card writes it, e.g. `$515,000`, `$3,233 - $4,592/mo`, `$799,800+`. |
| `price_note` | string or null | What the card says of the price, when it says something: `Est.` for Trulia's estimate of a home without an asking price (a foreclosure), `Total price` for a rent with its required fees. |
| `currency` | string or null | The ISO currency code of the prices; USD. |
| `bedrooms` | number or null | Bedrooms; 0 is a studio; for a range, its lowest. Null for land. |
| `bedrooms_max` | number or null | The most bedrooms of a range of units; null for one home. |
| `bathrooms` | number or null | Bathrooms; for a range, its lowest. |
| `bathrooms_max` | number or null | The most bathrooms of a range of units; null for one home. |
| `floor_space` | string or null | The interior area as the card writes it, e.g. `807 sqft`, `568-1,379 sqft`. |
| `lot_size` | string or null | The size of the lot as the card writes it, e.g. `2,996 sqft`, `0.25 acres`. |
| `tags` | array of string | The labels on the card, e.g. `NEW - 2 DAYS AGO`, `PET FRIENDLY`, `OPEN SUN, 1PM TO 4PM`. |
| `price_change` | string or null | The direction of the last change of the asking price, `UP` or `DOWN`, when the card marks one. |
| `listed_at` | string (date-time) or null | When the home was listed for sale, when the card says. |
| `open_houses` | array of object | The open houses the card lists, in order. |
| `open_houses[].start` | string (date-time) | When the open house starts, with its offset from UTC. |
| `open_houses[].end` | string (date-time) or null | When it ends. |
| `broker` | string or null | The brokerage the listing names, when it names one. |
| `photo` | string or null | The card's main photo. |
| `fetched_at` | string (date-time) | When the results page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/trulia.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"location":"San Francisco, CA"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "trulia.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "location": "San Francisco, CA"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "position": 1,
      "page": 1,
      "home_id": "448375590_ZPID",
      "url": "https://www.trulia.com/builder-community-plan/the-san-francisco-shipyard-madison-madison-326-448375590",
      "kind": "builder_plan",
      "status": "for_sale",
      "property_type": null,
      "name": "Madison-326 Plan in The San Francisco Shipyard : Madison",
      "address": "Madison-326 Plan in The San Francisco Shipyard : Madison, San Francisco, CA 94124",
      "street": "52 Kirkwood Ave #94ZAQ4",
      "city": "San Francisco",
      "state": "CA",
      "zipcode": "94124",
      "latitude": 37.7281,
      "longitude": -122.3706,
      "price": 799800,
      "price_max": null,
      "price_text": "$799,800+",
      "price_note": null,
      "currency": "USD",
      "bedrooms": 2,
      "bedrooms_max": null,
      "bathrooms": 2,
      "bathrooms_max": null,
      "floor_space": "1,109 sqft",
      "lot_size": null,
      "tags": [
        "NEW CONSTRUCTION"
      ],
      "price_change": null,
      "listed_at": null,
      "open_houses": [],
      "broker": null,
      "photo": "https://www.trulia.com/pictures/thumbs_4/zillowstatic/fp/87fc58042d2818655404c310b5cb14c2-full.jpg",
      "fetched_at": "2026-11-19T18:07:41.573828Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Trulia scrapers](https://docs.enrichednow.com/results-and-statuses.md#trulia) are in their own section there.
