{
  "openapi": "3.0.1",
  "info": {
    "title": "Zillow Listings Scraper -- No Login Required",
    "description": "Extract Zillow property listings, Zestimates, price labels, and optional detail data. No login or cookies needed. Supports city/ZIP search, Zillow URL mode, and address or ZPID lookup.",
    "version": "1.0",
    "x-build-id": "nCAGNqBerhznlAzqH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crowdpull~zillow-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crowdpull-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/crowdpull~zillow-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crowdpull-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/crowdpull~zillow-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crowdpull-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "search",
              "url",
              "lookup"
            ],
            "type": "string",
            "description": "Search mode finds listings by location. URL mode accepts Zillow search URLs. Lookup mode fetches details for specific addresses or ZPIDs.",
            "default": "search"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, zip code, or neighborhood (e.g. 'Chicago, IL', '77008', 'Montrose Houston TX')."
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "for_sale",
              "recently_sold",
              "for_rent",
              "foreclosure"
            ],
            "type": "string",
            "description": "Type of listing to search for.",
            "default": "for_sale"
          },
          "priceMin": {
            "title": "Min Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price filter."
          },
          "priceMax": {
            "title": "Max Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price filter."
          },
          "bedsMin": {
            "title": "Min Bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bedrooms."
          },
          "bathsMin": {
            "title": "Min Bathrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bathrooms."
          },
          "homeTypes": {
            "title": "Home Types",
            "type": "array",
            "description": "Filter by property type. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "houses",
                "townhomes",
                "multifamily",
                "condos",
                "land",
                "apartments",
                "manufactured"
              ],
              "enumTitles": [
                "Houses",
                "Townhomes",
                "Multi-Family",
                "Condos/Co-ops",
                "Land",
                "Apartments",
                "Manufactured"
              ]
            }
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "newest",
              "relevance",
              "pricea",
              "priced",
              "beds",
              "baths",
              "size",
              "lot",
              "zest"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "newest"
          },
          "daysOnZillow": {
            "title": "Days on Zillow",
            "enum": [
              "",
              "1",
              "7",
              "14",
              "30",
              "90",
              "6m",
              "12m",
              "24m",
              "36m"
            ],
            "type": "string",
            "description": "Filter by how long the listing has been on Zillow.",
            "default": ""
          },
          "sqftMin": {
            "title": "Min Square Feet",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum square footage."
          },
          "sqftMax": {
            "title": "Max Square Feet",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum square footage."
          },
          "lotSizeMin": {
            "title": "Min Lot Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum lot size in sqft."
          },
          "lotSizeMax": {
            "title": "Max Lot Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum lot size in sqft."
          },
          "yearBuiltMin": {
            "title": "Min Year Built",
            "minimum": 1800,
            "maximum": 2030,
            "type": "integer",
            "description": "Minimum year built."
          },
          "yearBuiltMax": {
            "title": "Max Year Built",
            "minimum": 1800,
            "maximum": 2030,
            "type": "integer",
            "description": "Maximum year built."
          },
          "hasPool": {
            "title": "Has Pool",
            "type": "boolean",
            "description": "Filter to properties with a pool.",
            "default": false
          },
          "hasAC": {
            "title": "Has Air Conditioning",
            "type": "boolean",
            "description": "Filter to properties with air conditioning.",
            "default": false
          },
          "isWaterfront": {
            "title": "Waterfront",
            "type": "boolean",
            "description": "Filter to waterfront properties.",
            "default": false
          },
          "isSingleStory": {
            "title": "Single Story",
            "type": "boolean",
            "description": "Filter to single-story properties.",
            "default": false
          },
          "hasGarage": {
            "title": "Has Garage",
            "type": "boolean",
            "description": "Filter to properties with a garage.",
            "default": false
          },
          "hasBasement": {
            "title": "Has Basement",
            "type": "boolean",
            "description": "Filter to properties with a basement.",
            "default": false
          },
          "has3DTour": {
            "title": "Has 3D Tour",
            "type": "boolean",
            "description": "Filter to properties with 3D tours.",
            "default": false
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum listings to return. SRP searches follow Zillow pagination and mark resultsCapped when Zillow's visible result cap applies.",
            "default": 500
          },
          "searchUrls": {
            "title": "Zillow Search URLs",
            "type": "array",
            "description": "Zillow search URLs with searchQueryState parameter. Apply filters on Zillow first, then paste the URL.",
            "items": {
              "type": "string"
            }
          },
          "addresses": {
            "title": "Addresses",
            "type": "array",
            "description": "Addresses to look up. Each is resolved to a ZPID via autocomplete.",
            "items": {
              "type": "string"
            }
          },
          "zpids": {
            "title": "ZPIDs",
            "type": "array",
            "description": "Zillow Property IDs to fetch directly.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include Detail Enrichment",
            "type": "boolean",
            "description": "Fetch each property's detail page for year built, agent info, description, photos, and more. Slower but much richer.",
            "default": false
          },
          "enableDedup": {
            "title": "Enable Deduplication",
            "type": "boolean",
            "description": "Skip properties already scraped in previous runs. Uses a persistent cache keyed by location.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Max concurrent detail page requests. Higher = faster but more block risk.",
            "default": 1
          },
          "delayMs": {
            "title": "Delay Between Requests (ms)",
            "minimum": 50,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between requests in milliseconds.",
            "default": 200
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Residential proxies recommended. Search mode uses SRP __NEXT_DATA__ first when a proxy is available; datacenter proxies are commonly blocked.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}