{
  "openapi": "3.0.1",
  "info": {
    "title": "🏠 Zillow Scraper — Listings, Price History & Contact",
    "description": "Scrape live Zillow listings: price, beds/baths, sqft, address, days on market, tax value, zestimate. Optional detail mode adds description, price history, MLS info and contact phone. No official API — reads Zillow's own structured data via a stealth browser. For sale, rent, or recently sold.",
    "version": "1.0",
    "x-build-id": "LQZmZa5wcW63GXCzO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inexhaustible_glass~zillow-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inexhaustible_glass-zillow-listings-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/inexhaustible_glass~zillow-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-inexhaustible_glass-zillow-listings-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/inexhaustible_glass~zillow-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-inexhaustible_glass-zillow-listings-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": {
          "location": {
            "title": "📍 Location (listings mode)",
            "type": "string",
            "description": "City/state or ZIP, Zillow URL-slug format (spaces/commas are converted automatically). Examples: austin-tx, 78704, miami-fl. Leave empty if using Agent directory location below instead."
          },
          "agentLocation": {
            "title": "🧑‍💼 Agent directory location (agent mode)",
            "type": "string",
            "description": "City/state slug to search Zillow's real-estate AGENT directory instead of property listings (e.g. austin-tx). Set this to switch the whole run into agent mode — returns agent/team name, rating, review count, sales stats, and (optionally) licensed contact info. Leave empty for normal listings mode."
          },
          "maxAgentResults": {
            "title": "🔢 Max agents/teams (agent mode)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many agent/team cards to pull from the directory page when Agent directory location is set.",
            "default": 20
          },
          "includeLicenseAndContact": {
            "title": "📇 Include license + direct contact (agent mode, slower)",
            "type": "boolean",
            "description": "When Agent directory location is set: visit each agent's own Zillow profile page for their real license number(s) and direct personal email/cell/business phone/business address — richer than the brokerage-level contact in listings mode. Each enriched agent is a billed event. Off by default since it's slower (one extra bot-protected page load per agent, with automatic retries).",
            "default": false
          },
          "listingType": {
            "title": "🏷️ Listing type",
            "enum": [
              "for_sale",
              "for_rent",
              "recently_sold"
            ],
            "type": "string",
            "description": "For sale, for rent, or recently sold.",
            "default": "for_sale"
          },
          "minPrice": {
            "title": "💰 Min price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this."
          },
          "maxPrice": {
            "title": "💰 Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this."
          },
          "minBeds": {
            "title": "🛏️ Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this many bedrooms."
          },
          "minBaths": {
            "title": "🛁 Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this many bathrooms."
          },
          "homeTypes": {
            "title": "🏘️ Home type filter (optional)",
            "type": "array",
            "description": "Only keep these home types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "SINGLE_FAMILY",
                "CONDO",
                "TOWNHOUSE",
                "MULTI_FAMILY",
                "MANUFACTURED",
                "LOT",
                "APARTMENT"
              ]
            }
          },
          "includeDetails": {
            "title": "📞 Include contact/description detail (slower)",
            "type": "boolean",
            "description": "Visit each listing's own page for its full description, price history, MLS info, and the listing's contact phone number (brokerage-routed in most cases — Zillow never exposes a personal agent e-mail, only a phone number). Detail pages are bot-protected; each attempt is retried with a fresh IP + browser session automatically, which makes this noticeably slower than the base scrape. On by default since this is the data most users actually want — turn it off for a faster, lighter scrape.",
            "default": true
          },
          "includeBrokerageContact": {
            "title": "🌐 Also look up brokerage website + general email (slower, needs Include detail)",
            "type": "boolean",
            "description": "Zillow's own listing data never includes an agent's name or e-mail — verified live, repeatedly. This adds ONE extra step: search for the listing's brokerage's own official website and read its published general contact e-mail/phone off it (real, found data — never a guessed name@domain). This is the brokerage's general office contact, NOT the specific listing agent — labeled as such in the output. Cached per brokerage per run, so it only costs one extra lookup per unique brokerage in your results, not per listing.",
            "default": false
          },
          "maxResults": {
            "title": "🔢 Max listings",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many listings to pull.",
            "default": 50
          },
          "maxPages": {
            "title": "📄 Max search pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Safety cap on how many Zillow search-result pages to page through (~40 listings/page before filtering).",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}