Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of trulia.search
    FieldTypeDescription
    locationstringA 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".
    urlstringInstead 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.
    pageintegerThe 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.

    Record fields of trulia.search
    FieldTypeNotes
    positionintegerThe home's place among the homes of this page, from 1.
    pageintegerThe results page the home was on.
    home_idstringTrulia's id of the home, e.g. 79842456_ZPID, or of a building, e.g. 2748928566_BUILDING_ID.
    urlstringThe home's page on trulia.com.
    kindstringWhat the listing is, from: resale, new_construction, builder_plan, foreclosure, lot_land, rental, rental_community, sold, other.
    statusstring or nullWhether the home is for sale, for rent, recently sold or off the market: for_sale, for_rent, sold, off_market.
    property_typestring or nullThe kind of home as Trulia names it, e.g. SINGLE_FAMILY_HOME, CONDO, TOWNHOUSE. Null for a building and a builder's plan.
    namestring or nullThe building's or the community's name, for a rental community or a builder's plan.
    addressstring or nullThe address in one line, as the card writes it.
    streetstring or nullThe street line of the address, with the unit number when there is one.
    citystring or nullThe city of the address.
    statestring or nullThe two-letter state of the address.
    zipcodestring or nullThe ZIP code of the address.
    latitudenumber or nullLatitude of the home, in decimal degrees.
    longitudenumber or nullLongitude of the home, in decimal degrees.
    pricenumber or nullThe 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_maxnumber or nullThe highest price of a range (a building's rents, a builder's plan); null for one price.
    price_textstring or nullThe price as the card writes it, e.g. $515,000, $3,233 - $4,592/mo, $799,800+.
    price_notestring or nullWhat 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.
    currencystring or nullThe ISO currency code of the prices; USD.
    bedroomsnumber or nullBedrooms; 0 is a studio; for a range, its lowest. Null for land.
    bedrooms_maxnumber or nullThe most bedrooms of a range of units; null for one home.
    bathroomsnumber or nullBathrooms; for a range, its lowest.
    bathrooms_maxnumber or nullThe most bathrooms of a range of units; null for one home.
    floor_spacestring or nullThe interior area as the card writes it, e.g. 807 sqft, 568-1,379 sqft.
    lot_sizestring or nullThe size of the lot as the card writes it, e.g. 2,996 sqft, 0.25 acres.
    tagsarray of stringThe labels on the card, e.g. NEW - 2 DAYS AGO, PET FRIENDLY, OPEN SUN, 1PM TO 4PM.
    price_changestring or nullThe direction of the last change of the asking price, UP or DOWN, when the card marks one.
    listed_atstring (date-time) or nullWhen the home was listed for sale, when the card says.
    open_housesarray of objectThe 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 nullWhen it ends.
    brokerstring or nullThe brokerage the listing names, when it names one.
    photostring or nullThe card's main photo.
    fetched_atstring (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:

    JSON
    {
      "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 lists every status and the reasons every scraper shares; the reasons of the Trulia scrapers are in their own section there.