接口参考 · 房产数据
Zillow Property Search
从支持的 Zillow homes URL 读取搜索结果;这是房源快照,不是估价或成交流。
示例
BASH
curl -X POST 'https://api.serpbase.dev/zillow/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"url":"https://www.zillow.com/homes/Seattle-WA_rb/"}'返回 · 真实返回,已缩短
{
"status": 0,
"credits_charged": 2,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "zillow_search",
"action": "search",
"pagination": {
"total_pages": 20,
"total_results": "3030"
},
"properties": [
{
"address": {
"city": "Seattle",
"country": "USA",
"display": "1956 Clise Place W, Seattle, WA 98199",
"postal_code": "98199",
"state": "WA",
"street": "1956 Clise Place W"
},
"bathrooms": 2,
"bedrooms": 3,
"features": [
{
"name": "zestimate",
"value": "1169000"
}
],
"id": "48943235",
"images": [
{
"image_url": "https://photos.zillowstatic.com/fp/0908d43e2b15abd0797a7bad51dd81e7-p_e.jpg",
"type": "image",
"url": "https://photos.zillowstatic.com/fp/0908d43e2b15abd0797a7bad51dd81e7-p_e.jpg"
}
],
"latitude": 47.63757,
"link": "https://www.zillow.com/homedetails/1956-Clise-Pl-W-Seattle-WA-98199/48943235_zpid/",
"living_area": 3700,
"longitude": -122.39757,
"lot_area": 6834.564,
"lot_area_unit": "sqft",
"price": {
"amount": "1195000",
"currency": "USD",
"display": "$1,195,000",
"symbol": "$"
},
"property_type": "SINGLE_FAMILY",
"status": "Active",
"title": "1956 Clise Place W, Seattle, WA 98199",
"url": "https://www.zillow.com/homedetails/1956-Clise-Pl-W-Seattle-WA-98199/48943235_zpid/"
}
],
"source": "zillow",
"url": "https://www.zillow.com/homes/Seattle-WA_rb/"
}参数
名称作用
format"json" | "markdown"
json(默认)返回解析后的结果。
更多
markdown 以 Markdown 文本(text/markdown)返回同样的结果,便于大模型直接读取:不含外层信封、重复的别名字段和内嵌图片。扣费相同;失败时仍返回 JSON 错误信封。
urlstring
示例值: "https://www.zillow.com/homes/Seattle-WA_rb/"
countrystring
locale.country 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
cursorstring
pagination.cursor 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
devicestring
options.device 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
glstring
locale.country 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
hlstring
locale.language 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
htmlboolean
include_html 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
languagestring
locale.language 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
limitinteger
pagination.limit 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
markdownboolean
include_markdown 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
mobileboolean
options.device 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
numinteger
pagination.limit 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
pageinteger
pagination.page 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
qstring
query 的兼容写法。
更多
每次使用其中一种;接口会校验本产品支持的参数与取值。
示例展示请求参数用法,不代表完整契约。接口会校验已知字段,并允许额外参数。
返回字段
字段见上面的返回示例;每个接口都包含 status、credits_charged 和 request_id。
失败时
失败的请求 status 不为 0 并带有 error,不扣费。这个接口常见的有:
1000参数缺失或有误修改请求1020积分不足充值1029超过每秒请求数等待 Retry-After 秒1502 · 1504这次没能读取到目标网站重试