{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Scraper — Homes for Sale, Sold & Rentals | from $1.23/1k",
    "description": "Scrape Zillow listings for sale, sold and for rent by city, ZIP, neighborhood or Zillow URL: price, beds, baths, sqft, Zestimate, days on Zillow, price drops. Optional price history, HOA, photos. No agent data.",
    "version": "0.2",
    "x-build-id": "nWUzjYRyXAD7pXxp2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/glasswing~zillow-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-glasswing-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/glasswing~zillow-scraper/runs": {
      "post": {
        "operationId": "runs-sync-glasswing-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/glasswing~zillow-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-glasswing-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": {
          "startUrls": {
            "title": "Locations or Zillow URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "One per line. A city (\"Austin, TX\"), ZIP code (\"78704\"), neighborhood (\"Zilker, Austin, TX\") or county (\"Travis County, TX\"); a Zillow search URL (https://www.zillow.com/austin-tx/rentals/); or a Zillow property URL / ZPID (each property is one detailed row).",
            "default": [
              "Austin, TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "forSale",
              "forRent",
              "sold"
            ],
            "type": "string",
            "description": "Which Zillow search to run for the locations above: homes for sale, rentals, or recently sold homes. A pasted Zillow search URL keeps its own type.",
            "default": "forSale"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows in total (all searches together). Each saved listing with status `ok` is one billable result. Zillow shows at most 820 listings per search (20 pages of 41); split big cities into ZIP codes or neighborhoods for more.",
            "default": 20
          },
          "includeDetails": {
            "title": "Include property details",
            "type": "boolean",
            "description": "Open each listing's Zillow page and add price history, Zestimate and rent Zestimate, tax assessment and annual tax, HOA fee, lot size, year built, facts and features, school names and all photo URLs. Charged as the extra `details` event, only when the details were read. Slower: one extra page per listing.",
            "default": false
          },
          "includeDescription": {
            "title": "Include listing description (needs details)",
            "type": "boolean",
            "description": "Add the listing's description text (with property details on). E-mail addresses and phone numbers in it are removed. Off by default because descriptions sometimes name the listing agent.",
            "default": false
          },
          "zpids": {
            "title": "ZPIDs or property URLs",
            "type": "array",
            "description": "Optional: Zillow property IDs (the number in .../12345678_zpid/) or property URLs to look up directly, as many as you like (duplicates are looked up once). Each property is one detailed row (`result` + `details`); an ID Zillow does not know gives a free `not_found` row. These lookups are never cut by Maximum results, which then only limits the searches.",
            "items": {
              "type": "string"
            }
          },
          "sourceDatasetId": {
            "title": "Source dataset ID (chain a search run)",
            "type": "string",
            "description": "Optional: the ID or name of a dataset from an earlier run, for example a search run of this Actor. Every row with a `zpid` (or a Zillow property `url`) becomes one detailed lookup, added to the ZPIDs above; rows with status `error` or `not_found` and apartment-building cards are skipped. The dataset must belong to your account."
          },
          "homeTypes": {
            "title": "Home types",
            "type": "array",
            "description": "Optional: keep only these home types. For homes for sale with one type picked, Zillow filters the search itself; otherwise the filter is applied to the listings Zillow returns.",
            "items": {
              "type": "string",
              "enum": [
                "houses",
                "condos",
                "townhomes",
                "apartments",
                "multiFamily",
                "manufactured",
                "land"
              ],
              "enumTitles": [
                "Houses",
                "Condos / co-ops",
                "Townhomes",
                "Apartments",
                "Multi-family",
                "Manufactured",
                "Lots / land"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. List price for sale, monthly rent for rentals, sold price for sold homes. Applied to the listings Zillow returns for each search (up to 820)."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Same meaning as the minimum price."
          },
          "minBeds": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "minBaths": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "maxDaysOnZillow": {
            "title": "Maximum days on Zillow",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: only listings that appeared on Zillow at most this many days ago (new listings)."
          },
          "onlyChanges": {
            "title": "Only new or changed listings (monitor)",
            "type": "boolean",
            "description": "Price-drop and new-listing monitor for scheduled runs: the Actor remembers each listing's price and status and only writes (and charges) listings that are new, dropped or raised their price, or changed status since the previous run. Each row gets `changeType`. The first run returns everything.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "Optional: name of the key-value store that keeps the monitor's memory. Use a different name for each separate monitor."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}