最后更新
更新日志/search_stays_in_area5 credits per call按区域搜索住宿
返回日本某地图区域内在指定日期和住客人数下有空房的酒店、日式旅馆(ryokan)及其他住宿,区域可以是圆形(lat、lng、radius_km)或边界框(north、south、east、west),分页返回。住宿字段与 search_stays 相同,另含 distance_km,即到圆心(或边界框中心)的距离。total_results 统计全部匹配结果,但按距离排序的圆形区域除外:此时该值为 null,由 has_more 表示是否还有下一页。区域跨度最大约 55 km。
Authorization: Bearer <key> on every request.Parameters
latitude of the circle's centre (ignored when north/south/east/west are all given)
longitude of the circle's centre
circle radius in kilometres (0.1-27)
northern latitude of a bounding box; with south, east and west it replaces the circle
southern latitude of the bounding box
eastern longitude of the bounding box
western longitude of the bounding box
arrival date YYYY-MM-DD (default: 30 days from today)
departure date YYYY-MM-DD (default: the day after checkin)
adults per room
comma-separated ages of children per room, e.g. "4,9" (empty for none)
number of rooms
ISO currency code for prices, e.g. USD, JPY, EUR
result order; distance is from the centre, recommended is the site's ranking
only properties of this type (None for all)
only offers with this meal plan (None for any)
only offers that can be cancelled free of charge
1-based page number
properties per page (1-100)
Response fields
area
late.g.35.0116lnge.g.135.7681radius_kme.g.1checkine.g."2026-12-28"checkoute.g."2026-12-29"nightse.g.1adultse.g.2children_agesroomse.g.1currencye.g."USD"total_resultspagee.g.1page_sizee.g.20has_moree.g.trueproperties
ide.g."10123456871023"namee.g."Hotel Honnoji"latitudee.g.35.01055321longitudee.g.135.7683055property_typee.g."Ryokan"starse.g.3.5guest_scoree.g.4.56guest_score_scalee.g.5guest_score_labele.g."Excellent"review_counte.g.5total_pricee.g.197.19price_per_roome.g.197.19price_per_room_before_discounte.g.197.19discount_ratee.g.0currencye.g."USD"taxes_and_fees_includede.g.truemeal_plane.g."Room only"free_cancellatione.g.truefree_cancellation_untile.g."2026-12-25T23:59:00+09:00"cancellation_policye.g."FREE_CANCELLATION"plan_benefitsplan_restrictionsroom_typefacilitiesnearby_station
namee.g."Kyoto Shiyakusho-mae Station"transportatione.g."walk"timee.g.1awardsphotosurle.g."https://travel.rakuten.com/usa/en-us/hotel_info_item/cnt_japan/sub_kyoto/cty_kyoto_city/10123456871023/?startServiceDate=20261228&endServiceDate=20261229&numberOfUnits=1&numberOfAdults_1=2"distance_kme.g.0.118pagination
counte.g.20has_moree.g.truenext_cursore.g."WzEsIjEzZDg4MDgzIixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-28T15:48:22.458Z"agee.g.0curl "https://api.maviapi.com/v1/sites/travel-rakuten/search_stays_in_area?lat=35.0116&lng=135.7681&radius_km=1&adults=2&rooms=1¤cy=USD&sort=distance&free_cancellation=false&page=1&page_size=20" \-H "Authorization: Bearer $MAVI_KEY"
{
"area": {
"lat": 35.0116,
"lng": 135.7681,
"radius_km": 1
},
"checkin": "2026-12-28",
"checkout": "2026-12-29",
"nights": 1,
"adults": 2,
"children_ages": [
null
],
"rooms": 1,
"currency": "USD",
"total_results": null,
"page": 1,
"page_size": 20,
"has_more": true,
"properties": [
{
"id": "10123456871023",
"name": "Hotel Honnoji",
"latitude": 35.01055321,
"longitude": 135.7683055,
"property_type": "Ryokan",
"stars": 3.5,
"guest_score": 4.56,
"guest_score_scale": 5,
"guest_score_label": "Excellent",
"review_count": 5,
"total_price": 197.19,
"price_per_room": 197.19,
"price_per_room_before_discount": 197.19,
"discount_rate": 0,
"currency": "USD",
"taxes_and_fees_included": true,
"meal_plan": "Room only",
"free_cancellation": true,
"free_cancellation_until": "2026-12-25T23:59:00+09:00",
"cancellation_policy": "FREE_CANCELLATION",
"plan_benefits": [
"Free rental yukata"
],
"plan_restrictions": [
"Credit card prepayment only"
],
"room_type": [
"Japanese room"
],
"facilities": [
"Wi-Fi"
],
"nearby_station": {
"name": "Kyoto Shiyakusho-mae Station",
"transportation": "walk",
"time": 1
},
"awards": [
null
],
"photos": [
"https://image.space.rakuten.co.jp/d/strg/ctrl/26/67b8eb40e0652c04c0ba77aa039da4ccdcc82f3f.47.9.26.3.jpg"
],
"url": "https://travel.rakuten.com/usa/en-us/hotel_info_item/cnt_japan/sub_kyoto/cty_kyoto_city/10123456871023/?startServiceDate=20261228&endServiceDate=20261229&numberOfUnits=1&numberOfAdults_1=2",
"distance_km": 0.118
}
],
"pagination": {
"count": 20,
"has_more": true,
"next_cursor": "WzEsIjEzZDg4MDgzIixudWxsLDAseyJwYWdlIjoyfV0"
},
"fetched_at": "2026-11-28T15:48:22.458Z",
"age": 0
}Get all the data, no code
Collect every page of GET /search_stays_in_area 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 travel.rakuten.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 travel.rakuten.com API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=travel-rakuten -- npx -y '@maviapi/mcp'Import travel.rakuten.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/travel-rakuten/openapi.json - Postman
https://api.maviapi.com/v1/apis/travel-rakuten/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
使用 travel.rakuten.com API 进行开发
选择一个端点开始
- 按区域搜索住宿
GET /search_stays_in_area返回日本某地图区域内在指定日期和住客人数下有空房的酒店、日式旅馆(ryokan)及其他住宿,区域可以是圆形(lat、lng、radius_km)或边界框(north、south、east、west),分页返回。住宿字段与 search_stays 相同,另含 distance_km,即到圆心(或边界框中心)的距离。total_results 统计全部匹配结果,但按距离排序的圆形区域除外:此时该值为 null,由 has_more 表示是否还有下一页。区域跨度最大约 55 km。
GET /search_stays_in_area 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 lat string / query 否 latitude of the circle's centre (ignored when north/south/east/west are all given) lng string / query 否 longitude of the circle's centre radius_km number / query 否 circle radius in kilometres (0.1-27) north string / query 否 northern latitude of a bounding box; with south, east and west it replaces the circle 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 checkin string / query 否 arrival date YYYY-MM-DD (default: 30 days from today) checkout string / query 否 departure date YYYY-MM-DD (default: the day after checkin) adults integer / query 否 adults per room children_ages string / query 否 comma-separated ages of children per room, e.g. "4,9" (empty for none) rooms integer / query 否 number of rooms currency string / query 否 ISO currency code for prices, e.g. USD, JPY, EUR sort string / query 否 result order; distance is from the centre, recommended is the site's ranking 可选值: distance, recommended, price_low_to_high, price_high_to_low, guest_score, stars_high_to_low. property_type string / query 否 only properties of this type (None for all) meal_plan string / query 否 only offers with this meal plan (None for any) free_cancellation boolean / query 否 only offers that can be cancelled free of charge page integer / query 否 1-based page number page_size integer / query 否 properties per page (1-100) 响应字段 字段 类型 说明 area object area.lat number area.lng number area.radius_km number checkin string checkout string nights integer adults integer children_ages string[] rooms integer currency string total_results null page integer page_size integer has_more boolean properties object[] properties[].id string properties[].name string properties[].latitude number properties[].longitude number properties[].property_type string properties[].stars number properties[].guest_score number properties[].guest_score_scale integer properties[].guest_score_label string properties[].review_count integer properties[].total_price number properties[].price_per_room number properties[].price_per_room_before_discount number properties[].discount_rate integer properties[].currency string properties[].taxes_and_fees_included boolean properties[].meal_plan string properties[].free_cancellation boolean properties[].free_cancellation_until string properties[].cancellation_policy string properties[].plan_benefits string[] properties[].plan_restrictions string[] properties[].room_type string[] properties[].facilities string[] properties[].nearby_station object properties[].nearby_station.name string properties[].nearby_station.transportation string properties[].nearby_station.time integer properties[].awards string[] properties[].photos string[] properties[].url string properties[].distance_km number pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 获取住宿详情
GET /get_property单个住宿的完整详情:名称、类型、星级、住客评分(5 分制)和评论数、简介和亮点、按分组列出的设施、全部照片、坐标、地址、入住和退房时间、附近车站,以及指定日期和住客人数下所有可预订的客房报价(客房、方案、餐食方案、所有客房总价、每间客房价格、含税费和不含税费的价格、取消条款、剩余房间数),另附包含日期和住客人数的住宿页面 URL。
GET /get_property 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 property_id string / query 否 property id as returned by search_stays (the "id" field) checkin string / query 否 arrival date YYYY-MM-DD (default: 30 days from today) checkout string / query 否 departure date YYYY-MM-DD (default: the day after checkin) adults integer / query 否 adults per room children_ages string / query 否 comma-separated ages of children per room, e.g. "4,9" (empty for none) rooms integer / query 否 number of rooms currency string / query 否 ISO currency code for prices, e.g. USD, JPY, EUR 响应字段 字段 类型 说明 id string name string property_type string stars number guest_score number guest_score_scale integer review_count integer catch_copy string description null highlights object[] highlights[].title string highlights[].text string remarks string[] amenities object amenities.On-site facilities string[] amenities.Services offered string[] amenities.Accessibility string[] photos object[] photos[].url string photos[].caption null photos[].category null latitude number longitude number address object address.line string address.postal_code string address.country string address.region string address.city string phone string check_in_from string check_in_until string check_out_until string total_rooms integer languages string[] payment_options string[] nearby_stations object[] nearby_stations[].name string nearby_stations[].transportation string nearby_stations[].time integer awards string[] checkin string checkout string nights integer adults integer children_ages string[] rooms integer currency string offers object[] offers[].room_id string offers[].room_name string offers[].room_description null offers[].room_size null offers[].beds object[] offers[].beds[].name string offers[].beds[].amount integer offers[].capacity object offers[].capacity.adults integer offers[].capacity.children integer offers[].capacity.maxAdults integer offers[].capacity.maxChildren integer offers[].capacity.minGuests integer offers[].capacity.maxGuests integer offers[].view object offers[].view.id string offers[].view.text string offers[].view.title null offers[].view.description null offers[].view.icon string offers[].smoking_allowed boolean offers[].room_amenities string[] offers[].room_photos string[] offers[].plan_id string offers[].offer_id string offers[].plan_name string offers[].plan_description string offers[].meal_plan string offers[].plan_benefits string[] offers[].plan_restrictions string[] offers[].total_price number offers[].price_per_room number offers[].price_per_room_before_discount number offers[].discount_rate integer offers[].currency string offers[].taxes_and_fees_included object[] offers[].taxes_and_fees_included[].name string offers[].taxes_and_fees_included[].percentage number offers[].taxes_and_fees_included[].amount null offers[].taxes_and_fees_included[].currency null offers[].taxes_and_fees_included[].charged string offers[].taxes_and_fees_included[].age_from null offers[].taxes_and_fees_included[].age_to null offers[].taxes_and_fees_excluded object[] offers[].taxes_and_fees_excluded[].name string offers[].taxes_and_fees_excluded[].percentage null offers[].taxes_and_fees_excluded[].amount number offers[].taxes_and_fees_excluded[].currency string offers[].taxes_and_fees_excluded[].charged string offers[].taxes_and_fees_excluded[].age_from integer offers[].taxes_and_fees_excluded[].age_to null offers[].free_cancellation boolean offers[].free_cancellation_until string offers[].non_refundable boolean offers[].cancellation_penalties object[] offers[].cancellation_penalties[].from string offers[].cancellation_penalties[].days_before_checkin null offers[].cancellation_penalties[].percent integer offers[].cancellation_penalties[].type string offers[].payment_methods string[] offers[].rooms_left integer url string fetched_at string age integer - 搜索住宿
GET /search_stays返回日本某目的地在指定日期和住客人数下有空房的酒店、日式旅馆(ryokan)及其他住宿,分页返回,顺序与网站在所选排序方式下的顺序一致。每个住宿包含 id、名称、坐标、住宿类型、星级、住客评分(5 分制)和评论数、最便宜的可订报价(所有客房和所有晚数的总价、每间客房价格、货币、是否含税费、餐食方案和免费取消截止时间)、照片,以及包含日期和住客人数的住宿页面 URL。价格包含消费税和服务费;在住宿处支付的地方税(住宿税或温泉税)不包含在内,由 get_property 按报价列出。
GET /search_stays 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 destination string / query 否 city, prefecture, area, station or landmark name, e.g. "Kyoto", "Hakone", "Shinjuku"; matched to the site's place list (the match is returned as `destination`; an area returns stays inside it, a station or landmark returns stays near it) checkin string / query 否 arrival date YYYY-MM-DD (default: 30 days from today) checkout string / query 否 departure date YYYY-MM-DD (default: the day after checkin) adults integer / query 否 adults per room children_ages string / query 否 comma-separated ages of children per room, e.g. "4,9" (empty for none) rooms integer / query 否 number of rooms currency string / query 否 ISO currency code for prices, e.g. USD, JPY, EUR sort string / query 否 result order 可选值: recommended, price_low_to_high, price_high_to_low, stars_high_to_low, stars_low_to_high, guest_score. property_type string / query 否 only properties of this type (None for all) meal_plan string / query 否 only offers with this meal plan; prices and meal_plan then refer to such an offer (None for any) free_cancellation boolean / query 否 only offers that can be cancelled free of charge page integer / query 否 1-based page number page_size integer / query 否 properties per page (1-100) 响应字段 字段 类型 说明 destination object destination.name string destination.id string destination.type string checkin string checkout string nights integer adults integer children_ages string[] rooms integer currency string total_results integer page integer page_size integer properties object[] properties[].id string properties[].name string properties[].latitude number properties[].longitude number properties[].property_type string properties[].stars number properties[].guest_score number properties[].guest_score_scale integer properties[].guest_score_label string properties[].review_count integer properties[].total_price number properties[].price_per_room number properties[].price_per_room_before_discount number properties[].discount_rate integer properties[].currency string properties[].taxes_and_fees_included boolean properties[].meal_plan string properties[].free_cancellation boolean properties[].free_cancellation_until string properties[].cancellation_policy string properties[].plan_benefits string[] properties[].plan_restrictions string[] properties[].room_type string[] properties[].facilities string[] properties[].nearby_station object properties[].nearby_station.name string properties[].nearby_station.transportation string properties[].nearby_station.time integer properties[].awards 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
将 travel.rakuten.com 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
按区域搜索住宿GET /search_stays_in_area | id, name, latitude, longitude, property_type, stars, guest_score, guest_score_scale, guest_score_label, review_count, total_price, price_per_room, price_per_room_before_discount, discount_rate, currency, taxes_and_fees_included, meal_plan, free_cancellation, free_cancellation_until, cancellation_policy, plan_benefits, plan_restrictions, room_type, facilities, nearby_station, awards, photos, url, distance_km |
搜索住宿GET /search_stays | id, name, latitude, longitude, property_type, stars, guest_score, guest_score_scale, guest_score_label, review_count, total_price, price_per_room, price_per_room_before_discount, discount_rate, currency, taxes_and_fees_included, meal_plan, free_cancellation, free_cancellation_until, cancellation_policy, plan_benefits, plan_restrictions, room_type, facilities, nearby_station, awards, photos, url |
嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作
travel.rakuten.com API 常见问题
能获取什么数据、费用多少、如何调用。
travel.rakuten.com 有官方 API 吗?
这个 travel.rakuten.com API 不是官方 API。它是 maviapi 针对 travel.rakuten.com 上的公开数据提供的独立托管 API,并非由 travel.rakuten.com 开发、认可或支持。travel.rakuten.com 是否提供自己的开发者 API,请向 travel.rakuten.com 咨询。这个 API 用一个 maviapi 密钥即可调用,它的每个端点和返回的每个字段都在本页有文档说明。
travel.rakuten.com API 可以获取哪些数据?
travel.rakuten.com API 有 3 个端点。每个端点都返回 JSON,参数和字段见上方的文档:
- GET
/search_stays_in_area: 返回日本某地图区域内在指定日期和住客人数下有空房的酒店、日式旅馆(ryokan)及其他住宿,区域可以是圆形(lat、lng、radius_km)或边界框(north、south、east、west),分页返回。 - GET
/get_property: 单个住宿的完整详情:名称、类型、星级、住客评分(5 分制)和评论数、简介和亮点、按分组列出的设施、全部照片、坐标、地址、入住和退房时间、附近车站,以及指定日期和住客人数下所有可预订的客房报价(客房、方案、餐食方案、所有客房总价、每间客房价格、含税费和不含税费的价格、取消条款、剩余房间数),另附包含日期和住客人数的住宿… - GET
/search_stays: 返回日本某目的地在指定日期和住客人数下有空房的酒店、日式旅馆(ryokan)及其他住宿,分页返回,顺序与网站在所选排序方式下的顺序一致。
travel.rakuten.com API 的价格是多少?
调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。
如何调用 travel.rakuten.com API?
向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /search_stays_in_area:
curl 'https://api.maviapi.com/v1/sites/travel-rakuten/search_stays_in_area' \
-H "Authorization: Bearer $MAVI_KEY"在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。
以 JSON 获取 travel.rakuten.com 数据有哪些方式?
以 JSON 获取 travel.rakuten.com 数据的每种方式适合不同的需求:
- 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 travel.rakuten.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
- Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
- RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
- maviapi: 本页的 travel.rakuten.com API:3 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。
travel.rakuten.com 改版后会怎样?
更新会破坏我的 travel.rakuten.com API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Tripadvisor API
来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…
- Songkick 演唱会 API
从 Songkick 获取任意城市在指定日期范围内即将举行的演唱会和音乐节,包含场馆、演出者、票价和购票链接。
- Google Maps API
来自 maps.google.com 的结构化数据。