API Hop 文件
Airbnb 介面參考
依位置、日期、入住人數與房源條件搜尋 Airbnb 住宿。
並行上限
AI 與 Data 分別共用帳戶層級的並行名額,預設 5 AI / 2 Data,訂閱方案可調整上限。介面個別設定仍受類別總上限約束。達到任一上限回傳 HTTP 429;非同步任務執行結束前占用名額。
GET /v1/airbnb/search 預設並行上限: 2
依位置、日期、入住人數與房源條件搜尋 Airbnb 住宿。
驗證與計費
預設每次成功請求 $0.0003(300 credits)。 使用 API Hop API Key;可用性取決於已啟用閘道與金鑰權限。成功請求價格以目前目錄與帳戶為準,帳戶專屬價格優先。成功的空結果也會計費,失敗會釋放預留額度。逾時為 60 秒,不自動重試或分頁,結算失敗不會重複呼叫上游。
http
Authorization: Bearer YOUR_API_KEYAirbnb: 搜尋住宿
GET https://api.apihop.ai/v1/airbnb/search
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
query | string | 搜尋詞; query: optional | Austin, TX |
map_bounds | string | 地圖邊界(北,東,南,西) (map_bounds); map_bounds: optional | - |
check_in_date | string | 旅行日期(YYYY-MM-DD)或介面支援的日期範圍 (check_in_date); check_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
check_out_date | string | 旅行日期(YYYY-MM-DD)或介面支援的日期範圍 (check_out_date); check_out_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
airbnb_domain | string | Airbnb 區域網域 (airbnb_domain); airbnb_domain: optional; airbnb.com, sq.airbnb.com, ar.airbnb.com, hy.airbnb.com, az.airbnb.com, bs.airbnb.com, bg.airbnb.com, airbnb.cn, zh.airbnb.com, airbnb.com.hk, airbnb.com.tw, zh-t.airbnb.com, hr.airbnb.com, airbnb.cz, cs.airbnb.com, airbnb.dk, da.airbnb.com, airbnb.be, airbnb.nl, nl.airbnb.com, airbnb.com.au, airbnb.ca, airbnb.gy, airbnb.co.in, airbnb.ie, airbnb.com.mt, airbnb.co.nz, airbnb.com.sg, airbnb.co.za, airbnb.ae, airbnb.co.uk, airbnb.com.ee, et.airbnb.com, airbnb.fi, fi.airbnb.com, fr.airbnb.be, fr.airbnb.ca, airbnb.fr, airbnb.lu, fr.airbnb.ch, fr.airbnb.com, ka.airbnb.com, airbnb.at, airbnb.de, airbnb.ch, de.airbnb.com, airbnb.gr, el.airbnb.com, he.airbnb.com, hi.airbnb.com, airbnb.hu, hu.airbnb.com, airbnb.is, is.airbnb.com, airbnb.co.id, id.airbnb.com, ga.airbnb.com, airbnb.it, it.airbnb.ch, it.airbnb.com, airbnb.jp, ja.airbnb.com, kn.airbnb.com, airbnb.co.kr, ko.airbnb.com, lv.airbnb.com, lt.airbnb.com, mk.airbnb.com, airbnb.com.my, ms.airbnb.com, mt.airbnb.com, airbnb.no, no.airbnb.com, airbnb.pl, pl.airbnb.com, airbnb.com.br, airbnb.pt, pt.airbnb.com, ro.airbnb.com, airbnb.ru, ru.airbnb.com, sr.airbnb.com, sk.airbnb.com, sl.airbnb.com, airbnb.com.ar, airbnb.com.bz, airbnb.com.bo, airbnb.cl, airbnb.com.co, airbnb.co.cr, airbnb.com.ec, airbnb.com.sv, airbnb.com.gt, airbnb.com.hn, airbnb.mx, airbnb.com.ni, airbnb.com.pa, airbnb.com.py, airbnb.com.pe, airbnb.es, es.airbnb.com, airbnb.co.ve, es-l.airbnb.com, sw.airbnb.com, airbnb.se, sv.airbnb.com, airbnb.com.ph, tl.airbnb.com, th.airbnb.com, airbnb.com.tr, tr.airbnb.com, uk.airbnb.com, vi.airbnb.com, airbnb.com.vn, xh.airbnb.com, zu.airbnb.com | airbnb.com |
currency | string | 貨幣代碼 (currency); currency: optional; AED, ARS, AUD, AWG, BAM, BBD, BGN, BHD, BND, BRL, BTN, BZD, CAD, CHF, CLP, CNY, COP, CRC, CZK, DKK, EGP, EUR, FJD, GBP, GHS, GTQ, GYD, HKD, HNL, HRK, HUF, IDR, ILS, INR, JMD, JOD, JPY, KES, KRW, KZT, LAK, LKR, MAD, MOP, MXN, MYR, NOK, NZD, OMR, PEN, PGK, PHP, PLN, QAR, RON, RUB, SAR, SEK, SGD, THB, TRY, TTD, TWD, UAH, UGX, USD, UYU, VND, ZAR; ^[A-Z]{3}$ | AED |
adults | integer | 成人人數 (adults); adults: optional; min: 1; max: 16 | 2 |
children | integer | 兒童人數 (children); children: optional; min: 0; max: 15 | 0 |
infants | integer | 嬰兒人數 (infants); infants: optional; min: 0; max: 5 | 0 |
pets | integer | 寵物數量 (pets); pets: optional; min: 0; max: 5 | 0 |
bedrooms | integer | 臥室或床數量下限 (bedrooms); bedrooms: optional; min: 0; max: 16 | 0 |
beds | integer | 臥室或床數量下限 (beds); beds: optional; min: 0; max: 16 | 0 |
bathrooms | number | 浴室數量下限 (bathrooms); bathrooms: optional; min: 0; max: 16 | 0 |
min_price | integer | 最低價格 (min_price); min_price: optional; min: 0; max: 10000000 | 0 |
max_price | integer | 最高價格 (max_price); max_price: optional; min: 0; max: 10000000 | 0 |
room_type | string | 住宿條件篩選 (room_type); room_type: optional; entire_home, private_room | entire_home |
property_types | string | 住宿條件篩選 (property_types); property_types: optional; ^(?:house|apartment|guesthouse|hotel)(?:,(?:house|apartment|guesthouse|hotel))*$ | - |
amenities | string | 住宿條件篩選 (amenities); amenities: optional; ^(?:wifi|kitchen|washer|dryer|air_conditioning|heating|dedicated_workspace|tv|hair_dryer|iron|pool|hot_tub|free_parking|ev_charger|crib|king_bed|gym|bbq_grill|breakfast|indoor_fireplace|smoking_allowed|waterfront|smoke_alarm|carbon_monoxide_alarm|private_attached_bathroom)(?:,(?:wifi|kitchen|washer|dryer|air_conditioning|heating|dedicated_workspace|tv|hair_dryer|iron|pool|hot_tub|free_parking|ev_charger|crib|king_bed|gym|bbq_grill|breakfast|indoor_fireplace|smoking_allowed|waterfront|smoke_alarm|carbon_monoxide_alarm|private_attached_bathroom))*$ | - |
accessibility_features | string | 住宿條件篩選 (accessibility_features); accessibility_features: optional; ^(?:step_free_access|disabled_parking_spot|wide_guest_entrance|step_free_bedroom_access|wide_bedroom_entrance|step_free_bathroom_access|wide_bathroom_entrance|toilet_grab_bar|shower_grab_bar|step_free_shower|shower_or_bath_chair|ceiling_or_mobile_hoist)(?:,(?:step_free_access|disabled_parking_spot|wide_guest_entrance|step_free_bedroom_access|wide_bedroom_entrance|step_free_bathroom_access|wide_bathroom_entrance|toilet_grab_bar|shower_grab_bar|step_free_shower|shower_or_bath_chair|ceiling_or_mobile_hoist))*$ | - |
host_languages | string | 住宿條件篩選 (host_languages); host_languages: optional; ^(?:zh|en|fr|de|it|ja|ko|pt|ru|es|ar|ca|hr|cs|da|nl|fi|el|he|hi|hu|is|id|ms|no|pl|sv|th|tr|af|sq|hy|az|eu|be|bn|bs|bg|my|et|fil|gl|ka|gu|ht|ga|kn|km|ky|lo|lv|lt|mk|mt|fa|pa|ro|sr|sk|sl|sw|tl|ta|te|uk|ur|vi|xh|zu|sgn)(?:,(?:zh|en|fr|de|it|ja|ko|pt|ru|es|ar|ca|hr|cs|da|nl|fi|el|he|hi|hu|is|id|ms|no|pl|sv|th|tr|af|sq|hy|az|eu|be|bn|bs|bg|my|et|fil|gl|ka|gu|ht|ga|kn|km|ky|lo|lv|lt|mk|mt|fa|pa|ro|sr|sk|sl|sw|tl|ta|te|uk|ur|vi|xh|zu|sgn))*$ | - |
instant_book | boolean | 住宿條件篩選 (instant_book); instant_book: optional | true |
self_check_in | boolean | 住宿條件篩選 (self_check_in); self_check_in: optional | true |
guest_favorite | boolean | 住宿條件篩選 (guest_favorite); guest_favorite: optional | true |
luxe | boolean | 住宿條件篩選 (luxe); luxe: optional | true |
page | integer | 頁碼(從 1 開始); page: optional; min: 1; max: 15 | 1 |
zero_trace | boolean | 不封存回應產物; zero_trace: optional | true |
驗證規則
僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 JSON 回應,不自動分頁或重試。規則中的 AND 表示同時提供,OR 表示任一,XOR 表示二選一,NOT 表示不得提供,=> 表示需要。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/min_price <= max_pricecheck_in_date AND check_out_date: supply both or neither; valid YYYY-MM-DD dates; check_out_date > check_in_datequery OR map_bounds: requiredmap_bounds = north,east,south,west; north > south; east > west
範例
bash
curl --get "https://api.apihop.ai/v1/airbnb/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "adults=2" \
--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": []
}
}
}