Trulia Real Estate Search
POST /api/v1/trulia/search
Search homes for sale or rent on Trulia.
Overview
Search homes for sale or rent on Trulia.
POST /api/v1/trulia/search
Method: POST Path: /api/v1/trulia/search Category: Real Estate
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| listing_type | string | Optional | Listing type: sale, rent |
| query | string | Required | City, State or ZIP, e.g. Austin, TX |
Request Example
Trulia Real Estate Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/trulia/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"listing_type": "sale", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "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" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Location query or target URL searched |
| url | string | Yes | Full search URL on Trulia |
| listing_type | string | Yes | Type of search: sale, rent, or sold |
| total_results | integer | Yes | Number of listings returned |
| results | array<object> | Yes | List of property listings matching search criteria |
| results[].zpid | string | Yes | Trulia/Zillow unique property ID |
| results[].url | string | Yes | Property listing URL on Trulia |
| results[].title | string | No | Listing headline or full location title |
| results[].address | object | Yes | Structured property postal address |
| results[].address.street_address | string | No | |
| results[].address.city | string | No | |
| results[].address.state | string | No | |
| results[].address.zip_code | string | No | |
| results[].address.full_address | string | No | |
| results[].price | string | Yes | Formatted listing price (e.g. $450,000) |
| results[].price_value | number | null | No | Raw numeric property price |
| results[].currency | string | No | Currency code (e.g. USD) |
| results[].price_per_square_foot | string | null | No | Calculated price per square foot (e.g. $190/sqft) |
| results[].property_type | string | No | Property classification (e.g. Single-Family Home, Condo) |
| results[].bedrooms | string | number | No | Bedroom count or description |
| results[].bathrooms | string | number | No | Bathroom count or description |
| results[].square_footage | string | No | Formatted interior floor space |
| results[].lot_size | string | No | Lot acreage or dimension |
| results[].tags | array<string> | No | Listing badges and feature tags |
| results[].primary_photo | string | null | No | High resolution primary photo URL |
| results[].coordinates | object | No | Geographical coordinates |
| results[].coordinates.latitude | number | null | No | |
| results[].coordinates.longitude | number | null | No |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/trulia/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,listing_type example,sale
Pricing & Rate Limits
Endpoint Pricing
$0.0012 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |