最后更新
更新日志/search-v35 credits per call搜索 V3
将地点或场所名称解析为网站搜索返回的所有 TripAdvisor 地点,每种类型最多取 20 个最佳匹配,去重后按以下顺序分组:城市和区域、酒店、景点、旅游项目、餐厅、航空公司、邮轮、邮轮公司。每项包含 id、名称、类型、上级地区、坐标、URL 和缩略图;可选按 lat/lng 坐标点调整排序,并按类型筛选。
Authorization: Bearer <key> on every request.Parameters
place or venue name, e.g. a city, landmark or hotel
optional latitude to rank results near (give together with lng)
optional longitude to rank results near (give together with lat)
optional comma list of kinds to keep: geo, accommodation, attraction, attraction_product, eatery, airline, ship, cruise_line (e.g. geo for cities and countries only); the filter keeps the ranking of the unfiltered list
Response fields
querye.g."Istanbul"centerresults
geo_ide.g."293974"namee.g."Istanbul"typee.g."CITY"parente.g."Türkiye, Europe"coordinates
latitudee.g.41.00986longitudee.g.28.95707urle.g."https://www.tripadvisor.com/Tourism-g293974-Istanbul-Vacations.html"thumbnail
urle.g."https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1e/09/7b/8e/ortakoy-mosque.jpg?w=400&h=-1&s=1"url_templatee.g."https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1e/09/7b/8e/ortakoy-mosque.jpg?w={width}&h={height}&s=1"max_widthe.g.2048max_heighte.g.1299pagination
counte.g.82has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T17:55:12.413Z"agee.g.0curl "https://api.maviapi.com/v1/sites/tripadvisor/search-v3?q=Istanbul" \-H "Authorization: Bearer $MAVI_KEY"
{
"query": "Istanbul",
"center": null,
"results": [
{
"geo_id": "293974",
"name": "Istanbul",
"type": "CITY",
"parent": "Türkiye, Europe",
"coordinates": {
"latitude": 41.00986,
"longitude": 28.95707
},
"url": "https://www.tripadvisor.com/Tourism-g293974-Istanbul-Vacations.html",
"thumbnail": {
"url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1e/09/7b/8e/ortakoy-mosque.jpg?w=400&h=-1&s=1",
"url_template": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1e/09/7b/8e/ortakoy-mosque.jpg?w={width}&h={height}&s=1",
"max_width": 2048,
"max_height": 1299
}
}
],
"pagination": {
"count": 82,
"has_more": false,
"next_cursor": null
},
"fetched_at": "2026-11-27T17:55:12.413Z",
"age": 0
}Get all the data, no code
Collect every page of GET /search-v3 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 Tripadvisor 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 Tripadvisor API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=tripadvisor -- npx -y '@maviapi/mcp'Import Tripadvisor 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/tripadvisor/openapi.json - Postman
https://api.maviapi.com/v1/apis/tripadvisor/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
使用 Tripadvisor API 进行开发
选择一个端点开始
- 搜索 V3
GET /search-v3将地点或场所名称解析为网站搜索返回的所有 TripAdvisor 地点,每种类型最多取 20 个最佳匹配,去重后按以下顺序分组:城市和区域、酒店、景点、旅游项目、餐厅、航空公司、邮轮、邮轮公司。每项包含 id、名称、类型、上级地区、坐标、URL 和缩略图;可选按 lat/lng 坐标点调整排序,并按类型筛选。
GET /search-v3 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 place or venue name, e.g. a city, landmark or hotel lat string / query 否 optional latitude to rank results near (give together with lng) lng string / query 否 optional longitude to rank results near (give together with lat) types string / query 否 optional comma list of kinds to keep: geo, accommodation, attraction, attraction_product, eatery, airline, ship, cruise_line (e.g. geo for cities and countries only); the filter keeps the ranking of the unfiltered list 响应字段 字段 类型 说明 query string center null results object[] results[].geo_id string results[].name string results[].type string results[].parent string results[].coordinates object results[].coordinates.latitude number results[].coordinates.longitude number results[].url string results[].thumbnail object results[].thumbnail.url string results[].thumbnail.url_template string results[].thumbnail.max_width integer results[].thumbnail.max_height integer pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 地点
GET /place单个地点(酒店、餐厅或景点)的完整详情:名称、评分、评论数、在所在城市的排名、价格等级、简介、照片数、电话、地址、坐标、图片、URL,以及设施(酒店)、菜系(餐厅)、营业时间和类别。适用于任意地点 id。
GET /place 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / query 否 TripAdvisor place id (the id field of a list row, the d<id> in a place URL), e.g. 250927 geo string / query 否 geo_id of the city the place belongs to (the geo_id of a list row), e.g. 187147; used to locate the place's list row when its own page does not say type string / query 否 hotel, restaurant or attraction; the place's real type wins when they differ 可选值: hotel, restaurant, attraction. 响应字段 字段 类型 说明 id string type string name string rating number review_count integer ranking_position integer ranking_denominator integer ranking_category string price_range string description string photo_count integer phone string address object address.street string address.locality string address.region null address.country string address.postal_code string coordinates object coordinates.latitude number coordinates.longitude number image string url string cuisines null amenities string[] opening_hours null category string source string fetched_at string age integer - 照片 V2
GET /photos-v2单个地点(酒店、餐厅或景点)的图库,按网站图库顺序返回最多 100 张照片,并附该地点的照片总数:照片 id、最大尺寸版本的 URL 和尺寸、说明文字、作者、作者主页、提供方(TRAVELER、OWNER、MANAGEMENT 等)和上传时间。
GET /photos-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / query 否 TripAdvisor place id (the id the list endpoints return, the d<id> in a place URL), e.g. 250927 响应字段 字段 类型 说明 id string total integer photos object[] photos[].id string photos[].url string photos[].max_width integer photos[].max_height integer photos[].caption null photos[].attribution object photos[].attribution.author string photos[].attribution.author_url string photos[].attribution.source string photos[].uploaded_at string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 景点 V2
GET /attractions-v2某地区有评论的景点,按网站的旅行者最爱顺序排列,可选仅限一个类别;每页覆盖网站的 30 个排名位,尚无评论的景点不返回(因此一页可能不足 30 条)。每行包含排名、id、名称、URL、评分、评论数、类型字符串、价格提示、简介、坐标、图片、顶级类别、类型标签(id/name)和街区。同时返回总数、是否有下一页,以及该地区提供的类别及各自数量。
GET /attractions-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id of the city, region or country (from /search), e.g. 293974 for Istanbul page integer / query 否 1-based page of 30 site ranks (page N covers ranks 30*(N-1)+1 to 30*N) category string / query 否 optional category id: 47 Sights & Landmarks, 49 Museums, 57 Nature & Parks, 56 Fun & Games, 20 Nightlife, 40 Spas & Wellness, 41 Classes & Workshops, 48 Zoos & Aquariums, 52 Water & Amusement Parks, 53 Casinos & Gambling, 55 Boat Tours & Water Sports fields string / query 否 optional comma-separated row field names (e.g. rank,id) to put first in each row; every row always carries all of its fields 响应字段 字段 类型 说明 location object location.geo_id string page integer page_size integer category null total integer has_next_page boolean available_categories object[] available_categories[].id string available_categories[].name string available_categories[].count integer attractions object[] attractions[].rank integer attractions[].id string attractions[].name string attractions[].url string attractions[].rating number attractions[].review_count integer attractions[].category string attractions[].price string attractions[].description null attractions[].coordinates object attractions[].coordinates.latitude number attractions[].coordinates.longitude number attractions[].image string attractions[].categories object[] attractions[].categories[].id string attractions[].categories[].name string attractions[].tags object[] attractions[].tags[].id string attractions[].tags[].name string attractions[].neighborhood string attractions[].geo_id string fetched_at string age integer - 餐厅 V2
GET /restaurants-v2某地区的餐厅,按网站的最高评分顺序返回,每页 30 条,可选按菜系和价格区间筛选。每行包含排名、id、名称、URL、评分、评论数、价格区间、菜系、电话、地址、坐标、图片、是否接受预订,以及每天的营业时间(mon..sun,每天为 {open, close} 时段列表,格式为 HH:MM,休息日为空)。同时返回匹配总数、是否有下一页,以及该地区提供的菜系和价格区间及各自数量。
GET /restaurants-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id of a city (from /search), e.g. 293974 for Istanbul page integer / query 否 1-based page of 30 (page N returns ranks 30*(N-1)+1 to 30*N) cuisine string / query 否 optional cuisine name or id (e.g. Seafood or 10643, Turkish or 10663, Italian or 4617); comma-separate several to match any of them price string / query 否 optional price range: cheap (Cheap Eats), mid (Mid-range) or fine (Fine Dining); comma-separate several, e.g. cheap,mid fields string / query 否 optional comma-separated row field names (e.g. rank,id) to put first in each row; every row always carries all of its fields 响应字段 字段 类型 说明 location object location.geo_id string location.name string location.country string location.region null location.city string location.coordinates null location.breadcrumbs string[] page integer page_size integer filters object filters.cuisine string[] filters.price string[] total integer has_next_page boolean available_cuisines object[] available_cuisines[].id string available_cuisines[].name string available_cuisines[].count integer available_price_ranges object[] available_price_ranges[].id string available_price_ranges[].name string available_price_ranges[].count integer restaurants object[] restaurants[].rank integer restaurants[].id string restaurants[].name string restaurants[].url string restaurants[].rating integer restaurants[].review_count integer restaurants[].price_range string restaurants[].cuisine string[] restaurants[].phone string restaurants[].address object restaurants[].address.street string restaurants[].address.locality string restaurants[].address.region null restaurants[].address.country string restaurants[].address.postal_code string restaurants[].coordinates object restaurants[].coordinates.latitude number restaurants[].coordinates.longitude number restaurants[].image string restaurants[].accepts_reservations boolean restaurants[].opening_hours object restaurants[].opening_hours.mon object[] restaurants[].opening_hours.mon[].open string restaurants[].opening_hours.mon[].close string restaurants[].opening_hours.tue object[] restaurants[].opening_hours.tue[].open string restaurants[].opening_hours.tue[].close string restaurants[].opening_hours.wed object[] restaurants[].opening_hours.wed[].open string restaurants[].opening_hours.wed[].close string restaurants[].opening_hours.thu object[] restaurants[].opening_hours.thu[].open string restaurants[].opening_hours.thu[].close string restaurants[].opening_hours.fri object[] restaurants[].opening_hours.fri[].open string restaurants[].opening_hours.fri[].close string restaurants[].opening_hours.sat object[] restaurants[].opening_hours.sat[].open string restaurants[].opening_hours.sat[].close string restaurants[].opening_hours.sun object[] restaurants[].opening_hours.sun[].open string restaurants[].opening_hours.sun[].close string restaurants[].geo_id string fetched_at string age integer - 搜索
GET /search将地名解析为最匹配的 4 个 TripAdvisor 地理位置(城市、区域、国家),最佳匹配在前:geo_id、名称、类型、上级地区、坐标和 URL。
GET /search 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 place name to resolve, e.g. a city or country types string / query 否 optional comma list of kinds to search instead of geos (geo, accommodation, attraction, attraction_product, eatery, airline, ship, cruise_line); omit for cities, regions and countries 响应字段 字段 类型 说明 query string results object[] results[].geo_id string results[].name string results[].type string results[].parent string results[].coordinates object results[].coordinates.latitude number results[].coordinates.longitude number results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 景点
GET /attractions某地区的热门景点/玩乐项目,按网站的旅行者最爱顺序返回,每页 30 条:排名、id、名称、URL、评分、评论数、类别、价格提示、简介、坐标和图片,以及该地区的 geo_id。
GET /attractions 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id of the city, region or country (from /search), e.g. 187147 for Paris page integer / query 否 1-based page of 30 results (page N holds ranks 30*(N-1)+1 to 30*N) 响应字段 字段 类型 说明 location object location.geo_id string attractions object[] attractions[].rank integer attractions[].id string attractions[].name string attractions[].url string attractions[].rating number attractions[].review_count integer attractions[].category string attractions[].price string attractions[].description string attractions[].coordinates object attractions[].coordinates.latitude number attractions[].coordinates.longitude number attractions[].image string attractions[].geo_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 餐厅
GET /restaurants某地区的餐厅,按网站的最高评分顺序返回,每页 30 条:排名、id、名称、URL、评分、评论数、价格区间、菜系、电话、地址、坐标、图片和是否接受预订。同时返回该地区列出的餐厅总数。
GET /restaurants 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id of a city (from /search), e.g. 187147 for Paris page integer / query 否 1-based page of 30 results (page N holds ranks 30*(N-1)+1 to 30*N) 响应字段 字段 类型 说明 location object location.geo_id string location.name string location.country string location.region null location.city string location.coordinates null location.breadcrumbs string[] total integer restaurants object[] restaurants[].rank integer restaurants[].id string restaurants[].name string restaurants[].url string restaurants[].rating number restaurants[].review_count integer restaurants[].price_range string restaurants[].cuisine string[] restaurants[].phone string restaurants[].address object restaurants[].address.street string restaurants[].address.locality string restaurants[].address.region null restaurants[].address.country string restaurants[].address.postal_code string restaurants[].coordinates object restaurants[].coordinates.latitude number restaurants[].coordinates.longitude number restaurants[].image string restaurants[].accepts_reservations boolean restaurants[].geo_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 酒店
GET /hotels某地区的酒店及其他住宿,按网站的旅行者排名顺序返回,每页 30 条(不含赞助推广位):排名、id、名称、URL、评分、评论数、不限日期的典型每晚价格区间(USD)、类别排名、住宿类型、电话、地址、坐标、街区、重点设施、奖项和图片。同时返回该地区的酒店总数。
GET /hotels 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id of the city, region or country (from /search), e.g. 187147 for Paris page integer / query 否 1-based page of 30 results (page N holds ranks 30*(N-1)+1 to 30*N) 响应字段 字段 类型 说明 location object location.geo_id string location.name string location.country string location.region null location.city string location.coordinates object location.coordinates.latitude number location.coordinates.longitude number location.breadcrumbs string[] total integer hotels object[] hotels[].rank integer hotels[].id string hotels[].name string hotels[].url string hotels[].rating number hotels[].review_count integer hotels[].price_range string hotels[].price_min integer hotels[].price_max null hotels[].ranking_position integer hotels[].ranking_string string hotels[].accommodation_type string hotels[].phone string hotels[].address object hotels[].address.street string hotels[].address.locality string hotels[].address.region null hotels[].address.country string hotels[].address.postal_code string hotels[].coordinates object hotels[].coordinates.latitude number hotels[].coordinates.longitude number hotels[].neighborhood string hotels[].amenities string[] hotels[].award string hotels[].image string hotels[].geo_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 照片
GET /photos单个地点(酒店、餐厅或景点)按网站图库顺序的前 100 张照片,并附该地点的照片总数:照片 id、最大尺寸版本的 URL 和尺寸、说明文字、作者、作者主页、提供方(TRAVELER、OWNER、MANAGEMENT 等)和上传时间。
GET /photos 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / query 否 TripAdvisor place id (the id the list endpoints return, the d<id> in a place URL), e.g. 294555 响应字段 字段 类型 说明 id string total integer photos object[] photos[].id string photos[].url string photos[].max_width integer photos[].max_height integer photos[].caption null photos[].attribution object photos[].attribution.author string photos[].attribution.author_url string photos[].attribution.source string photos[].uploaded_at string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 搜索 V2
GET /search-v2将地点或场所名称解析为最多 10 个任意类型的 TripAdvisor 地点(城市、酒店、景点、旅游项目、餐厅等):id、名称、类型、上级地区、坐标、URL 和缩略图,可选按 lat/lng 坐标点调整排序。
GET /search-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 place or venue name, e.g. a city, landmark or hotel lat string / query 否 optional latitude to rank results near (give together with lng) lng string / query 否 optional longitude to rank results near (give together with lat) types string / query 否 optional comma list of kinds to search (geo, accommodation, attraction, attraction_product, eatery, airline, ship, cruise_line); omit for every kind 响应字段 字段 类型 说明 query string center null results object[] results[].geo_id string results[].name string results[].type string results[].parent string results[].coordinates object results[].coordinates.latitude number results[].coordinates.longitude number results[].url string results[].thumbnail object results[].thumbnail.url string results[].thumbnail.url_template string results[].thumbnail.max_width integer results[].thumbnail.max_height integer pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 探索
GET /explore一次调用完成行程规划:将地名(或 geo_id)解析为对应的 TripAdvisor 地区,再按网站顺序列出其景点、酒店或餐厅,每页 30 条(即 /attractions-v2、/hotels 或 /restaurants-v2 返回的行,另加 type 和 geo_id),可选为前 N 行附上最新的 15 条评论。名称有歧义或无法识别时返回 400 及候选地点。
GET /explore 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 place name (city, region or country), qualified with its region or country when several places share the name ("Paris, France", "Paris, Texas"), or a numeric geo_id; case and accents are ignored kind string / query 否 what to list: attractions, hotels or restaurants 可选值: attractions, hotels, restaurants. reviews integer / query 否 attach the first page of reviews (15) to the top N rows of the page, 0 to 5; a failed lookup leaves that row's reviews null page integer / query 否 1-based page of 30 (page N holds ranks 30*(N-1)+1 to 30*N); up to 333 for restaurants, 1000 otherwise 响应字段 字段 类型 说明 resolved object resolved.input string resolved.geo_id string resolved.name string resolved.type string resolved.parent string kind string page integer page_size integer total integer has_next_page boolean items object[] items[].type string items[].geo_id string items[].rank integer items[].id string items[].name string items[].url string items[].rating number items[].review_count integer items[].category string items[].price string items[].description string items[].coordinates object items[].coordinates.latitude number items[].coordinates.longitude number items[].image string items[].categories object[] items[].categories[].id string items[].categories[].name string items[].tags object[] items[].tags[].id string items[].tags[].name string items[].neighborhood string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 评论
GET /reviews单个地点(酒店、餐厅或景点)的旅行者评论,最新的在前,每页 15 条:id、评分、标题、正文、发布日期、入住/游览日期(网站只给出月份,取该月最后一天)、旅行类型、评论者姓名、有用票数和业主回复。
GET /reviews 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / query 否 TripAdvisor place id (the id from a list endpoint, the d<id> in a place URL), e.g. 250927 geo string / query 否 optional geo_id of the place; when given it must be numeric (reviews are looked up by id) type string / query 否 optional place type (hotel, restaurant or attraction); reviews are looked up by id alone page integer / query 否 1-based page of 15 reviews 响应字段 字段 类型 说明 reviews object[] reviews[].id string reviews[].rating integer reviews[].title string reviews[].text string reviews[].published_date string reviews[].stay_date string reviews[].trip_type string reviews[].username string reviews[].helpful_votes integer reviews[].owner_response string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 酒店报价
GET /hotel-offers某地区在指定入住时段的实时酒店报价,取网站旅行者排名顺序中的前 30 家酒店:id、名称、URL、评分、评论数、合作方最低报价和推荐合作方报价(每晚价格,以 USD 计,与网站显示一致)、奖项、图片和街区。
GET /hotel-offers 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id (from /search), e.g. 187147 for Paris checkInDate string / query 否 check-in date, YYYY-MM-DD (default: 30 days from today) checkOutDate string / query 否 check-out date, YYYY-MM-DD (default: check-in + 2 nights) adults integer / query 否 number of adults rooms integer / query 否 number of rooms childrenAges string / query 否 comma-separated children ages, e.g. 4,9 响应字段 字段 类型 说明 geo_id string check_in_date string check_out_date string hotels object[] hotels[].id string hotels[].name string hotels[].url string hotels[].rating number hotels[].review_count integer hotels[].lowest_offer string hotels[].auction_winner_offer string hotels[].award string hotels[].image string hotels[].tag string hotels[].geo_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 酒店报价 V2
GET /hotel-offers-v2某地区指定日期的实时酒店报价:返回该地区列出的全部酒店,按所选顺序排列(不含赞助推广位),每家包含排名、id、名称、URL、评分、评论数、合作方最低报价和推荐合作方报价(每晚价格,含强制费用,按请求的币种格式化;没有合作方有空房时为 null)、奖项、图片和街区。同时返回网站给出的该地区酒店数,以及合作方报价是否已加载完毕。
GET /hotel-offers-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id (from /search), e.g. 187147 Paris, 60763 New York City checkInDate string / query 否 check-in date, YYYY-MM-DD, today or later (default: 30 days from today) checkOutDate string / query 否 check-out date, YYYY-MM-DD, after checkInDate (default: checkInDate + 2 nights) adults integer / query 否 number of adults (1-16) rooms integer / query 否 number of rooms (1-8) childrenAges string / query 否 comma-separated children ages 0-17, e.g. 4,9 currency string / query 否 ISO 4217 currency code for the prices, e.g. USD, EUR, GBP, TRY sort string / query 否 POPULARITY (traveler ranked), BEST_VALUE, PRICE_LOW_TO_HIGH or DISTANCE (to the city center) 可选值: POPULARITY, BEST_VALUE, PRICE_LOW_TO_HIGH, DISTANCE. 响应字段 字段 类型 说明 geo_id string check_in_date string check_out_date string adults integer rooms integer currency string sort string offers_complete boolean total integer hotels object[] hotels[].rank integer hotels[].id string hotels[].name string hotels[].url string hotels[].rating number hotels[].review_count integer hotels[].lowest_offer string hotels[].auction_winner_offer string hotels[].award string hotels[].image string hotels[].tag string hotels[].geo_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 全部酒店
GET /hotels-all一次调用获取某地区最多前 1000 家酒店,按网站的旅行者排名顺序排列(不含赞助推广位),字段与 /hotels 相同,并附该地区的酒店总数(可能超过实际返回的数量)。
GET /hotels-all 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 geo string / query 否 TripAdvisor geo_id of the city, region or country (from /search), e.g. 187147 for Paris 响应字段 字段 类型 说明 location object location.geo_id string location.name string location.country string location.region null location.city string location.coordinates object location.coordinates.latitude number location.coordinates.longitude number location.breadcrumbs string[] total integer hotels object[] hotels[].rank integer hotels[].id string hotels[].name string hotels[].url string hotels[].rating number hotels[].review_count integer hotels[].price_range string hotels[].price_min integer hotels[].price_max null hotels[].ranking_position integer hotels[].ranking_string string hotels[].accommodation_type string hotels[].phone string hotels[].address object hotels[].address.street string hotels[].address.locality string hotels[].address.region null hotels[].address.country string hotels[].address.postal_code string hotels[].coordinates object hotels[].coordinates.latitude number hotels[].coordinates.longitude number hotels[].neighborhood string hotels[].amenities string[] hotels[].award string hotels[].image string hotels[].geo_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 地点批量查询 V2
GET /places-batch-v2与 /places-batch 相同,另外返回每个地点坐标的来源:coordinates.source 为 place_page(地点自身页面)或 city_centre(所在城市的中心,用于旅游项目及网站从未标注位置的地点),仅当来源为 place_page 时 coordinates.precise 为 true。
GET /places-batch-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 ids string / query 否 comma list of up to 50 TripAdvisor place ids (hotels, restaurants or attractions from any list endpoint) photos integer / query 否 photos per place, 0 to 20 (0 leaves them out) 响应字段 字段 类型 说明 requested integer found integer places object[] places[].id string places[].type string places[].name string places[].geo_id string places[].rating number places[].review_count integer places[].ranking_position integer places[].ranking_denominator integer places[].ranking_category string places[].price_range null places[].description string places[].photo_count integer places[].phone string places[].website string places[].address object places[].address.street string places[].address.locality string places[].address.region null places[].address.country string places[].address.postal_code string places[].coordinates object places[].coordinates.latitude number places[].coordinates.longitude number places[].coordinates.source string places[].coordinates.precise boolean places[].image string places[].url string places[].categories string[] places[].cuisines null places[].amenities null places[].opening_hours string[] places[].category string places[].source string places[].photos object[] places[].photos[].id string places[].photos[].url string places[].photos[].max_width integer places[].photos[].max_height integer places[].photos[].caption string places[].photos[].attribution object places[].photos[].attribution.author string places[].photos[].attribution.author_url string places[].photos[].attribution.source string places[].photos[].uploaded_at string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 地点批量查询
GET /places-batch一次调用获取最多 50 个地点的完整详情,按传入顺序每个 id 返回一条记录:类型、名称、geo_id、评分、评论数、排名、价格等级、简介、照片数、电话、网站、地址、坐标、图片、URL、类别列表、菜系、营业时间、类别和前几张照片。查询失败的 id 改为返回 {id, error:{code, message}}(code 取值:invalid_id、not_found、not_a_place、upstream_error)。
GET /places-batch 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 ids string / query 否 comma list of up to 50 TripAdvisor place ids (hotels, restaurants or attractions from any list endpoint) photos integer / query 否 photos per place, 0 to 20 (0 leaves them out) 响应字段 字段 类型 说明 requested integer found integer places object[] places[].id string places[].type string places[].name string places[].geo_id string places[].rating number places[].review_count integer places[].ranking_position integer places[].ranking_denominator integer places[].ranking_category string places[].price_range null places[].description string places[].photo_count integer places[].phone string places[].website string places[].address object places[].address.street string places[].address.locality string places[].address.region null places[].address.country string places[].address.postal_code string places[].coordinates object places[].coordinates.latitude number places[].coordinates.longitude number places[].image string places[].url string places[].categories string[] places[].cuisines null places[].amenities null places[].opening_hours string[] places[].category string places[].source string places[].photos object[] places[].photos[].id string places[].photos[].url string places[].photos[].max_width integer places[].photos[].max_height integer places[].photos[].caption string places[].photos[].attribution object places[].photos[].attribution.author string places[].photos[].attribution.author_url string places[].photos[].attribution.source string places[].photos[].uploaded_at string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 区域内地点
GET /places-in-area地图矩形范围内的地点,按网站顺序返回(景点或餐厅最多 750 个,酒店最多 100 个):景点、餐厅或酒店,每个包含 id、名称、geo_id、URL、坐标、评分、评论数、类别和奖项;餐厅和酒店另含排名、价格等级、电话、地址和缩略图,餐厅还含网站和营业时间。同时返回该范围内的地点数量,以及网站是否对该数量设了上限(景点和餐厅上限为 750:放大地图可查看其余地点)。
GET /places-in-area 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 north number / query 否 northern edge, latitude in decimal degrees (-90 to 90, above south) south number / query 否 southern edge, latitude in decimal degrees (-90 to 90) east number / query 否 eastern edge, longitude in decimal degrees (-180 to 180, above west; split a box that crosses the 180th meridian) west number / query 否 western edge, longitude in decimal degrees (-180 to 180) type string / query 否 attractions, restaurants or hotels 可选值: attractions, restaurants, hotels. 响应字段 字段 类型 说明 box object box.north number box.south number box.east number box.west number type string total integer capped boolean places object[] places[].id string places[].name string places[].type string places[].geo_id string places[].url string places[].coordinates object places[].coordinates.latitude number places[].coordinates.longitude number places[].rating number places[].review_count integer places[].ranking_position null places[].ranking_total null places[].ranking_string null places[].price_level null places[].categories object[] places[].categories[].id integer places[].categories[].name string places[].award string places[].website null places[].phone null places[].opening_hours null places[].address object places[].address.street null places[].address.locality null places[].address.region null places[].address.country null places[].address.postal_code null places[].address.full null places[].locality null places[].thumbnail null pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer
将 Tripadvisor 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
搜索 V3GET /search-v3 | geo_id, name, type, parent, coordinates, url, thumbnail |
照片 V2GET /photos-v2 | id, url, max_width, max_height, caption, attribution, uploaded_at |
搜索GET /search | geo_id, name, type, parent, coordinates, url |
景点GET /attractions | rank, id, name, url, rating, review_count, category, price, description, coordinates, image, geo_id |
餐厅GET /restaurants | rank, id, name, url, rating, review_count, price_range, cuisine, phone, address, coordinates, image, accepts_reservations, geo_id |
酒店GET /hotels | rank, id, name, url, rating, review_count, price_range, price_min, price_max, ranking_position, ranking_string, accommodation_type, phone, address, coordinates, neighborhood, amenities, award, image, geo_id |
照片GET /photos | id, url, max_width, max_height, caption, attribution, uploaded_at |
搜索 V2GET /search-v2 | geo_id, name, type, parent, coordinates, url, thumbnail |
探索GET /explore | type, geo_id, rank, id, name, url, rating, review_count, category, price, description, coordinates, image, categories, tags, neighborhood |
评论GET /reviews | id, rating, title, text, published_date, stay_date, trip_type, username, helpful_votes, owner_response |
酒店报价GET /hotel-offers | id, name, url, rating, review_count, lowest_offer, auction_winner_offer, award, image, tag, geo_id |
酒店报价 V2GET /hotel-offers-v2 | rank, id, name, url, rating, review_count, lowest_offer, auction_winner_offer, award, image, tag, geo_id |
全部酒店GET /hotels-all | rank, id, name, url, rating, review_count, price_range, price_min, price_max, ranking_position, ranking_string, accommodation_type, phone, address, coordinates, neighborhood, amenities, award, image, geo_id |
地点批量查询 V2GET /places-batch-v2 | id, type, name, geo_id, rating, review_count, ranking_position, ranking_denominator, ranking_category, price_range, description, photo_count, phone, website, address, coordinates, image, url, categories, cuisines, amenities, opening_hours, category, source, photos |
地点批量查询GET /places-batch | id, type, name, geo_id, rating, review_count, ranking_position, ranking_denominator, ranking_category, price_range, description, photo_count, phone, website, address, coordinates, image, url, categories, cuisines, amenities, opening_hours, category, source, photos |
区域内地点GET /places-in-area | id, name, type, geo_id, url, coordinates, rating, review_count, ranking_position, ranking_total, ranking_string, price_level, categories, award, website, phone, opening_hours, address, locality, thumbnail |
嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作
Tripadvisor API 常见问题
能获取什么数据、费用多少、如何调用。
Tripadvisor 有官方 API 吗?
有,Tripadvisor 提供自己的 API:Tripadvisor Terra(核实日期:2026-11-25)。本页的 Tripadvisor API 与它无关,是非官方 API:它是 maviapi 针对 tripadvisor.com 上的公开数据提供的独立托管 API,并非由 Tripadvisor 开发、认可或支持。
Tripadvisor API 可以获取哪些数据?
Tripadvisor API 有 19 个端点。每个端点都返回 JSON,参数和字段见上方的文档:
- GET
/search-v3: 将地点或场所名称解析为网站搜索返回的所有 TripAdvisor 地点,每种类型最多取 20 个最佳匹配,去重后按以下顺序分组:城市和区域、酒店、景点、旅游项目、餐厅、航空公司、邮轮、邮轮公司。 - GET
/place: 单个地点(酒店、餐厅或景点)的完整详情:名称、评分、评论数、在所在城市的排名、价格等级、简介、照片数、电话、地址、坐标、图片、URL,以及设施(酒店)、菜系(餐厅)、营业时间和类别。 - GET
/photos-v2: 单个地点(酒店、餐厅或景点)的图库,按网站图库顺序返回最多 100 张照片,并附该地点的照片总数:照片 id、最大尺寸版本的 URL 和尺寸、说明文字、作者、作者主页、提供方(TRAVELER、OWNER、MANAGEMENT 等)和上传时间。 - GET
/attractions-v2: 某地区有评论的景点,按网站的旅行者最爱顺序排列,可选仅限一个类别;每页覆盖网站的 30 个排名位,尚无评论的景点不返回(因此一页可能不足 30 条)。 - GET
/restaurants-v2: 某地区的餐厅,按网站的最高评分顺序返回,每页 30 条,可选按菜系和价格区间筛选。 - GET
/search: 将地名解析为最匹配的 4 个 TripAdvisor 地理位置(城市、区域、国家),最佳匹配在前:geo_id、名称、类型、上级地区、坐标和 URL。 - GET
/attractions: 某地区的热门景点/玩乐项目,按网站的旅行者最爱顺序返回,每页 30 条:排名、id、名称、URL、评分、评论数、类别、价格提示、简介、坐标和图片,以及该地区的 geo_id。 - GET
/restaurants: 某地区的餐厅,按网站的最高评分顺序返回,每页 30 条:排名、id、名称、URL、评分、评论数、价格区间、菜系、电话、地址、坐标、图片和是否接受预订。 - GET
/hotels: 某地区的酒店及其他住宿,按网站的旅行者排名顺序返回,每页 30 条(不含赞助推广位):排名、id、名称、URL、评分、评论数、不限日期的典型每晚价格区间(USD)、类别排名、住宿类型、电话、地址、坐标、街区、重点设施、奖项和图片。 - GET
/photos: 单个地点(酒店、餐厅或景点)按网站图库顺序的前 100 张照片,并附该地点的照片总数:照片 id、最大尺寸版本的 URL 和尺寸、说明文字、作者、作者主页、提供方(TRAVELER、OWNER、MANAGEMENT 等)和上传时间。 - GET
/search-v2: 将地点或场所名称解析为最多 10 个任意类型的 TripAdvisor 地点(城市、酒店、景点、旅游项目、餐厅等):id、名称、类型、上级地区、坐标、URL 和缩略图,可选按 lat/lng 坐标点调整排序。 - GET
/explore: 一次调用完成行程规划:将地名(或 geo_id)解析为对应的 TripAdvisor 地区,再按网站顺序列出其景点、酒店或餐厅,每页 30 条(即 /attractions-v2、/hotels 或 /restaurants-v2 返回的行,另加 type 和 geo_id),可选为前 N 行附上最新的 15 条评论。 - GET
/reviews: 单个地点(酒店、餐厅或景点)的旅行者评论,最新的在前,每页 15 条:id、评分、标题、正文、发布日期、入住/游览日期(网站只给出月份,取该月最后一天)、旅行类型、评论者姓名、有用票数和业主回复。 - GET
/hotel-offers: 某地区在指定入住时段的实时酒店报价,取网站旅行者排名顺序中的前 30 家酒店:id、名称、URL、评分、评论数、合作方最低报价和推荐合作方报价(每晚价格,以 USD 计,与网站显示一致)、奖项、图片和街区。 - GET
/hotel-offers-v2: 某地区指定日期的实时酒店报价:返回该地区列出的全部酒店,按所选顺序排列(不含赞助推广位),每家包含排名、id、名称、URL、评分、评论数、合作方最低报价和推荐合作方报价(每晚价格,含强制费用,按请求的币种格式化;没有合作方有空房时为 null)、奖项、图片和街区。 - GET
/hotels-all: 一次调用获取某地区最多前 1000 家酒店,按网站的旅行者排名顺序排列(不含赞助推广位),字段与 /hotels 相同,并附该地区的酒店总数(可能超过实际返回的数量)。 - GET
/places-batch-v2: 与 /places-batch 相同,另外返回每个地点坐标的来源:coordinates.source 为 place_page(地点自身页面)或 city_centre(所在城市的中心,用于旅游项目及网站从未标注位置的地点),仅当来源为 place_page 时 coordinates.precise 为 true。 - GET
/places-batch: 一次调用获取最多 50 个地点的完整详情,按传入顺序每个 id 返回一条记录:类型、名称、geo_id、评分、评论数、排名、价格等级、简介、照片数、电话、网站、地址、坐标、图片、URL、类别列表、菜系、营业时间、类别和前几张照片。 - GET
/places-in-area: 地图矩形范围内的地点,按网站顺序返回(景点或餐厅最多 750 个,酒店最多 100 个):景点、餐厅或酒店,每个包含 id、名称、geo_id、URL、坐标、评分、评论数、类别和奖项;餐厅和酒店另含排名、价格等级、电话、地址和缩略图,餐厅还含网站和营业时间。
Tripadvisor API 的价格是多少?
调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。
如何调用 Tripadvisor API?
向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /search-v3:
curl 'https://api.maviapi.com/v1/sites/tripadvisor/search-v3' \
-H "Authorization: Bearer $MAVI_KEY"在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。
以 JSON 获取 Tripadvisor 数据有哪些方式?
以 JSON 获取 Tripadvisor 数据的每种方式适合不同的需求:
- Tripadvisor Terra: 需要写入权限、账号数据或与 Tripadvisor 签订协议时更合适。
- 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 tripadvisor.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
- Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
- RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
- maviapi: 本页的 Tripadvisor API:19 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。
tripadvisor.com 改版后会怎样?
更新会破坏我的 Tripadvisor API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Kiwi.com API
搜索并比较 Kiwi.com 上的航班:返回带实时价格、航空公司、航线和起降时间的行程,还可查询地点和航线。
- GetYourGuide API
GetYourGuide 的游览和活动列表:价格、评分、可订日期和目的地,另有单个活动的详情,并可通过站点地图批量发现活动。
- Booking.com API
按地点和入住日期搜索 Booking.com 的住宿,查看住宿详情、价格和住客评分。
- Airbnb API
按地点和日期搜索 Airbnb 短租房源,并获取房源详情:数据取自 Airbnb 服务端渲染的搜索页和房源页,以结构清晰的 JSON 返回。
- Trainline API
Trainline(thetrainline.com)上任意两个车站之间的火车票价和发车时间。
- FlightList API
在任意日期范围内搜索低价单程航班:票价、航班时刻、航空公司和每个航段的航班号,另有机场和 IATA 代码查询。与 flightlist.io 的搜索功能相对应。