{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Scraper: Listings, Prices & Zestimates",
    "description": "Zillow scraper for real estate listings: paste a Zillow search and get one record per home with price, Zestimate, beds, baths, living area, address, status, broker and pictures. Monitor a search on a schedule for new listings, price changes and removals.",
    "version": "0.1",
    "x-build-id": "rocvPH2j6n9Cz13hE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kaleidoscopelabs~zillow-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kaleidoscopelabs-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/kaleidoscopelabs~zillow-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kaleidoscopelabs-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/kaleidoscopelabs~zillow-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kaleidoscopelabs-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": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Zillow searches, one per line: a place's page on www.zillow.com, such as a city, a ZIP code or a neighborhood, with the filters Zillow writes into the address (`/sold/`, `/newest/`, `/houses/`, `/under-400000/`). An address that carries a map or filter state (a searchQueryState part after a question mark) is not read yet; rentals searches are not read yet either. A line that is no search is skipped, not charged, and the log says why. A run reads at most 200 searches; split a longer list over several runs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Places to search, one per line, when you have no address to paste: a five-digit ZIP code, such as 78704, or a city with its state's two letters, such as Austin, TX. Each line is one search, read like a pasted one and counted in the 200 searches of a run. A place Zillow does not know is reported as not found; a line that is no place is skipped, not charged, and the log says why. For a county, a neighborhood or any other filter, paste the search's address in Search URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listingStatus": {
            "title": "Listing status",
            "enum": [
              "forSale",
              "sold"
            ],
            "type": "string",
            "description": "For the places in Locations: homes for sale, or recently sold homes. It does not change the searches pasted in Search URLs.",
            "default": "forSale"
          },
          "homeType": {
            "title": "Home type",
            "enum": [
              "",
              "houses",
              "condos",
              "townhomes",
              "multiFamily",
              "land",
              "manufactured"
            ],
            "type": "string",
            "description": "For the places in Locations: every home type, or one. Zillow applies one filter from a search page's address, so one type can be chosen, not several, and not together with Sold; beds, baths, price ranges and sort orders cannot be set here. It does not change the searches pasted in Search URLs.",
            "default": ""
          },
          "listingsPerSearch": {
            "title": "Listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "How many of each search's first results the run stores: 100 stores the homes among its first 100 results. 0 stores every listing the search's pages show (Zillow shows up to 820 a search). A result that is not a single home, or a home two of your searches find (stored once, for one of them), leaves its place empty, so a search can end with fewer.",
            "default": 100
          },
          "mode": {
            "title": "What a run stores",
            "enum": [
              "all",
              "new",
              "changes"
            ],
            "type": "string",
            "description": "All listings stores each search's listings on every run and remembers nothing between runs. New listings stores only the homes this monitor has not seen before among each search's first results (up to Listings per search): use the search's newest form, such as https://www.zillow.com/austin-tx-78704/newest/, so that new listings come first. New, changed and removed listings also stores a listing whose price or status changed, with what it was before and the prices the monitor has seen it at, and a listing that is gone from its search. Removed listings are told only when a run reads the whole search (Listings per search 0, or at least as many as the search lists, on a search of at most 820 results) and two such runs in a row miss the listing. On a search with a filter such as /newest/, a home that leaves the filtered list is reported as removed even when it is still for sale: for removals, monitor the place itself. A monitor's first run stores the current listings as new, unless Start from now is on.",
            "default": "all"
          },
          "startFromNow": {
            "title": "Start from now",
            "type": "boolean",
            "description": "On a monitor's first run of a search, record the search's current listings without storing them, so that later runs store only what comes after. Off: the first run stores the current listings, up to Listings per search.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^.{0,100}$",
            "type": "string",
            "description": "Keeps this monitor's state apart from another's on the same search: two schedules on one search with different names each receive every new listing. Leave empty if one monitor watches each search. Do not run one monitor twice at the same time. At most 100 characters."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}