Actor picture

Trulia Scraper

onidivo/trulia-scraper

Crawl the Trulia real estate listings site and extract data about homes for sale. Scrape home details for multiple search locations (City, Neighborhood, Zip, and County) and various search criteria and filters. Download and use the data whatever way you want.

Free trial for 7 days

Then $10/month

No credit card required now

Author's avatarOnidivo Technologies
  • Modified
  • Users19
  • Runs69
Actor picture

Trulia Scraper

Free trial for 7 days

Then $10/month

Crawl the Trulia real estate listings site and extract data about homes for sale. Scrape home details for multiple search locations (City, Neighborhood, Zip, and County) and various search criteria and filters. Download and use the data whatever way you want.

Features

  • Multiple properties URLs
  • Multiple search locations
  • Multiple search types (Buy, Rent, Sold)
  • Sort homes

Cost of usage

When running the actor with memory of 1024 MB, average consumption is about 1 Compute Unit and 1 hour per 4000 homes. This will cost about $0.5 usage credits.

Report issues and feedback

You can report issues here and leave your feedback here.

Input

You can provide input either through the editor on the Apify platform or as a JSON object.

The only mandatory fields you need to provide are:

  • at least one of: startUrls or searchLocations.
  • if you will provide searchLocations, at least one of: searchTypeBuy, searchTypeRent, and searchTypeSold with the value true (by default, searchTypeBuy is true).

An example of minimal input:

{
    "startUrls": [
        {
            "url": "https://www.trulia.com/p/ca/fremont/3366-peralta-blvd-fremont-ca-94536--2083375174"
        }
    ],
    "searchLocations": [
        "San Francisco"
    ],
    "searchTypeBuy": true,
    "sortOption": "NEW_LISTINGS",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
}

The scraper forcibly use Apify Proxy so that you don’t get blocked by Trulia. You should also use a low value for max concurrency.

Output

For each search location combined with the search type (Buy, Rent, or Sold), and for each start URL, you get home results.

The output of each home looks like this:

{
    "url": "https://www.trulia.com/p/ca/fremont/48871-crown-ridge-cmn-fremont-ca-94539--2083417606",
    "searchLocation": "Fremont, CA",
    "query": "Fremont, CA",
    "title": "48871 Crown Ridge Cmn, Fremont, CA 94539 - 5 Bed, 4 Bath Single-Family Home - MLS# ML81834752 - 39 Photos | Trulia",
    "metaDescription": "48871 Crown Ridge Cmn, Fremont, CA 94539 is a 3,811 sqft, 5 bed, 4 bath Single-Family Home listed for $2,980,000. Welcome to 48871 Crown Ridge Common, an exquisite home located on a tree lined street in the prestigious...",
    "isOffMarket": false,
    "isRecentlySold": false,
    "isForeclosure": false,
    "isActiveForRent": false,
    "isActiveForSale": true,
    "isRecentlyRented": false,
    "location": {
        "stateCode": "CA",
        "jsonLdSchemaFullLocation": "48871 Crown Ridge Cmn, Fremont, CA 94539",
        "homeFormattedAddress": "48871 Crown Ridge Cmn, Fremont, CA 94539",
        "cityStateZipAddress": "Fremont, CA 94539",
        "summaryFormattedLocation": "48871 Crown Ridge Cmn",
        "city": "Fremont",
        "zipCode": "94539",
        "neighborhoodName": "Vineyards-Avalon",
        "streetAddress": "48871 Crown Ridge Cmn",
        "formattedLocation": "48871 Crown Ridge Cmn",
        "latitude": 37.47203826904297,
        "longitude": -121.8926010131836
    },
    "price": {
        "price": 2980000,
        "currencyCode": "USD",
        "formattedPrice": "$2,980,000",
        "branchBannerPrice": "$2.98M"
    },
    "bedrooms": {
        "summaryBedrooms": "5 Beds",
        "formattedValue": "5 Beds",
        "branchBannerBedrooms": "5bd"
    },
    "bathrooms": {
        "summaryBathrooms": "4 Baths",
        "formattedValue": "4 Baths",
        "branchBannerBathrooms": "4ba"
    },
    "floorSpace": {
        "formattedDimension": "3,811 sqft",
        "branchBannerFloorSpace": "3,811 sqft"
    },
    "propertyType": "Single Family Home",
    "lotSize": "0.58 acres"
}