新品:Scrapier MCP 服务器。一条命令即可在 Claude Code 中使用每个抓取器。了解如何使用 →
GET/api/v2/zillow-search/

Zillow Search Scraper API

最后更新: · REST · JSON

简要回答

发送 GET https://proxy.scrapier.io/api/v2/zillow-search/?url=YOUR_URL,并在 X-API-Key 请求头中带上你的密钥。搜索页将以 JSON 返回。每个搜索页 10 积分;失败的调用免费。

  • 每个搜索页 10 积分
  • 失败的调用免费
  • 每个密钥 3 个并行请求
复制给 你的 AI 智能体
API

调用 Zillow Search Scraper API

在你自己的应用、脚本或智能体中使用 Zillow Search Scraper API。你需要一个 Scrapier 账号和控制台中的 API 密钥。选择一种语言。

search.py
import requests# Replace YOUR_API_KEY with the key from your Scrapier dashboardAPI_KEY = "YOUR_API_KEY"params = {    "url": "https://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22isMapVisible%22%3Atrue%2C%22mapBounds%22%3A%7B%22west%22%3A-124.61%2C%22east%22%3A-120.37%2C%22south%22%3A36.71%2C%22north%22%3A38.74%7D%2C%22filterState%22%3A%7B%22sort%22%3A%7B%22value%22%3A%22days%22%7D%7D%2C%22isListVisible%22%3Atrue%7D",    "method": "zoom",    "delay": "1",}r = requests.get(    "https://proxy.scrapier.io/api/v2/zillow-search/",    headers={"X-API-Key": API_KEY},    params=params,    timeout=210,)r.raise_for_status()# The result sits under data.listingsresult = r.json()["data"]["listings"]print(result)

Python 版 Zillow Search Scraper API

只需普通的 requests,无需 SDK。每个响应都是类型化 JSON。

安装

$ pip install requests

其他调用方式

试用区

Zillow Search Scraper API 交互式试用区

编辑请求,观察代码更新,然后运行。没有密钥时它显示目录示例,不计费。使用你的密钥时,它会从浏览器发出真实调用;密钥只会发送到 proxy.scrapier.io,从不存储。

没有密钥?运行目录示例。
就绪延迟 —已计费积分:0
请求已就绪GET /api/v2/zillow-search/?url=https://www.zillow.com/homes/for_sale/?searchQueryState=…

点击运行请求发送。没有密钥时你得到的是目录示例。

正在发送请求…
错误

失败的调用不计费。

导入到 PostmanOpenAPI 规范

无论输入什么,示例都相同:它展示的是响应结构,而不是你输入的账户。

示例响应,目录示例,2026 年11月 9 日
{
  "success": true,
  "data": {
    "url": "https://www.zillow.com/homes/for_sale/?searchQueryState=...",
    "page": 1,
    "page_size": 40,
    "listings": [
      {
        "zpid": "12345678",
        "detailUrl": "https://www.zillow.com/homedetails/.../12345678_zpid/",
        "address": "123 Main St",
        "city": "San Francisco",
        "state": "CA",
        "zipcode": "94110",
        "price": 1250000,
        "bedrooms": 3,
        "bathrooms": 2,
        "livingArea": 1450,
        "homeStatus": "FOR_SALE",
        "foundFromSearchUrl": "https://www.zillow.com/homes/for_sale/?searchQueryState=..."
      }
    ],
    "next_cursor": "eyJoIjoiYWJjMTIzIiwicCI6MiwidSI6Imh0dHBzOi8vd3d3LnppbGxvdy5jb20vaG9tZXMvZm9yX3NhbGUvIn0"
  }
}
数据

你可以提取的数据

Zillow Search Scraper 可提取任何 Zillow 搜索背后的房源:你发送一个地图搜索的 URL,每次调用返回一页房源,包含 zpid、详情 URL、街道地址、城市、州、邮编、价格、卧室数、卫生间数、居住面积和房源状态。下面的每个字段都来自目录中的示例响应,为带类型的 JSON。

房源标识

响应中有 3 个字段。

  • zpid
  • detailUrl
  • foundFromSearchUrl

位置

响应中有 4 个字段。

  • address
  • city
  • state
  • zipcode

价格、面积和状态

响应中有 5 个字段。

  • price
  • bedrooms
  • bathrooms
  • livingArea
  • homeStatus

响应结构与分页

响应中有 5 个字段。

  • success
  • data.url
  • data.page
  • data.page_size
  • data.next_cursor
结构

响应结构参考

示例响应中的每个字段。字段名每次调用都保持不变。

字段类型示例说明
listings.zpidstring"12345678"Zillow's 的房产 ID,字符串形式
listings.detailUrlstring"https://www.zillow.com/homedetails/.../1234…"指向该房源在 Zillow 上页面的链接
listings.foundFromSearchUrlstring"https://www.zillow.com/homes/for_sale/?sear…"找到该房源所用的搜索 URL
listings.addressstring"123 Main St"房屋的街道地址
listings.citystring"San Francisco"房屋所在城市
listings.statestring"CA"州代码,如 CA
listings.zipcodestring"94110"房屋的邮编
listings.priceinteger1250000以数字表示的挂牌价格
listings.bedroomsinteger3卧室数量
listings.bathroomsinteger2卫生间数量
listings.livingAreainteger1450以数字表示的居住面积,示例中为 1450
listings.homeStatusstring"FOR_SALE"房源状态,例如 FOR_SALE
successbooleantrue每个 200 响应都为 true
data.urlstring"https://www.zillow.com/homes/for_sale/?sear…"你发送的搜索 URL,原样返回
data.pageinteger1此响应的页码;首次调用为 1
data.page_sizeinteger40每页房源数;目录示例中为 40
data.next_cursorstring"eyJoIjoiYWJjMTIzIiwicCI6MiwidSI6Imh0dHBzOi8…"作为 cursor 传回即可获取下一页;最后一页为 null
参数

请求参数参考

名称类型必填默认值说明示例
urlstring是—带有含 mapBounds 和 filterState 的 searchQueryState 的 Zillow 搜索 URL。每次调用一个。别名:urlshttps://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22isMapVisible%22%3Atrue%2C%22mapBounds%22%3A%7B%22west%22%3A-124.61%2C%22east%22%3A-120.37%2C%22south%22%3A36.71%2C%22north%22%3A38.74%7D%2C%22filterState%22%3A%7B%22sort%22%3A%7B%22value%22%3A%22days%22%7D%7D%2C%22isListVisible%22%3Atrue%7D
cursorstring否—传回 data.next_cursor 以获取下一页;为 null 表示最后一页。首次调用时留空—
methodstring否zoomzoom(异步 API,默认)或 html(页面数据)。别名:extraction_method、extractionMethod。旧值 PAGINATION_WITH_ZOOM_IN 和 MAP_MARKERS 对应 zoom;PAGINATION_WITHOUT_ZOOM_IN 和 HTML 对应 htmlzoom
delaystring否1请求之间的间隔,单位为秒,可用小数。默认 1。两种方式均适用1
use_proxyboolean否true通过 Scrapier 的住宅代理池路由。默认开启;保持原样即可true
raw_databoolean否false在 raw_responses 下返回 Zillow 的原始上游数据,而不是格式化后的房源true

每次调用一个搜索 URL:要运行十个搜索,就调用十次。布尔值是字符串 true 或 false。

Zillow Search Scraper API 的分页

Zillow Search Scraper API 按页返回结果。把 data.next_cursor 作为 cursor 传回即可获取下一页;当它为 null 时就没有更多了。每次成功调用,无论首页还是后续页,都消耗 10 积分。

访问

无需登录 Zillow 即可访问

Zillow Search Scraper API 不需要 Zillow 账号、登录或会话 Cookie。你在 X-API-Key 请求头中发送 Scrapier 密钥,即可获得 JSON。它只读取公开数据:任何访客无需登录就能看到的内容。

性能

速度、成本和并发

指标数值来源
成功调用的成本10 积分Scrapier 目录
失败调用的成本0 积分任何非 2xx 响应
每个密钥的并行请求数3超过后:429 和 Retry-After
建议的客户端超时210 秒Scrapier 文档,适用于每个端点

Zillow Search Scraper API 的延迟

Scrapier 不公布该端点的延迟或成功率数据。每次调用都在调用时读取 Zillow,因此响应时间取决于 Zillow 和结果的大小。请像文档对每个端点建议的那样,把客户端超时设为 210 秒。

限制

端点的限制

Zillow Search Scraper API 的实际限制。

  • 仅限公开数据。
  • 失败的调用,例如搜索页缺失或不可用,会返回非 2xx 状态,且消耗 0 积分。
  • 数据在调用时实时读取。
  • 每个密钥 3 个并行请求;超过后 API 会返回 429 和 Retry-After。
  • 较大的结果分页返回;把 data.next_cursor 作为 cursor 传回。
  • Zillow 不显示的字段不会返回。
对比

Scrapier vs 官方 Zillow API

如果你持有合作伙伴协议,并需要按 Zillow 许可条款使用数据,Zillow 自己的 API 是更好的选择。请查看 Zillow 当前的开发者条款,了解其涵盖范围。

功能Scrapier 搜索页抓取器官方 Zillow API
所需权限一个 Scrapier API 密钥通过申请和审批获得合作伙伴权限
哪些房源你能在 zillow.com 上打开的搜索中的任何公开房源你的合作协议所涵盖的数据集
返回的字段12 个房源字段,包括价格、卧室数、卫生间数和状态字段由数据集和你的协议决定
速率限制每个密钥最多 3 个并行请求;超出返回 429 和 Retry-After由你的协议决定
设置时间几分钟:注册并发送请求需先申请并获批准
成本每个搜索页 10 积分,每 1,000 页低至 $1.20由你的协议决定
错误

错误与重试处理

状态含义是否计费解决办法
200搜索页数据,返回在 data.listings 中是—
400输入有误或缺失否检查 url:每次调用一个值
401缺少 X-API-Key 请求头否添加该请求头
402积分用完(响应体含 balance)否充值;重试无济于事
403API 密钥无效或已撤销否在控制台中检查密钥
429被限流否等待 Retry-After 秒后重试
5xx上游故障或超时否退避重试;把客户端超时设为 210 s

来自错误参考。任何非 2xx 响应消耗 0 积分。

Zillow Search Scraper API 的重试逻辑

retry.py
import time, requests

def get_search(value, key, tries=5):
    for attempt in range(tries):
        r = requests.get(
            "https://proxy.scrapier.io/api/v2/zillow-search/",
            headers={"X-API-Key": key},
            params={"url": value},
            timeout=210,
        )
        if r.status_code == 429:
            time.sleep(int(r.headers.get("Retry-After", 2 ** attempt)))
        elif r.status_code >= 500:
            time.sleep(2 ** attempt)
        else:
            r.raise_for_status()
            return r.json()
    raise RuntimeError("gave up after retries")
价格

价格与速率限制

套餐月费包含的搜索页数每 1,000 次成本
Hobby$2915,000$1.93
Pro$7950,000$1.58
Scale$299250,000$1.20

查看所有套餐 →

Zillow Search Scraper API 的计费规则

Zillow Search Scraper API 对每个成功的搜索页收取 10 积分。失败的调用,即任何非 2xx 状态,消耗 0 积分。每个套餐都允许每个密钥并行 3 个请求。免费额度让你先试用再付费。

批量

批量查询与 CSV

url 每次调用只接受一个值。对于列表,循环调用,每个密钥最多并行 3 个请求,然后把每一行展平为一行 CSV。

bulk.py
import csv, requests
from concurrent.futures import ThreadPoolExecutor

values = ["https://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22isMapVisible%22%3Atrue%2C%22mapBounds%22%3A%7B%22west%22%3A-124.61%2C%22east%22%3A-120.37%2C%22south%22%3A36.71%2C%22north%22%3A38.74%7D%2C%22filterState%22%3A%7B%22sort%22%3A%7B%22value%22%3A%22days%22%7D%7D%2C%22isListVisible%22%3Atrue%7D"]  # your list

def fetch(value):
    r = requests.get(
        "https://proxy.scrapier.io/api/v2/zillow-search/",
        headers={"X-API-Key": "YOUR_API_KEY"},
        params={"url": value},
        timeout=210,
    )
    r.raise_for_status()
    out = r.json()["data"]["listings"]
    return out if isinstance(out, list) else [out]

# 3 parallel requests per key is the limit
with ThreadPoolExecutor(max_workers=3) as pool:
    rows = [row for part in pool.map(fetch, values) for row in part]

cols = ["zpid", "detailUrl", "address", "city", "state", "zipcode"]
with open("out.csv", "w", newline="") as f:
    w = csv.DictWriter(f, fieldnames=cols, extrasaction="ignore")
    w.writeheader()
    w.writerows(rows)

从 Zillow Search Scraper API 导出 CSV

out.csv目录示例 · 1 行
zpid,detailUrl,address,city,state,zipcode
12345678,https://www.zillow.com/homedetails/.../12345678_zpid/,123 Main St,San Francisco,CA,94110
智能体

通过 MCP 供 AI 智能体访问

Zillow Search Scraper API 的 MCP

AI 智能体可通过 https://mcp.scrapier.io/mcp 上的 Scrapier MCP 服务器使用同一个端点。一条命令即可在 Claude Code 中注册:claude mcp add -t http scrapier https://mcp.scrapier.io/mcp --header "X-API-Key: YOUR_API_KEY"。智能体用 search_endpoints 找到该端点,并用 run_scrape 和端点 id zillow-search 调用。它接受相同的 url 输入,每个搜索页同样消耗 10 积分。各客户端的设置见 Zillow Search Scraper MCP 页面。

集成

按角色划分的集成路径

无代码

n8n 和 Make

  1. 添加一个 HTTP Request 步骤
  2. 带上你的 X-API-Key 请求头,对该端点发送 GET
  3. 把 data.listings 的字段映射到你的列
开发者

循环并翻页

for value in values: rows += get(value) while cur := page["data"]["next_cursor"]: page = get(cursor=cur)
AI 智能体

智能体中的 MCP 工具

在 Claude、Cursor 或 Windsurf 中,用端点 zillow-search 调用 run_scrape。设置见 MCP 页面。

分析师

CSV 和展平的 JSON

把每一行展平为一行 CSV,每个字段一列,可直接用于 Sheets、Excel 或 BI 工具。

常见问题

常见问题

有 Zillow 搜索页 API 吗?

有。Scrapier's 的 Zillow Search Scraper API 只需一个 GET 请求和一个 X-API-Key 请求头,就能把任何公开搜索页以 JSON 返回。无需 Zillow 应用或登录。

如何从 Python 调用?

对 <code>https://proxy.scrapier.io/api/v2/zillow-search/</code> 使用 <code>requests.get</code>,并带上 <code>params={'url': 'https://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22isMapVisible%22%3Atrue%2C%22mapBounds%22%3A%7B%22west%22%3A-124.61%2C%22east%22%3A-120.37%2C%22south%22%3A36.71%2C%22north%22%3A38.74%7D%2C%22filterState%22%3A%7B%22sort%22%3A%7B%22value%22%3A%22days%22%7D%7D%2C%22isListVisible%22%3Atrue%7D'}</code> 和 <code>headers={"X-API-Key": KEY}</code>。读取 <code>r.json()["data"]["listings"]</code>。

调用失败时会怎样?

任何非 200 响应都免费。对 429 和 5xx 请退避重试;API 已经会重试上游故障。

多少钱?

每次成功调用 10 积分,Pro 套餐下每 1,000 个搜索页约 $1.58。失败的调用免费。

有 OpenAPI 规范吗?

有。获取它无需密钥,并且涵盖每个 Scrapier 端点。

一次请求即可把公开的 Zillow 搜索页获取为带类型的 JSON

每个搜索页 10 积分 · 失败调用免费