{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Scraper (Sale, Rent, Sold, Zestimate, Price Changes)",
    "description": "Zillow homes for sale, for rent and recently sold in one schema: price, Zestimate, rent Zestimate, beds, baths, area, price per sq ft, days on Zillow, brokerage and photos, plus each home's page on request. Tracks price changes between runs. No login.",
    "version": "0.1",
    "x-build-id": "CNFYT6NDfsOpjV8Yd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~zillow-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-zillow-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/locaihost~zillow-scraper/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-zillow-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/locaihost~zillow-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-zillow-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": "Locations",
            "type": "array",
            "description": "Cities, zip codes, counties or neighbourhoods as you would type them on Zillow, e.g. \"Austin, TX\", \"90210\" or \"Brooklyn, NY\". Add the state when a name is common. Zillow search links and property links work here too.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Listing type",
            "enum": [
              "forSale",
              "forRent",
              "sold"
            ],
            "type": "string",
            "description": "For sale, for rent (price is the monthly rent) or recently sold (price is the sold price). A pasted search link keeps its own type.",
            "default": "forSale"
          },
          "maxHomes": {
            "title": "Homes per location",
            "minimum": 1,
            "maximum": 820,
            "type": "integer",
            "description": "Homes returned per location, 1 to 820. Zillow shows at most 820 homes (20 pages) for one search, so split a big city into zip codes or neighbourhoods to get more.",
            "default": 40
          },
          "includeDetails": {
            "title": "Read each home's own page",
            "type": "boolean",
            "description": "Adds year built, HOA fee, property tax rate, last sold price and date, Zillow's own price cut, days listed, views and saves, MLS id, listing brokerage phone, listing agent, description and all photos. One extra request per home, so slower and priced higher per row (see Pricing).",
            "default": false
          },
          "priceMin": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, or lowest monthly rent for rentals. Applies to typed locations, not to pasted links."
          },
          "priceMax": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, or highest monthly rent for rentals. Applies to typed locations, not to pasted links."
          },
          "bedsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only homes with at least this many bedrooms. Applies to typed locations."
          },
          "homeType": {
            "title": "Home type",
            "enum": [
              "any",
              "houses",
              "condos",
              "townhouses",
              "apartments",
              "multi-family",
              "lots-land",
              "manufactured"
            ],
            "type": "string",
            "description": "Only one kind of home. Applies to typed locations; costs one extra Zillow request per location.",
            "default": "any"
          },
          "listedWithinDays": {
            "title": "Listed within (days)",
            "enum": [
              "any",
              "1",
              "7",
              "14",
              "30",
              "90",
              "180",
              "365",
              "730",
              "1095"
            ],
            "type": "string",
            "description": "Only homes listed on Zillow within this window (for sold homes: sold within it). Applies to typed locations.",
            "default": "any"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest",
              "priceHigh",
              "priceLow",
              "beds",
              "size"
            ],
            "type": "string",
            "description": "The order Zillow lists the homes in, which decides which homes fill maxHomes. Applies to typed locations.",
            "default": "relevance"
          },
          "startUrls": {
            "title": "Zillow links",
            "type": "array",
            "description": "Zillow search links (their filters and map area are kept) or property links (www.zillow.com/homedetails/..._zpid/). A property link returns that one home, read in full.",
            "items": {
              "type": "string"
            }
          },
          "zpids": {
            "title": "Zillow property ids (zpid)",
            "type": "array",
            "description": "The number before _zpid in a property link, e.g. 15151265. Each returns that one home, read in full.",
            "items": {
              "type": "string"
            }
          },
          "onlyPriceChanges": {
            "title": "Only new homes and price changes",
            "type": "boolean",
            "description": "For scheduled runs: return a home only when it is new to this search or its price moved since the last run. Everything else is skipped and not charged. The first run returns everything as the baseline.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new homes",
            "type": "boolean",
            "description": "For scheduled runs: return only homes this search has never returned before. The first run returns everything as the baseline.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}