Skip to content

About

Trulia scraper API: Trulia Real Estate Agents, Trulia Real Estate Search, Trulia Property Details as clean JSON. Python examples with requests, Scrapy, asyncio and the DataGuru SDK.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Trulia Scraper API

Scrape Trulia with a JSON API. This repo has working Python examples for DataGuru's Trulia scraper APIs: Trulia Real Estate Agents, Trulia Real Estate Search and Trulia Property Details.

DataGuru runs the scraping, proxies, retries and parsing, and returns clean JSON. You pay only for successful requests, from $0.0012 per request, out of a prepaid balance: no subscription. New accounts get $1.00 of free credit.

Trulia APIs

API What it returns Price Page
Trulia Real Estate Agents Directory of local real estate agents on Trulia with ratings and past sales. $0.0012 https://dataguru.cc/apis/trulia-agents/
Trulia Real Estate Search Search homes for sale or rent on Trulia. $0.0012 https://dataguru.cc/apis/trulia-search/
Trulia Property Details Extract home details, price, beds, baths, local crime stats, schools, and neighborhood reviews from Trulia. $0.0022 https://dataguru.cc/apis/trulia-property-details/

Quick start

  1. Create a free account and an API key at dashboard.dataguru.cc.
  2. Install and run:
git clone https://github.com/dataguru-cc/trulia-scraper-api.git
cd trulia-scraper-api
pip install -r requirements.txt
export DATAGURU_API_KEY="your key"
python examples/sdk_example.py trulia-agents

Examples

Every example covers all 3 Trulia APIs. Pass an API name to run just one; with no name each script runs them all, and each call is billed at the price above.

File Style Run
examples/sdk_example.py DataGuru Python SDK (pip install dataguru-sdk), one function per API, saves JSON to output/ python examples/sdk_example.py
examples/requests_example.py Plain requests, synchronous python examples/requests_example.py
examples/async_example.py asyncio + httpx, concurrent with a limit python examples/async_example.py
examples/scrapy_spider.py Scrapy spider, items to JSON/CSV scrapy runspider examples/scrapy_spider.py -O trulia.json

All requests use the header Authorization: Api-Key YOUR_API_KEY. Errors return {"success": false, "error": {"code", "message", "request_id"}}, with HTTP 402 when the balance runs out and 429 (with Retry-After) when rate limited. Failed requests are not charged.

API reference

Trulia Real Estate Agents

Directory of local real estate agents on Trulia with ratings and past sales.

Parameter Type Required Description
target string yes City, State, or ZIP code, e.g. Austin, TX

Response fields: target, url, total_agents, agents, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/trulia/agents" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target": "Austin, TX"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "target": "string",
  "url": "https://example.com/...",
  "total_agents": 0,
  "agents": [
    {
      "agent_name": "string",
      "broker_name": "string",
      "phone": "string",
      "listing_address": "string",
      "listing_price": "string",
      "listing_url": "https://example.com/..."
    }
  ],
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "Trulia Real Estate Agents",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

Trulia Real Estate Search

Search homes for sale or rent on Trulia.

Parameter Type Required Description
listing_type string no Listing type: sale, rent Default: sale.
query string yes City, State or ZIP, e.g. Austin, TX

Response fields: query, url, listing_type, total_results, results, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/trulia/search" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "Austin, TX"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "query": "string",
  "url": "https://example.com/...",
  "listing_type": "string",
  "total_results": 0,
  "results": [
    {
      "zpid": "1234567890",
      "url": "https://example.com/...",
      "title": "string",
      "address": {
        "street_address": "string",
        "city": "string",
        "state": "string",
        "zip_code": "string",
        "full_address": "string"
      },
      "price": "string",
      "price_value": 0.0,
      "currency": "USD",
      "price_per_square_foot": "string",
      "property_type": "string",
      "bedrooms": "string",
      "bathrooms": "string",
      "square_footage": "string",
      "lot_size": "string",
      "tags": [
        "string"
      ],
      "primary_photo": "https://example.com/...",
      "coordinates": {
        "latitude": 0.0,
        "longitude": 0.0
      }
    }
  ],
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "Trulia Real Estate Search",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

Trulia Property Details

Extract home details, price, beds, baths, local crime stats, schools, and neighborhood reviews from Trulia.

The examples find the target with Trulia Real Estate Search first, then pass it to this API. Both calls are billed.

Parameter Type Required Description
target string yes Trulia property URL or address slug

Response fields: url, title, description, primary_photo, zpid, price, zestimate, rent_zestimate, bedrooms, bathrooms, living_area_sqft, year_built, home_type, home_status, days_on_zillow, address, latitude, longitude, photos, price_history, tax_history, schools_and_neighborhood, schools, neighborhood, shopping_centers, hoa_fee, lot_size, heating, cooling, parking, agent, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/trulia/property-details" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target": "URL_FROM_SEARCH"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "url": "https://example.com/...",
  "title": "string",
  "description": "string",
  "primary_photo": "https://example.com/...",
  "zpid": "1234567890",
  "price": 0.0,
  "zestimate": 0.0,
  "rent_zestimate": 0.0,
  "bedrooms": 0.0,
  "bathrooms": 0.0,
  "living_area_sqft": 0.0,
  "year_built": 0.0,
  "home_type": "string",
  "home_status": "string",
  "days_on_zillow": 0.0,
  "address": {
    "street": "string",
    "city": "string",
    "state": "string",
    "zipcode": "string"
  },
  "latitude": 0.0,
  "longitude": 0.0,
  "photos": [
    "https://example.com/..."
  ],
  "price_history": [
    "string"
  ],
  "tax_history": [
    "string"
  ],
  "schools_and_neighborhood": {
    "neighborhood": "string",
    "assigned_schools": [
      {
        "level": "string",
        "name": "string",
        "grades": "string",
        "distance_miles": 0.0,
        "greatschools_rating": 0.0
      }
    ],
    "shopping_centers": [
      {
        "name": "string",
        "distance": "string",
        "drive_time": "string"
      }
    ],
    "walk_score": 0.0,
    "transit_score": 0.0,
    "bike_score": 0.0,
    "flood_hazard_score": "string"
  },
  "schools": [
    "string"
  ],
  "neighborhood": "string",
  "shopping_centers": [
    "string"
  ],
  "hoa_fee": 0.0,
  "lot_size": "string",
  "heating": [
    "string"
  ],
  "cooling": [
    "string"
  ],
  "parking": [
    "string"
  ],
  "agent": {
    "name": "string",
    "phone": "string",
    "email": "user@example.com",
    "broker_name": "string",
    "broker_phone": "string",
    "mls_id": "1234567890",
    "mls_name": "string"
  },
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "Trulia Property Details",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

More

License

The example code is MIT licensed. Use of the DataGuru API is subject to the terms of service.

About

Trulia scraper API: Trulia Real Estate Agents, Trulia Real Estate Search, Trulia Property Details as clean JSON. Python examples with requests, Scrapy, asyncio and the DataGuru SDK.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors