{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Scraper",
    "description": "Scrape Zillow real-estate listings as clean JSON — search homes for sale, for rent and recently sold by location, map bounds or a Zillow search URL. Get price, beds, baths, sqft, lot size, address, coordinates, Zestimate, photos, days-on-market and broker. No proxies, no CAPTCHAs, no login.",
    "version": "0.1",
    "x-build-id": "onCjEj9l1cTp1jCGs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reefapi~zillow-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reefapi-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/reefapi~zillow-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reefapi-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/reefapi~zillow-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reefapi-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": {
          "action": {
            "title": "Action",
            "enum": [
              "search",
              "search_by_url",
              "search_by_coordinates",
              "sold",
              "autocomplete"
            ],
            "type": "string",
            "description": "What to run: search listings, replay a Zillow URL, search by map bounds, recently-sold, or location autocomplete.",
            "default": "search"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Where to search — city, ZIP, neighborhood or county. e.g. 'Austin, TX', '78704', 'Brooklyn, NY'. (search / sold)"
          },
          "status": {
            "title": "Listing status",
            "enum": [
              "for_sale",
              "for_rent",
              "sold"
            ],
            "type": "string",
            "description": "Which listings to return.",
            "default": "for_sale"
          },
          "url": {
            "title": "Zillow URL (search_by_url)",
            "type": "string",
            "description": "A Zillow search-results URL (with ?searchQueryState=...) or a property URL to replay. Used by the 'Search by Zillow URL' action."
          },
          "map_bounds": {
            "title": "Map bounds (search_by_coordinates)",
            "type": "object",
            "description": "Bounding box for a map search: {\"north\":.., \"south\":.., \"east\":.., \"west\":..}. Used by 'Search by map bounds'."
          },
          "query": {
            "title": "Query (autocomplete)",
            "type": "string",
            "description": "Partial location text for the 'Location autocomplete' action. e.g. 'austi'."
          },
          "fetch_all": {
            "title": "Fetch ALL listings (bypass ~860 cap)",
            "type": "boolean",
            "description": "Return EVERY listing in the area by subdividing dense zones — goes beyond Zillow's standard ~860-result cap. Slower; combine with Max results.",
            "default": false
          },
          "max_results": {
            "title": "Max results",
            "type": "integer",
            "description": "Stop after this many listings (a single page ~41 is always returned in full)."
          },
          "price_min": {
            "title": "Min price (USD)",
            "type": "integer",
            "description": "Minimum list price."
          },
          "price_max": {
            "title": "Max price (USD)",
            "type": "integer",
            "description": "Maximum list price."
          },
          "beds_min": {
            "title": "Min beds",
            "type": "integer",
            "description": "Minimum bedrooms (3 = 3+)."
          },
          "baths_min": {
            "title": "Min baths",
            "type": "integer",
            "description": "Minimum bathrooms (2 = 2+)."
          },
          "home_type": {
            "title": "Home type",
            "type": "string",
            "description": "Property type(s), comma-separated: house, condo, townhouse, multi_family, land, manufactured, apartment."
          },
          "days_on_max": {
            "title": "Max days on Zillow",
            "type": "integer",
            "description": "Only listings live at most this many days (7 = new this week)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text listing filter, e.g. 'pool', 'waterfront', 'guest house'."
          },
          "params": {
            "title": "Advanced parameters",
            "type": "object",
            "description": "Any extra parameters as key/value JSON (sqft_min/max, lot_min/max, year_built_min/max, max_hoa, max_pages, …). Merged into the request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}