{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Sold Homes Scraper: Sale Prices and Dates, No Login",
    "description": "Recently sold homes in any US city, ZIP code, county or Zillow search link: sale price, sale date, price per square foot, beds, baths, size, lot, home type, Zestimate, address and map position. Built for comps. $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "zzzoQTVdNFCzJa6Wg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~zillow-sold-homes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-zillow-sold-homes-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/one_dollar_store~zillow-sold-homes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-zillow-sold-homes-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/one_dollar_store~zillow-sold-homes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-zillow-sold-homes-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": {
          "locations": {
            "title": "Cities, ZIP codes or neighborhoods",
            "type": "array",
            "description": "Places to search, one per line, written the way you would type them into Zillow, for example \"Phoenix, AZ\", \"85018\" or \"Ballard, Seattle, WA\".",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Zillow search links",
            "type": "array",
            "description": "Optional. Paste the link from your browser's address bar after setting up a sold homes search on zillow.com. The area and filters in the link are kept; the filters below are added on top when you set them.",
            "items": {
              "type": "string"
            }
          },
          "soldWithin": {
            "title": "Sold within",
            "enum": [
              "7",
              "14",
              "30",
              "90",
              "180",
              "365",
              "730",
              "1095"
            ],
            "type": "string",
            "description": "How far back to look. A search link that already has its own sold window keeps it.",
            "default": "90"
          },
          "soldAfter": {
            "title": "Sold on or after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Only sales on or after this day (YYYY-MM-DD). When set, it decides how far back the search looks, and \"Sold within\" is not used. Zillow shows sales of the last 36 months only."
          },
          "soldBefore": {
            "title": "Sold on or before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Only sales on or before this day (YYYY-MM-DD). Zillow has no such filter, so newer sales are read and left out (never billed); for an old period use small areas such as ZIP codes."
          },
          "homeType": {
            "title": "Home type",
            "enum": [
              "any",
              "houses",
              "townhomes",
              "condos",
              "multiFamily",
              "land",
              "manufactured"
            ],
            "type": "string",
            "description": "Limit the search to one kind of home. Land shows as LOT in the results.",
            "default": "any"
          },
          "minPrice": {
            "title": "Lowest sale price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no lower limit."
          },
          "maxPrice": {
            "title": "Highest sale price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no upper limit."
          },
          "minBeds": {
            "title": "Bedrooms, at least",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Leave empty for any number."
          },
          "maxBeds": {
            "title": "Bedrooms, at most",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Leave empty for any number."
          },
          "minBaths": {
            "title": "Bathrooms, at least",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Leave empty for any number."
          },
          "minSqft": {
            "title": "Living area, at least (sq ft)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Leave empty for no lower limit."
          },
          "maxSqft": {
            "title": "Living area, at most (sq ft)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Leave empty for no upper limit."
          },
          "minLotSqft": {
            "title": "Lot size, at least (sq ft)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "In square feet (one acre is 43,560). Leave empty for no lower limit."
          },
          "maxLotSqft": {
            "title": "Lot size, at most (sq ft)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "In square feet (one acre is 43,560). Leave empty for no upper limit."
          },
          "minYearBuilt": {
            "title": "Built in or after (year)",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Leave empty for any year."
          },
          "maxYearBuilt": {
            "title": "Built in or before (year)",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Leave empty for any year."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "priceHigh",
              "priceLow",
              "relevance"
            ],
            "type": "string",
            "description": "Which sales come first. With a row limit, this decides which sales you get.",
            "default": "newest"
          },
          "onlyWithSalePrice": {
            "title": "Only sales with a price",
            "type": "boolean",
            "description": "Leave out sales that show no sale price. Texas, Utah and ten other states do not make sale prices public, so most sales there have none.",
            "default": false
          },
          "splitLargeSearches": {
            "title": "Get past Zillow's 1,000 sales per search",
            "type": "boolean",
            "description": "Zillow serves only about the first 1,000 sales of one search. Turn this on to cut a bigger search into map parts and read each one, so a big city can return all its sales up to your maximum. Each extra part costs one page read, which is included in the price. Rows then come part by part, not in one overall order.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many sales in total, across all places. Zillow shows about the first 1,000 sales of any one search; turn on \"Get past Zillow's 1,000 sales per search\", or split a big city into ZIP codes or shorter time windows, to get more. Minimum 10.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Zillow shows a bot check to most data center addresses, so US residential proxy is the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}