最后更新
更新日志/explore5 credits per call探索
按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致,与 /search 相同。当 details=true 时,前 `top` 个房源还会附带 `details`,包含完整描述、全部照片和可入住人数(其余行则为 details: null)。
Authorization: Bearer <key> on every request.Parameters
destination to search (city, neighborhood, address), e.g. "Rome"
check-in date YYYY-MM-DD
check-out date YYYY-MM-DD
number of adults
minimum nightly price
maximum nightly price
entire_home, private_room, shared_room or hotel_room
true to add full listing details to the top results
how many top results to enrich when details=true, 1 to 5
result page, 1-based (18 listings per page)
Response fields
locatione.g."Rome"pagee.g.1page_counte.g.15has_moree.g.truelistings
ide.g."48090007"urle.g."https://www.airbnb.com/rooms/48090007"namee.g."Colosseum art déco' elegant room"titlee.g."Room in Rome"subtitlee.g."Colosseum art déco' elegant room"rating
valuee.g.4.82counte.g.325price
amounte.g.61currencye.g."€"displaye.g."€61"originale.g."€105"qualifiere.g."total"labele.g."€61 total"secondaryroom_infocoordinate
latitudee.g.41.8888longitudee.g.12.4954imagespagination
counte.g.18has_moree.g.truenext_cursore.g."WzEsIjhmYjc2OGM5IixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-27T09:43:13.745Z"agee.g.0curl "https://api.maviapi.com/v1/sites/airbnb/explore?location=Rome&details=false&top=3&page=1" \-H "Authorization: Bearer $MAVI_KEY"
{
"location": "Rome",
"page": 1,
"page_count": 15,
"has_more": true,
"listings": [
{
"id": "48090007",
"url": "https://www.airbnb.com/rooms/48090007",
"name": "Colosseum art déco' elegant room",
"title": "Room in Rome",
"subtitle": "Colosseum art déco' elegant room",
"rating": {
"value": 4.82,
"count": 325
},
"price": {
"amount": 61,
"currency": "€",
"display": "€61",
"original": "€105",
"qualifier": "total",
"label": "€61 total",
"secondary": null
},
"room_info": [
"Business host"
],
"coordinate": {
"latitude": 41.8888,
"longitude": 12.4954
},
"images": [
"https://a0.muscache.com/im/pictures/60fa9dcc-1697-47ba-be52-f3fde6617851.jpg"
]
}
],
"pagination": {
"count": 18,
"has_more": true,
"next_cursor": "WzEsIjhmYjc2OGM5IixudWxsLDAseyJwYWdlIjoyfV0"
},
"fetched_at": "2026-11-27T09:43:13.745Z",
"age": 0
}Get all the data, no code
Collect every page of GET /explore into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use Airbnb API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of Airbnb API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=airbnb -- npx -y '@maviapi/mcp'Import Airbnb API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/airbnb/openapi.json - Postman
https://api.maviapi.com/v1/apis/airbnb/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
使用 Airbnb API 进行开发
选择一个端点开始
- 探索
GET /explore按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致,与 /search 相同。当 details=true 时,前 `top` 个房源还会附带 `details`,包含完整描述、全部照片和可入住人数(其余行则为 details: null)。
GET /explore 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 location string / query 否 destination to search (city, neighborhood, address), e.g. "Rome" checkin string / query 否 check-in date YYYY-MM-DD checkout string / query 否 check-out date YYYY-MM-DD adults string / query 否 number of adults price_min string / query 否 minimum nightly price price_max string / query 否 maximum nightly price room_type string / query 否 entire_home, private_room, shared_room or hotel_room details boolean / query 否 true to add full listing details to the top results top integer / query 否 how many top results to enrich when details=true, 1 to 5 可选值: 1, 2, 3, 4, 5. page integer / query 否 result page, 1-based (18 listings per page) 响应字段 字段 类型 说明 location string page integer page_count integer has_more boolean listings object[] listings[].id string listings[].url string listings[].name string listings[].title string listings[].subtitle string listings[].rating object listings[].rating.value number listings[].rating.count integer listings[].price object listings[].price.amount integer listings[].price.currency string listings[].price.display string listings[].price.original string listings[].price.qualifier string listings[].price.label string listings[].price.secondary null listings[].room_info string[] listings[].coordinate object listings[].coordinate.latitude number listings[].coordinate.longitude number listings[].images string[] pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 搜索
GET /search按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致。包含名称、标题、副标题、评分、页面显示的价格(传入日期时为整个住宿期间的总价)、房间信息、坐标和照片。同时返回 page_count 和 has_more,用于逐页翻取。
GET /search 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 location string / query 否 destination to search (city, neighborhood, address), e.g. "Paris" checkin string / query 否 check-in date YYYY-MM-DD checkout string / query 否 check-out date YYYY-MM-DD adults string / query 否 number of adults children string / query 否 number of children infants string / query 否 number of infants pets string / query 否 number of pets price_min string / query 否 minimum nightly price price_max string / query 否 maximum nightly price room_type string / query 否 entire_home, private_room, shared_room or hotel_room min_bedrooms string / query 否 minimum bedrooms min_beds string / query 否 minimum beds min_bathrooms string / query 否 minimum bathrooms page integer / query 否 result page, 1-based (18 listings per page) 响应字段 字段 类型 说明 location string page integer page_count integer has_more boolean listings object[] listings[].id string listings[].url string listings[].name string listings[].title string listings[].subtitle string listings[].rating object listings[].rating.value number listings[].rating.count integer listings[].price object listings[].price.amount integer listings[].price.currency string listings[].price.display string listings[].price.original string listings[].price.qualifier string listings[].price.label string listings[].price.secondary null listings[].room_info string[] listings[].coordinate object listings[].coordinate.latitude number listings[].coordinate.longitude number listings[].images string[] pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 房源
GET /listing/{id}按 id 获取单个 Airbnb 房源(房间):名称、描述、照片 URL、坐标、地址、评分和可入住人数。
GET /listing/{id} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / path 是 Airbnb listing (room) id, the number in https://www.airbnb.com/rooms/<id> 响应字段 字段 类型 说明 id string url string name string description string images string[] coordinate object coordinate.latitude number coordinate.longitude number address object address.locality string address.region null address.country null rating object rating.value number rating.count integer occupancy integer fetched_at string age integer
将 Airbnb 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
探索GET /explore | id, url, name, title, subtitle, rating, price, room_info, coordinate, images |
搜索GET /search | id, url, name, title, subtitle, rating, price, room_info, coordinate, images |
嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作
Airbnb API 常见问题
能获取什么数据、费用多少、如何调用。
Airbnb 有官方 API 吗?
有,Airbnb 提供自己的 API:Airbnb API(核实日期:2026-11-25)。本页的 Airbnb API 与它无关,是非官方 API:它是 maviapi 针对 airbnb.com 上的公开数据提供的独立托管 API,并非由 Airbnb 开发、认可或支持。
Airbnb API 可以获取哪些数据?
Airbnb API 有 3 个端点。每个端点都返回 JSON,参数和字段见上方的文档:
- GET
/explore: 按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致,与 /search 相同。 - GET
/search: 按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致。 - GET
/listing/{id}: 按 id 获取单个 Airbnb 房源(房间):名称、描述、照片 URL、坐标、地址、评分和可入住人数。
Airbnb API 的价格是多少?
调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。
如何调用 Airbnb API?
向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /explore:
curl 'https://api.maviapi.com/v1/sites/airbnb/explore' \
-H "Authorization: Bearer $MAVI_KEY"在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。
以 JSON 获取 Airbnb 数据有哪些方式?
以 JSON 获取 Airbnb 数据的每种方式适合不同的需求:
- Airbnb API: 需要写入权限、账号数据或与 Airbnb 签订协议时更合适。
- 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 airbnb.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
- Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
- RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
- maviapi: 本页的 Airbnb API:3 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。
airbnb.com 改版后会怎样?
更新会破坏我的 Airbnb API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Tripadvisor API
来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…
- Kiwi.com API
搜索并比较 Kiwi.com 上的航班:返回带实时价格、航空公司、航线和起降时间的行程,还可查询地点和航线。
- GetYourGuide API
GetYourGuide 的游览和活动列表:价格、评分、可订日期和目的地,另有单个活动的详情,并可通过站点地图批量发现活动。
- Booking.com API
按地点和入住日期搜索 Booking.com 的住宿,查看住宿详情、价格和住客评分。
- Trainline API
Trainline(thetrainline.com)上任意两个车站之间的火车票价和发车时间。
- FlightList API
在任意日期范围内搜索低价单程航班:票价、航班时刻、航空公司和每个航段的航班号,另有机场和 IATA 代码查询。与 flightlist.io 的搜索功能相对应。