Scraper APITrulia
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.
- 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; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
location | string | A US city and its state, e.g. San Francisco, CA, Austin, TX.Limit: at most 80 characters. |
listing | "for_sale" | "for_rent" | "sold" | What to look for: homes for sale, for rent, or recently sold.Default: "for_sale". |
url | string | 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 | 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. |
start (in open_houses[]) | string (date-time) | When the open house starts, with its offset from UTC. |
end (in open_houses[]) | 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
# Start a run and wait up to 60 seconds for it to finish
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"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("trulia.search", {"location": "San Francisco, CA"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("trulia.search", { location: "San Francisco, CA" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "trulia.search", map[string]any{"location": "San Francisco, CA"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("trulia.search", Map.of("location", "San Francisco, CA"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run trulia.search --input-json '{"location":"San Francisco, CA"}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"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.
{
"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.
{
"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 lists every status and the reasons every scraper shares; the reasons of the Trulia scrapers are in their own section there.