API Hop

文件目錄

API Hop 文件

Zillow 介面參考

搜尋 Zillow 房源。

並行上限

AI 與 Data 分別共用帳戶層級的並行名額,預設 5 AI / 2 Data,訂閱方案可調整上限。介面個別設定仍受類別總上限約束。達到任一上限回傳 HTTP 429;非同步任務執行結束前占用名額。

GET /v1/zillow/search
預設並行上限: 2

搜尋 Zillow 房源。

驗證與計費

預設每次成功請求 $0.0003(300 credits)。 使用 API Hop API Key;可用性取決於已啟用閘道與金鑰權限。成功請求價格以目前目錄與帳戶為準,帳戶專屬價格優先。成功的空結果也會計費,失敗會釋放預留額度。逾時為 60 秒,不自動重試或分頁,結算失敗不會重複呼叫上游。

http
Authorization: Bearer YOUR_API_KEY

搜尋 Zillow 房源

GET https://api.apihop.ai/v1/zillow/search

請求參數

欄位類型限制範例
querystring搜尋詞; query: optionalAustin, TX
pageinteger頁碼(從 1 開始); page: optional; min: 1; max: 201
devicestring裝置; device: optional; desktop, mobile, tabletdesktop
zero_traceboolean不封存回應產物; zero_trace: optionaltrue
region_idstring房源區域識別碼 (region_id); region_id: optional; ^[1-9][0-9]{0,9}$-
map_boundsstring地圖邊界(北,東,南,西) (map_bounds); map_bounds: optional; UTF-8 bytes: 160-
status_typestring房源交易狀態 (status_type); status_type: optional; sale, rent, soldsale
pricestring範圍(最小值或最小值,最大值) (price); price: optional; UTF-8 bytes: 80; ^(?:[0-9]+(?:\.[0-9]+)?)?(?:,(?:[0-9]+(?:\.[0-9]+)?)?)?$-
bedsstring範圍(最小值或最小值,最大值) (beds); beds: optional; UTF-8 bytes: 80; ^(?:[0-9]+(?:\.[0-9]+)?)?(?:,(?:[0-9]+(?:\.[0-9]+)?)?)?$-
bathsstring範圍(最小值或最小值,最大值) (baths); baths: optional; UTF-8 bytes: 80; ^(?:[0-9]+(?:\.[0-9]+)?)?(?:,(?:[0-9]+(?:\.[0-9]+)?)?)?$-
sqftstring範圍(最小值或最小值,最大值) (sqft); sqft: optional; UTF-8 bytes: 80; ^(?:[0-9]+(?:\.[0-9]+)?)?(?:,(?:[0-9]+(?:\.[0-9]+)?)?)?$-
year_builtstring範圍(最小值或最小值,最大值) (year_built); year_built: optional; UTF-8 bytes: 80; ^(?:[0-9]+(?:\.[0-9]+)?)?(?:,(?:[0-9]+(?:\.[0-9]+)?)?)?$-
lot_sizestring範圍(最小值或最小值,最大值) (lot_size); lot_size: optional; UTF-8 bytes: 80; ^(?:[0-9]+(?:\.[0-9]+)?)?(?:,(?:[0-9]+(?:\.[0-9]+)?)?)?$-
has_garageboolean房源屬性篩選 (has_garage); has_garage: optionaltrue
single_storyboolean房源屬性篩選 (single_story); single_story: optionaltrue
price_reductionboolean房源屬性篩選 (price_reduction); price_reduction: optionaltrue
hide_no_date_listingsboolean租賃條件篩選 (hide_no_date_listings); hide_no_date_listings: optionaltrue
short_term_leaseboolean租賃條件篩選 (short_term_lease); short_term_lease: optionaltrue
home_typestring房源屬性篩選 (home_type); home_type: optional-
amenitiesstring房源屬性篩選 (amenities); amenities: optional-
viewstring房源屬性篩選 (view); view: optional-
basementstring房源屬性篩選 (basement); basement: optional-
listing_typestring房源屬性篩選 (listing_type); listing_type: optional-
listing_statusstring房源屬性篩選 (listing_status); listing_status: optional-
toursstring房源屬性篩選 (tours); tours: optional-
petsstring租賃條件篩選 (pets); pets: optional-
listing_featuresstring租賃條件篩選 (listing_features); listing_features: optional-
age_55_plusstring房源屬性篩選 (age_55_plus); age_55_plus: optional; include, exclude, onlyinclude
time_on_zillowstring房源屬性篩選 (time_on_zillow); time_on_zillow: optional; ^(?:[1-9][0-9]{0,4}|6m|12m|24m|36m)$-
keywordsstring房源屬性篩選 (keywords); keywords: optional; UTF-8 bytes: 512-
hoa_maxinteger房源屬性篩選 (hoa_max); hoa_max: optional; min: 0; max: 10000000
parking_spotsinteger房源屬性篩選 (parking_spots); parking_spots: optional; min: 0; max: 1000
spacestring租賃條件篩選 (space); space: optional; any, entire_place, roomany
move_in_datestring入住日期(YYYY-MM-DD) (move_in_date); move_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$-
sort_bystring排序; sort_by: optional; globalrelevanceex, featured, priced, pricea, paymentd, paymenta, days, beds, baths, size, lot, priorityscoreglobalrelevanceex

驗證規則

僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 JSON 回應,不自動分頁或重試。規則中的 AND 表示同時提供,OR 表示任一,XOR 表示二選一,NOT 表示不得提供,=> 表示需要。

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • query OR region_id OR map_bounds: required; NOT (query AND region_id)
  • map_bounds = north,east,south,west; north > south; east > west
  • price, beds, baths, sqft, year_built, lot_size = min OR min,max OR ,max; min <= max
  • pets, listing_features, space, move_in_date, short_term_lease => status_type = rent; hide_no_date_listings = true => move_in_date
  • move_in_date: valid calendar date in YYYY-MM-DD format

範例

bash
curl --get "https://api.apihop.ai/v1/zillow/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=Austin, TX"

回應與錯誤

保留原生 JSON 與數字精確度。以下是空成功結果範例。HTTP 400 輸入無效;401 需驗證;402 餘額不足;403 無權限或未開放;405 方法不支援;429 限流;5xx 服務錯誤。請保留 X-Request-Id。

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}