Skip to content

最后更新

更新日志

Airbnb API

正常只读

按地点和日期搜索 Airbnb 短租房源,并获取房源详情:数据取自 Airbnb 服务端渲染的搜索页和房源页,以结构清晰的 JSON 返回。 来源: www.airbnb.com.

基础 URL
https://api.maviapi.com/v1/sites/airbnb
3
端点
1 h ago
最近验证
99.9%
可用率 / 7 天
5069ms
p50 延迟
GET/explore5 credits per call

探索

按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致,与 /search 相同。当 details=true 时,前 `top` 个房源还会附带 `details`,包含完整描述、全部照片和可入住人数(其余行则为 details: null)。

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

destination to search (city, neighborhood, address), e.g. "Rome"

stringOptionalin query

check-in date YYYY-MM-DD

stringOptionalin query

check-out date YYYY-MM-DD

stringOptionalin query

number of adults

stringOptionalin query

minimum nightly price

stringOptionalin query

maximum nightly price

stringOptionalin query

entire_home, private_room, shared_room or hotel_room

booleanOptionalin query

true to add full listing details to the top results

integerOptionalin query

how many top results to enrich when details=true, 1 to 5

integerOptionalin query

result page, 1-based (18 listings per page)

locationstringe.g."Rome"
pageintegere.g.1
page_countintegere.g.15
has_morebooleane.g.true
listingsobject[]10 fields
idstringe.g."48090007"
urlstringe.g."https://www.airbnb.com/rooms/48090007"
namestringe.g."Colosseum art déco' elegant room"
titlestringe.g."Room in Rome"
subtitlestringe.g."Colosseum art déco' elegant room"
ratingobject2 fields
valuenumbere.g.4.82
countintegere.g.325
priceobject7 fields
amountintegere.g.61
currencystringe.g."€"
displaystringe.g."€61"
originalstringe.g."€105"
qualifierstringe.g."total"
labelstringe.g."€61 total"
secondarynull
room_infostring[]
coordinateobject2 fields
latitudenumbere.g.41.8888
longitudenumbere.g.12.4954
imagesstring[]
paginationobject3 fields
countintegere.g.18
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjhmYjc2OGM5IixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-27T09:43:13.745Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/airbnb/explore?location=Rome&details=false&top=3&page=1
Request
curl "https://api.maviapi.com/v1/sites/airbnb/explore?location=Rome&details=false&top=3&page=1" \
-H "Authorization: Bearer $MAVI_KEY"
Example1.0 KB
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    locationstring / query否destination to search (city, neighborhood, address), e.g. "Rome"
    checkinstring / query否check-in date YYYY-MM-DD
    checkoutstring / query否check-out date YYYY-MM-DD
    adultsstring / query否number of adults
    price_minstring / query否minimum nightly price
    price_maxstring / query否maximum nightly price
    room_typestring / query否entire_home, private_room, shared_room or hotel_room
    detailsboolean / query否true to add full listing details to the top results
    topinteger / query否how many top results to enrich when details=true, 1 to 5 可选值: 1, 2, 3, 4, 5.
    pageinteger / query否result page, 1-based (18 listings per page)
    响应字段
    字段类型说明
    locationstring
    pageinteger
    page_countinteger
    has_moreboolean
    listingsobject[]
    listings[].idstring
    listings[].urlstring
    listings[].namestring
    listings[].titlestring
    listings[].subtitlestring
    listings[].ratingobject
    listings[].rating.valuenumber
    listings[].rating.countinteger
    listings[].priceobject
    listings[].price.amountinteger
    listings[].price.currencystring
    listings[].price.displaystring
    listings[].price.originalstring
    listings[].price.qualifierstring
    listings[].price.labelstring
    listings[].price.secondarynull
    listings[].room_infostring[]
    listings[].coordinateobject
    listings[].coordinate.latitudenumber
    listings[].coordinate.longitudenumber
    listings[].imagesstring[]
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • 搜索 GET /search

    按目的地查询 Airbnb 住宿,每次返回一页结果(18 个房源),顺序与 Airbnb 一致。包含名称、标题、副标题、评分、页面显示的价格(传入日期时为整个住宿期间的总价)、房间信息、坐标和照片。同时返回 page_count 和 has_more,用于逐页翻取。

    GET /search 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    locationstring / query否destination to search (city, neighborhood, address), e.g. "Paris"
    checkinstring / query否check-in date YYYY-MM-DD
    checkoutstring / query否check-out date YYYY-MM-DD
    adultsstring / query否number of adults
    childrenstring / query否number of children
    infantsstring / query否number of infants
    petsstring / query否number of pets
    price_minstring / query否minimum nightly price
    price_maxstring / query否maximum nightly price
    room_typestring / query否entire_home, private_room, shared_room or hotel_room
    min_bedroomsstring / query否minimum bedrooms
    min_bedsstring / query否minimum beds
    min_bathroomsstring / query否minimum bathrooms
    pageinteger / query否result page, 1-based (18 listings per page)
    响应字段
    字段类型说明
    locationstring
    pageinteger
    page_countinteger
    has_moreboolean
    listingsobject[]
    listings[].idstring
    listings[].urlstring
    listings[].namestring
    listings[].titlestring
    listings[].subtitlestring
    listings[].ratingobject
    listings[].rating.valuenumber
    listings[].rating.countinteger
    listings[].priceobject
    listings[].price.amountinteger
    listings[].price.currencystring
    listings[].price.displaystring
    listings[].price.originalstring
    listings[].price.qualifierstring
    listings[].price.labelstring
    listings[].price.secondarynull
    listings[].room_infostring[]
    listings[].coordinateobject
    listings[].coordinate.latitudenumber
    listings[].coordinate.longitudenumber
    listings[].imagesstring[]
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • 房源 GET /listing/{id}

    按 id 获取单个 Airbnb 房源(房间):名称、描述、照片 URL、坐标、地址、评分和可入住人数。

    GET /listing/{id} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    idstring / path是Airbnb listing (room) id, the number in https://www.airbnb.com/rooms/<id>
    响应字段
    字段类型说明
    idstring
    urlstring
    namestring
    descriptionstring
    imagesstring[]
    coordinateobject
    coordinate.latitudenumber
    coordinate.longitudenumber
    addressobject
    address.localitystring
    address.regionnull
    address.countrynull
    ratingobject
    rating.valuenumber
    rating.countinteger
    occupancyinteger
    fetched_atstring
    ageinteger

将 Airbnb 数据导出为 CSV

下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。

列表CSV 列
探索GET /exploreid, url, name, title, subtitle, rating, price, room_info, coordinate, images
搜索GET /searchid, 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
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.com 修改页面时,maviapi 会让 Airbnb API 保持可用,您继续调用同样的端点,并得到本页文档所述结构的 JSON。它当前的运行状况见状态页,变更记录见它的更新日志。

更新会破坏我的 Airbnb 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 的搜索功能相对应。