最后更新
更新日志/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)。
Authorization: Bearer <key> on every request.Parameters
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`.
northern latitude of a bounding box (with south, east, west; overrides destination)
southern latitude of the bounding box
eastern longitude of the bounding box
western longitude of the bounding box
latitude of a circle centre (with lng and radius_km; overrides destination)
longitude of the circle centre
circle radius in kilometres (used with lat/lng)
arrival date YYYY-MM-DD (default: 30 days from today)
departure date YYYY-MM-DD (default: checkin + 2 nights)
number of adult guests
number of children
comma-separated child ages, e.g. "4,9" (missing ages default to 8)
number of rooms
ISO 4217 currency code for prices, e.g. USD, EUR, THB
result page, starting at 1
Response fields
destination
namee.g."Bangkok"categorye.g."City"ine.g."Thailand"city_ide.g.9395object_ide.g.9395checkine.g."2026-12-28"checkoute.g."2026-12-30"nightse.g.2pagee.g.1totale.g.3692counte.g.49properties
ide.g.546811namee.g."Ramada Graand Swiss Sukhumvit 11"latitudee.g.13.7408599853516longitudee.g.100.556640625property_typee.g."Hotel"star_ratinge.g.4review_scoree.g.8review_counte.g.12112areae.g."Sukhumvit"citye.g."Bangkok"countrye.g."Thailand"availablee.g.truetotal_pricee.g.303.46total_price_before_taxese.g.257.82currencye.g."USD"taxes_and_fees_includede.g.truecheapest_offer_free_cancellatione.g.truefree_cancellation_availablee.g.truefree_cancellation_untile.g."2026-12-27T00:00:00.000+07:00"photosurle.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¤cyCode=USD"pagination
counte.g.49has_moree.g.truenext_cursore.g."WzEsIjhhZjEzOWI3IixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-28T14:29:40.132Z"agee.g.0curl "https://api.maviapi.com/v1/sites/agoda/search?destination=Bangkok&radius_km=2&adults=2&children=0&rooms=1¤cy=USD&page=1" \-H "Authorization: Bearer $MAVI_KEY"
{
"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¤cyCode=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.
https://mcp.maviapi.com/mcpOr 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 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/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 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 destination string / 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`. north string / query 否 northern latitude of a bounding box (with south, east, west; overrides destination) south string / query 否 southern latitude of the bounding box east string / query 否 eastern longitude of the bounding box west string / query 否 western longitude of the bounding box lat string / query 否 latitude of a circle centre (with lng and radius_km; overrides destination) lng string / query 否 longitude of the circle centre radius_km number / query 否 circle radius in kilometres (used with lat/lng) checkin string / query 否 arrival date YYYY-MM-DD (default: 30 days from today) checkout string / query 否 departure date YYYY-MM-DD (default: checkin + 2 nights) adults integer / query 否 number of adult guests children integer / query 否 number of children child_ages string / query 否 comma-separated child ages, e.g. "4,9" (missing ages default to 8) rooms integer / query 否 number of rooms currency string / query 否 ISO 4217 currency code for prices, e.g. USD, EUR, THB page integer / query 否 result page, starting at 1 响应字段 字段 类型 说明 destination object destination.name string destination.category string destination.in string destination.city_id integer destination.object_id integer checkin string checkout string nights integer page integer total integer count integer properties object[] properties[].id integer properties[].name string properties[].latitude number properties[].longitude number properties[].property_type string properties[].star_rating number properties[].review_score number properties[].review_count integer properties[].area string properties[].city string properties[].country string properties[].available boolean properties[].total_price number properties[].total_price_before_taxes number properties[].currency string properties[].taxes_and_fees_included boolean properties[].cheapest_offer_free_cancellation boolean properties[].free_cancellation_available boolean properties[].free_cancellation_until string properties[].photos string[] properties[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 住宿
GET /property/{property_id}按 Agoda id 查询单个住宿:名称、住宿类型、星级、简介、地址、坐标、全部照片、设施(按 Agoda 上的分组)、住客评论评分(0-10)和评论数、入住和退房时间,以及给定入住期间的最低总价(整个入住期间、所有房间,含税费)及币种、取消政策信息和带有相同搜索条件的住宿页面 url。所选日期无可预订房间时,价格字段为 null。id 即搜索返回的 `id`。
GET /property/{property_id} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 property_id integer / path 是 Agoda property id, as returned by search checkin string / query 否 arrival date YYYY-MM-DD (default: 30 days from today) checkout string / query 否 departure date YYYY-MM-DD (default: checkin + 2 nights) adults integer / query 否 number of adult guests children integer / query 否 number of children child_ages string / query 否 comma-separated child ages, e.g. "4,9" (missing ages default to 8) rooms integer / query 否 number of rooms currency string / query 否 ISO 4217 currency code for the price, e.g. USD, EUR, THB 响应字段 字段 类型 说明 id integer name string property_type string star_rating number description string description_long string address object address.street string address.postal_code string address.area string address.city string address.country string address.country_code string latitude number longitude number review_score number review_count integer check_in_from string check_in_until string check_out_until string useful_info object useful_info.Check-in from string useful_info.Check-out until string useful_info.Check-in until string useful_info.Travel time to airport (minutes) string useful_info.Airport transfer fee string useful_info.Daily Internet/Wi-Fi fee string useful_info.Breakfast charge (unless included in room price) string useful_info.Year property opened string useful_info.Number of floors string useful_info.Room voltage string useful_info.Number of rooms string useful_info.Non-smoking rooms/floors string useful_info.Number of restaurants string useful_info.Number of bars/lounges string useful_info.License Id / Local Tax ID/ Entity Name string useful_info.Daily parking fee string amenities object[] amenities[].group string amenities[].items string[] languages_spoken string[] photos object[] photos[].url string photos[].caption string photos[].group string checkin string checkout string nights integer lowest_total_price number lowest_total_price_before_taxes number currency string taxes_and_fees_included boolean available boolean cheapest_offer_free_cancellation boolean free_cancellation_available boolean free_cancellation_until null url string fetched_at string age integer
将 agoda.com 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
搜索GET /search | id, 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 '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 API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Tripadvisor API
来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…
- Songkick 演唱会 API
从 Songkick 获取任意城市在指定日期范围内即将举行的演唱会和音乐节,包含场馆、演出者、票价和购票链接。
- Google Maps API
来自 maps.google.com 的结构化数据。