Skip to content

最后更新

更新日志

agoda.com API

正常只读

来自 agoda.com 的结构化数据。 来源: www.agoda.com.

基础 URL
https://api.maviapi.com/v1/sites/agoda
2
端点
1 h ago
最近验证
100%
可用率 / 7 天
1298ms
p50 延迟
GET/search5 credits per call

搜索

按目的地名称或地图区域查询可预订的住宿(酒店、公寓、青年旅舍、别墅等),并给出整个入住期间的总价。结果按 Agoda 自己的“最佳匹配”顺序排列,每页 45 条(另含少量已售罄的住宿)。每条包含 id、name、latitude、longitude、property_type、star_rating、review_score(0-10)、review_count、total_price(整个入住期间、所有房间,含税费)及 total_price_before_taxes 和 currency、cheapest_offer_free_cancellation、free_cancellation_available(有房间可免费取消)和 free_cancellation_until、photos,以及 url(按本次日期、住客和房间数打开的 Agoda 住宿页面)。已售罄的住宿返回 available=false,且不含价格。同时返回 total(匹配的住宿数量;圆形区域则为其外接正方形内的数量)和解析后的目的地(地图区域时为 null)。

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

city, area or landmark name, e.g. "Paris", "Sukhumvit", "Eiffel Tower"; used when no map area is given. A city gives the whole city, an area only that area, a landmark the properties Agoda lists near it, a property name the whole city it is in. The match chosen is returned as `destination`.

stringOptionalin query

northern latitude of a bounding box (with south, east, west; overrides destination)

stringOptionalin query

southern latitude of the bounding box

stringOptionalin query

eastern longitude of the bounding box

stringOptionalin query

western longitude of the bounding box

stringOptionalin query

latitude of a circle centre (with lng and radius_km; overrides destination)

stringOptionalin query

longitude of the circle centre

numberOptionalin query

circle radius in kilometres (used with lat/lng)

stringOptionalin query

arrival date YYYY-MM-DD (default: 30 days from today)

stringOptionalin query

departure date YYYY-MM-DD (default: checkin + 2 nights)

integerOptionalin query

number of adult guests

integerOptionalin query

number of children

stringOptionalin query

comma-separated child ages, e.g. "4,9" (missing ages default to 8)

integerOptionalin query

number of rooms

stringOptionalin query

ISO 4217 currency code for prices, e.g. USD, EUR, THB

integerOptionalin query

result page, starting at 1

destinationobject5 fields
namestringe.g."Bangkok"
categorystringe.g."City"
instringe.g."Thailand"
city_idintegere.g.9395
object_idintegere.g.9395
checkinstringe.g."2026-12-28"
checkoutstringe.g."2026-12-30"
nightsintegere.g.2
pageintegere.g.1
totalintegere.g.3692
countintegere.g.49
propertiesobject[]21 fields
idintegere.g.546811
namestringe.g."Ramada Graand Swiss Sukhumvit 11"
latitudenumbere.g.13.7408599853516
longitudenumbere.g.100.556640625
property_typestringe.g."Hotel"
star_ratingnumbere.g.4
review_scorenumbere.g.8
review_countintegere.g.12112
areastringe.g."Sukhumvit"
citystringe.g."Bangkok"
countrystringe.g."Thailand"
availablebooleane.g.true
total_pricenumbere.g.303.46
total_price_before_taxesnumbere.g.257.82
currencystringe.g."USD"
taxes_and_fees_includedbooleane.g.true
cheapest_offer_free_cancellationbooleane.g.true
free_cancellation_availablebooleane.g.true
free_cancellation_untilstringe.g."2026-12-27T00:00:00.000+07:00"
photosstring[]
urlstringe.g."https://www.agoda.com/grand-swiss-hotel_2/hotel/bangkok-th.html?checkIn=2026-12-28&checkOut=2026-12-30&los=2&rooms=1&adults=2&children=0&currencyCode=USD"
paginationobject3 fields
countintegere.g.49
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjhhZjEzOWI3IixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-28T14:29:40.132Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/agoda/search?destination=Bangkok&radius_km=2&adults=2&children=0&rooms=1&currency=USD&page=1
Request
curl "https://api.maviapi.com/v1/sites/agoda/search?destination=Bangkok&radius_km=2&adults=2&children=0&rooms=1&currency=USD&page=1" \
-H "Authorization: Bearer $MAVI_KEY"
Example1.4 KB
{
  "destination": {
    "name": "Bangkok",
    "category": "City",
    "in": "Thailand",
    "city_id": 9395,
    "object_id": 9395
  },
  "checkin": "2026-12-28",
  "checkout": "2026-12-30",
  "nights": 2,
  "page": 1,
  "total": 3692,
  "count": 49,
  "properties": [
    {
      "id": 546811,
      "name": "Ramada Graand Swiss Sukhumvit 11",
      "latitude": 13.7408599853516,
      "longitude": 100.556640625,
      "property_type": "Hotel",
      "star_rating": 4,
      "review_score": 8,
      "review_count": 12112,
      "area": "Sukhumvit",
      "city": "Bangkok",
      "country": "Thailand",
      "available": true,
      "total_price": 303.46,
      "total_price_before_taxes": 257.82,
      "currency": "USD",
      "taxes_and_fees_included": true,
      "cheapest_offer_free_cancellation": true,
      "free_cancellation_available": true,
      "free_cancellation_until": "2026-12-27T00:00:00.000+07:00",
      "photos": [
        "https://pix8.agoda.net/hotelImages/546811/0/afcb17dd30a6a9f547935896d7dd7b20.jpeg?va=1&ce=2"
      ],
      "url": "https://www.agoda.com/grand-swiss-hotel_2/hotel/bangkok-th.html?checkIn=2026-12-28&checkOut=2026-12-30&los=2&rooms=1&adults=2&children=0&currencyCode=USD"
    }
  ],
  "pagination": {
    "count": 49,
    "has_more": true,
    "next_cursor": "WzEsIjhhZjEzOWI3IixudWxsLDAseyJwYWdlIjoyfV0"
  },
  "fetched_at": "2026-11-28T14:29:40.132Z",
  "age": 0
}

Get all the data, no code

Collect every page of GET /search 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 agoda.com 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 agoda.com API as its own tool:

claude mcp add maviapi -e MAVIAPI_TOOLS=agoda -- npx -y '@maviapi/mcp'

Import agoda.com 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/agoda/openapi.json
  • Postman
    https://api.maviapi.com/v1/apis/agoda/postman.json

The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.

使用 agoda.com API 进行开发

选择一个端点开始

  • 搜索 GET /search

    按目的地名称或地图区域查询可预订的住宿(酒店、公寓、青年旅舍、别墅等),并给出整个入住期间的总价。结果按 Agoda 自己的“最佳匹配”顺序排列,每页 45 条(另含少量已售罄的住宿)。每条包含 id、name、latitude、longitude、property_type、star_rating、review_score(0-10)、review_count、total_price(整个入住期间、所有房间,含税费)及 total_price_before_taxes 和 currency、cheapest_offer_free_cancellation、free_cancellation_available(有房间可免费取消)和 free_cancellation_until、photos,以及 url(按本次日期、住客和房间数打开的 Agoda 住宿页面)。已售罄的住宿返回 available=false,且不含价格。同时返回 total(匹配的住宿数量;圆形区域则为其外接正方形内的数量)和解析后的目的地(地图区域时为 null)。

    GET /search 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    destinationstring / query否city, area or landmark name, e.g. "Paris", "Sukhumvit", "Eiffel Tower"; used when no map area is given. A city gives the whole city, an area only that area, a landmark the properties Agoda lists near it, a property name the whole city it is in. The match chosen is returned as `destination`.
    northstring / query否northern latitude of a bounding box (with south, east, west; overrides destination)
    southstring / query否southern latitude of the bounding box
    eaststring / query否eastern longitude of the bounding box
    weststring / query否western longitude of the bounding box
    latstring / query否latitude of a circle centre (with lng and radius_km; overrides destination)
    lngstring / query否longitude of the circle centre
    radius_kmnumber / query否circle radius in kilometres (used with lat/lng)
    checkinstring / query否arrival date YYYY-MM-DD (default: 30 days from today)
    checkoutstring / query否departure date YYYY-MM-DD (default: checkin + 2 nights)
    adultsinteger / query否number of adult guests
    childreninteger / query否number of children
    child_agesstring / query否comma-separated child ages, e.g. "4,9" (missing ages default to 8)
    roomsinteger / query否number of rooms
    currencystring / query否ISO 4217 currency code for prices, e.g. USD, EUR, THB
    pageinteger / query否result page, starting at 1
    响应字段
    字段类型说明
    destinationobject
    destination.namestring
    destination.categorystring
    destination.instring
    destination.city_idinteger
    destination.object_idinteger
    checkinstring
    checkoutstring
    nightsinteger
    pageinteger
    totalinteger
    countinteger
    propertiesobject[]
    properties[].idinteger
    properties[].namestring
    properties[].latitudenumber
    properties[].longitudenumber
    properties[].property_typestring
    properties[].star_ratingnumber
    properties[].review_scorenumber
    properties[].review_countinteger
    properties[].areastring
    properties[].citystring
    properties[].countrystring
    properties[].availableboolean
    properties[].total_pricenumber
    properties[].total_price_before_taxesnumber
    properties[].currencystring
    properties[].taxes_and_fees_includedboolean
    properties[].cheapest_offer_free_cancellationboolean
    properties[].free_cancellation_availableboolean
    properties[].free_cancellation_untilstring
    properties[].photosstring[]
    properties[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • 住宿 GET /property/{property_id}

    按 Agoda id 查询单个住宿:名称、住宿类型、星级、简介、地址、坐标、全部照片、设施(按 Agoda 上的分组)、住客评论评分(0-10)和评论数、入住和退房时间,以及给定入住期间的最低总价(整个入住期间、所有房间,含税费)及币种、取消政策信息和带有相同搜索条件的住宿页面 url。所选日期无可预订房间时,价格字段为 null。id 即搜索返回的 `id`。

    GET /property/{property_id} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    property_idinteger / path是Agoda property id, as returned by search
    checkinstring / query否arrival date YYYY-MM-DD (default: 30 days from today)
    checkoutstring / query否departure date YYYY-MM-DD (default: checkin + 2 nights)
    adultsinteger / query否number of adult guests
    childreninteger / query否number of children
    child_agesstring / query否comma-separated child ages, e.g. "4,9" (missing ages default to 8)
    roomsinteger / query否number of rooms
    currencystring / query否ISO 4217 currency code for the price, e.g. USD, EUR, THB
    响应字段
    字段类型说明
    idinteger
    namestring
    property_typestring
    star_ratingnumber
    descriptionstring
    description_longstring
    addressobject
    address.streetstring
    address.postal_codestring
    address.areastring
    address.citystring
    address.countrystring
    address.country_codestring
    latitudenumber
    longitudenumber
    review_scorenumber
    review_countinteger
    check_in_fromstring
    check_in_untilstring
    check_out_untilstring
    useful_infoobject
    useful_info.Check-in fromstring
    useful_info.Check-out untilstring
    useful_info.Check-in untilstring
    useful_info.Travel time to airport (minutes)string
    useful_info.Airport transfer feestring
    useful_info.Daily Internet/Wi-Fi feestring
    useful_info.Breakfast charge (unless included in room price)string
    useful_info.Year property openedstring
    useful_info.Number of floorsstring
    useful_info.Room voltagestring
    useful_info.Number of rooms string
    useful_info.Non-smoking rooms/floorsstring
    useful_info.Number of restaurantsstring
    useful_info.Number of bars/loungesstring
    useful_info.License Id / Local Tax ID/ Entity Namestring
    useful_info.Daily parking feestring
    amenitiesobject[]
    amenities[].groupstring
    amenities[].itemsstring[]
    languages_spokenstring[]
    photosobject[]
    photos[].urlstring
    photos[].captionstring
    photos[].groupstring
    checkinstring
    checkoutstring
    nightsinteger
    lowest_total_pricenumber
    lowest_total_price_before_taxesnumber
    currencystring
    taxes_and_fees_includedboolean
    availableboolean
    cheapest_offer_free_cancellationboolean
    free_cancellation_availableboolean
    free_cancellation_untilnull
    urlstring
    fetched_atstring
    ageinteger

将 agoda.com 数据导出为 CSV

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

列表CSV 列
搜索GET /searchid, name, latitude, longitude, property_type, star_rating, review_score, review_count, area, city, country, available, total_price, total_price_before_taxes, currency, taxes_and_fees_included, cheapest_offer_free_cancellation, free_cancellation_available, free_cancellation_until, photos, url

嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作

agoda.com API 常见问题

能获取什么数据、费用多少、如何调用。

agoda.com 有官方 API 吗?

这个 agoda.com API 不是官方 API。它是 maviapi 针对 agoda.com 上的公开数据提供的独立托管 API,并非由 agoda.com 开发、认可或支持。agoda.com 是否提供自己的开发者 API,请向 agoda.com 咨询。这个 API 用一个 maviapi 密钥即可调用,它的每个端点和返回的每个字段都在本页有文档说明。

agoda.com API 可以获取哪些数据?

agoda.com API 有 2 个端点。每个端点都返回 JSON,参数和字段见上方的文档:

  • GET /search: 按目的地名称或地图区域查询可预订的住宿(酒店、公寓、青年旅舍、别墅等),并给出整个入住期间的总价。
  • GET /property/{property_id}: 按 Agoda id 查询单个住宿:名称、住宿类型、星级、简介、地址、坐标、全部照片、设施(按 Agoda 上的分组)、住客评论评分(0-10)和评论数、入住和退房时间,以及给定入住期间的最低总价(整个入住期间、所有房间,含税费)及币种、取消政策信息和带有相同搜索条件的住宿页面 url。

agoda.com API 的价格是多少?

调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。

如何调用 agoda.com API?

向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /search:

cURL
curl 'https://api.maviapi.com/v1/sites/agoda/search' \
  -H "Authorization: Bearer $MAVI_KEY"

在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。

以 JSON 获取 agoda.com 数据有哪些方式?

以 JSON 获取 agoda.com 数据的每种方式适合不同的需求:

  • 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 agoda.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
  • Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
  • RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
  • maviapi: 本页的 agoda.com API:2 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。

agoda.com 改版后会怎样?

您的代码不需要改动。agoda.com 修改页面时,maviapi 会让 agoda.com API 保持可用,您继续调用同样的端点,并得到本页文档所述结构的 JSON。它当前的运行状况见状态页,变更记录见它的更新日志。

更新会破坏我的 agoda.com API 集成吗?

不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。

  • Tripadvisor API

    来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…

  • Songkick 演唱会 API

    从 Songkick 获取任意城市在指定日期范围内即将举行的演唱会和音乐节,包含场馆、演出者、票价和购票链接。

  • Google Maps API

    来自 maps.google.com 的结构化数据。