{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Foreclosure Scraper: REO, Auctions & Pre-Foreclosure",
    "description": "[From $1.1💰] Scrape every Zillow foreclosure, pre-foreclosure, bank-owned (REO) home & foreclosure auction in any US city or ZIP — auction dates & locations, filing dates, unpaid balance, plus full property details, price & tax history",
    "version": "0.0",
    "x-build-id": "lBLyfI0hd3jR9uZrS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~zillow-foreclosure-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-zillow-foreclosure-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/memo23~zillow-foreclosure-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-zillow-foreclosure-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/memo23~zillow-foreclosure-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-zillow-foreclosure-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": {
          "searchLocation": {
            "title": "Search location(s)",
            "type": "array",
            "description": "City, county, neighborhood, or ZIP code — e.g. \"Cleveland, OH\", \"Miami-Dade County, FL\", or \"44105\". One per line; each becomes its own distressed-property search.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Zillow search URLs (optional)",
            "type": "array",
            "description": "Alternative to Search location(s): paste any Zillow search URL (map area, drawn region, filtered search). The distressed-only filter is applied automatically on top of whatever the URL already filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max properties to scrape",
            "type": "integer",
            "description": "Maximum number of distressed-property listings to return.",
            "default": 100
          },
          "distressedTypes": {
            "title": "Distressed listing types",
            "type": "array",
            "description": "Which distressed classes to return. Leave all selected for the full distressed market.",
            "items": {
              "type": "string",
              "enum": [
                "foreclosure",
                "preForeclosure",
                "auction",
                "bankOwned"
              ],
              "enumTitles": [
                "Foreclosures (listed for sale)",
                "Pre-foreclosures (default filed, before auction)",
                "Foreclosure auctions",
                "Bank-owned / REO pre-market (foreclosed, not yet listed)"
              ]
            }
          },
          "priceMin": {
            "title": "Price: minimum ($)",
            "type": "integer",
            "description": "Minimum listing price. Leave blank for no minimum. Note: pre-foreclosures often have no list price and are unaffected."
          },
          "priceMax": {
            "title": "Price: maximum ($)",
            "type": "integer",
            "description": "Maximum listing price. Leave blank for no maximum."
          },
          "bedsMin": {
            "title": "Bedrooms: minimum",
            "type": "integer",
            "description": "Minimum bedrooms."
          },
          "bathsMin": {
            "title": "Bathrooms: minimum",
            "type": "integer",
            "description": "Minimum bathrooms."
          },
          "homeTypes": {
            "title": "Home types",
            "type": "array",
            "description": "Limit to specific property types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "townhouse",
                "condo",
                "apartment",
                "manufactured",
                "lotLand",
                "multiFamily"
              ],
              "enumTitles": [
                "Houses",
                "Townhomes",
                "Condos/Co-ops",
                "Apartments",
                "Manufactured",
                "Lots/Land",
                "Multi-family"
              ]
            }
          },
          "includePropertyDetails": {
            "title": "Include full property details",
            "type": "boolean",
            "description": "Fetch each listing's detail page for the foreclosure specifics — auction date, time & location, default/lis-pendens filing date, unpaid balance, foreclosure type (REO vs pre-foreclosure vs auction) — plus full description, photos, price & tax history, schools, and agent info. Recommended — without it rows carry only the basic search-card fields.",
            "default": true
          },
          "flatOutput": {
            "title": "Flattened output (spreadsheet-friendly)",
            "type": "boolean",
            "description": "Each row becomes a simple flat object with \"Foreclosure Type\", \"Auction Date\", \"Default Filing Date\", \"Unpaid Balance\" columns plus the most requested property columns — ideal for CSV/Excel. When off, rows carry a raw `foreclosure` object and the full details blob.",
            "default": false
          },
          "enrichEmails": {
            "title": "Enrich with the listing agent's contact email (billed per email found)",
            "type": "boolean",
            "description": "Adds the listing agent's email and phone to each row — matched from our database of 420,000+ U.S. agents. Only charged when an email is actually returned. (Pre-foreclosures are off-market and usually carry no agent.)",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of pages processed in parallel.",
            "default": 20
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "maximum": 20,
            "type": "integer",
            "description": "Number of times a failed request is retried before giving up.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — the actor already routes all traffic through its own built-in residential proxy at no extra cost to you. Only set this if you want to use your own proxies."
          },
          "distressedOnly": {
            "title": "Distressed properties only",
            "type": "boolean",
            "description": "Always on for this actor — every returned listing is a foreclosure, pre-foreclosure, auction, or bank-owned property.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}