{
  "openapi": "3.0.1",
  "info": {
    "title": "Trulia Scraper — US Listings, Neighborhood Intel & Comps",
    "description": "Scrape Trulia US real estate — for-sale, for-rent and sold listings — by location, ZIP, coordinates or URL. Pull rich property detail with neighborhood amenities, schools, demographics, price history and comparable homes, plus built-in market KPIs and an HTML report.",
    "version": "1.0",
    "x-build-id": "24yg1BKM3ESfJQhvG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~trulia-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-trulia-property-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/sian.agency~trulia-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-trulia-property-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/sian.agency~trulia-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-trulia-property-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "title": "🧭 Operation",
            "enum": [
              "searchByLocation",
              "searchByZip",
              "searchByCoordinates",
              "searchByUrl",
              "detailsById",
              "detailsByUrl",
              "detailsByAddress",
              "amenities",
              "similar",
              "autocomplete"
            ],
            "type": "string",
            "description": "What to pull from Trulia.\n\n**Search (listing rows):**\n• **searchByLocation** — city / state / neighborhood / ZIP / free text (paginated)\n• **searchByZip** — exact 5-digit ZIP\n• **searchByCoordinates** — lat/long + radius\n• **searchByUrl** — paste a Trulia search URL\n\n**Detail (single rich listing):**\n• **detailsById** / **detailsByUrl** / **detailsByAddress** — full detail with neighborhood, schools, demographics, price history, taxes & photos\n\n**Neighborhood + comps:**\n• **amenities** — nearby restaurants, groceries, shopping, fitness & arts\n• **similar** — comparable homes for a listing\n\n**Helper:**\n• **autocomplete** — resolve a location string",
            "default": "searchByLocation"
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "For **searchByLocation** — a city/state, neighborhood, ZIP or free text, e.g. `Austin, TX`, `78704`, `Brooklyn, NY`."
          },
          "zipCode": {
            "title": "🏷️ ZIP Code",
            "type": "string",
            "description": "For **searchByZip** — a 5-digit US ZIP, e.g. `78724`."
          },
          "latitude": {
            "title": "🌐 Latitude",
            "type": "string",
            "description": "For **searchByCoordinates** / **amenities** — center latitude, e.g. `30.2672`."
          },
          "longitude": {
            "title": "🌐 Longitude",
            "type": "string",
            "description": "For **searchByCoordinates** / **amenities** — center longitude, e.g. `-97.7431`."
          },
          "radius": {
            "title": "📏 Radius (miles)",
            "type": "string",
            "description": "For **searchByCoordinates** — search radius in miles around the point (default 10)."
          },
          "url": {
            "title": "🔗 Trulia URL",
            "type": "string",
            "description": "For **searchByUrl / detailsByUrl / similar / amenities** — a Trulia search page (e.g. `https://www.trulia.com/for_sale/Austin,TX/`) or a property page / `/home/...` path (e.g. `/home/7708-dalmation-ln-557-austin-tx-78724-463215544`)."
          },
          "listingId": {
            "title": "🆔 Listing ID",
            "type": "string",
            "description": "For **detailsById** — the listing ID from a Trulia card or URL, e.g. `7463215544` or `463215544`."
          },
          "address": {
            "title": "🏠 Address",
            "type": "string",
            "description": "For **detailsByAddress** — a Trulia-indexed full address, e.g. `7708 Dalmation Ln #557, Austin, TX 78724`."
          },
          "searchType": {
            "title": "🔖 Listing Type",
            "enum": [
              "FOR_SALE",
              "FOR_RENT",
              "SOLD"
            ],
            "type": "string",
            "description": "For search / similar / autocomplete — which listings to return.",
            "default": "FOR_SALE"
          },
          "propertyType": {
            "title": "🏘️ Property Type",
            "type": "string",
            "description": "For **searchByLocation** — comma-separated property types to filter, e.g. `house,condo`. Leave empty for any."
          },
          "minPrice": {
            "title": "💵 Min Price",
            "type": "string",
            "description": "For **searchByLocation** — minimum price filter."
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows to collect for paginated / list operations (also caps amenities). FREE tier is capped at 60.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}