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": []
}
}
}