Tripadvisor 非官方数据 API

API ID 15223

Tripadvisor 行程规划数据:通过位置(geo_id)进行地理搜索,并获取景点、餐厅和酒店信息,包括评分、评论、价格和坐标。使用 /search 解析地点名称,然后使用 /attractions、/restaurants、/hotels 列出结果

API 文档

端点

请求
某个地点(geo_id)的热门景点/活动
Endpoint ID: 40710
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40710/attractions+by+location
输入参数

按地点划分的景点 — 端点功能

对象 描述
limit 可选 Max items returned from the page
offset 可选 Item offset within the page
refresh 可选 Bypass and repopulate the cache
geo 必需 TripAdvisor geo_id from /search
page 可选 1-based source page (30 results each)

剩余免费测试请求:3 / 3。


输入参数

limit
offset
refresh
geo
page
API 示例响应
JSON
{
    "data": {
        "location": {
            "geo_id": "187147"
        },
        "attractions": [
            {
                "rank": 1,
                "id": "188151",
                "name": "Eiffel Tower",
                "url": "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html",
                "rating": 4.6,
                "review_count": 144160,
                "category": "Points of Interest & Landmarks • Observation Decks & Towers",
                "price": null,
                "description": null,
                "coordinates": {
                    "latitude": 48.858353,
                    "longitude": 2.294464
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9e/7f/9d/eiffeltoren.jpg?w=1200&h=-1&s=1",
                "geo_id": "187147"
            },
            {
                "rank": 2,
                "id": "188150",
                "name": "Musée d'Orsay",
                "url": "https://www.tripadvisor.com/Attraction_Review-g187147-d188150-Reviews-Musee_d_Orsay-Paris_Ile_de_France.html",
                "rating": 4.7,
                "review_count": 68011,
                "category": "Art Museums",
                "price": null,
                "description": null,
                "coordinates": {
                    "latitude": 48.860035,
                    "longitude": 2.32685
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/13/26/b3/6e/20180601-122841-largejpg.jpg?w=1200&h=-1&s=1",
                "geo_id": "187147"
            }
        ]
    },
    "cached": false,
    "source": "tripadvisor:attractions-graphql",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
按地点划分的景点 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40710/attractions+by+location?limit=50&offset=Optionalrefresh=false&geo=187147&page=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
某个地点(geo_id)的景点,每页 30 个并支持正常分页,可选类别筛选,类别和标签以 id/name 数组形式提供,并在有描述时提供描述
Endpoint ID: 40711
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40711/attractions+by+location+paginated+filterable
输入参数

按地点分页筛选景点 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search
page 可选 1-based source page, 30 attractions each (page N returns ranks 30*(N-1)+1 to 30*N)
category 可选 Optional attraction 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. The ids the geo offers are listed in data.available_categories.
limit 可选 Max items returned from the page
offset 可选 Item offset within the page
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
page
category
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "location": {
            "geo_id": "293974"
        },
        "page": 1,
        "page_size": 30,
        "category": null,
        "total": 6803,
        "has_next_page": true,
        "available_categories": [
            {
                "id": "47",
                "name": "Sights & Landmarks",
                "count": 831
            },
            {
                "id": "55",
                "name": "Boat Tours & Water Sports",
                "count": 666
            }
        ],
        "attractions": [
            {
                "rank": 1,
                "id": "294555",
                "name": "Basilica Cistern",
                "url": "https://www.tripadvisor.com/Attraction_Review-g293974-d294555-Reviews-Basilica_Cistern-Istanbul.html",
                "rating": 4.5,
                "review_count": 32879,
                "category": "Historic Sites • Ancient Ruins",
                "price": null,
                "description": null,
                "coordinates": {
                    "latitude": 41.00876,
                    "longitude": 28.978268
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0c/3a/2c/dd/istanbul-36h-basilica.jpg?w=1200&h=-1&s=1",
                "categories": [
                    {
                        "id": "47",
                        "name": "Sights & Landmarks"
                    }
                ],
                "tags": [
                    {
                        "id": "11051",
                        "name": "Historic Sites"
                    },
                    {
                        "id": "11037",
                        "name": "Ancient Ruins"
                    }
                ],
                "neighborhood": "Sultanahmet",
                "geo_id": "293974"
            },
            {
                "rank": 2,
                "id": "294547",
                "name": "Topkapı Palace",
                "url": "https://www.tripadvisor.com/Attraction_Review-g293974-d294547-Reviews-TopkapI_Palace-Istanbul.html",
                "rating": 4.5,
                "review_count": 28708,
                "category": "History Museums",
                "price": null,
                "description": "This lavish palace was the royal residence of the Ottoman empire for almost 400 years. Here, you can peek into the imperial life of the sultans as you wander through the grand courtyards, pavilions and ceremonial rooms that display an impressive collection of artefacts and treasures. With a separate…",
                "coordinates": {
                    "latitude": 41.01154,
                    "longitude": 28.983381
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/14/2e/00/topkapi-sarayi.jpg?w=1200&h=-1&s=1",
                "categories": [
                    {
                        "id": "49",
                        "name": "Museums"
                    }
                ],
                "tags": [
                    {
                        "id": "11063",
                        "name": "History Museums"
                    }
                ],
                "neighborhood": "Sultanahmet",
                "geo_id": "293974"
            }
        ]
    },
    "cached": false,
    "source": "tripadvisor:attractions-graphql",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
按地点分页筛选景点 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40711/attractions+by+location+paginated+filterable?geo=293974&page=2&category=49&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
一次调用完成行程规划:将地名(或 geo_id)解析为其位置,然后按每页 30 个列出该地的景点、酒店或餐厅(类别),还可选择获取排名前 N 个结果的第一页评论。名称有歧义时,返回 400 及候选项 乐彩
Endpoint ID: 40712
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40712/explore+a+place
输入参数

探索一个地方 — 端点功能

对象 描述
q 必需 A 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. An ambiguous or unknown name answers 400 with the candidate places.
kind 可选 What to list for the place
reviews 可选 Attach the first page of reviews (15) to the top N results of the page; 0 for none. A review lookup that fails leaves that result's reviews null.
page 可选 1-based page of 30 results (page N holds ranks 30*(N-1)+1 to 30*N); up to 333 for restaurants, 1000 otherwise
limit 可选 Max items returned from the page
offset 可选 Item offset within the page
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

q
kind
reviews
page
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "resolved": {
            "input": "Paris, France",
            "geo_id": "187147",
            "name": "Paris",
            "type": "CITY",
            "parent": "Ile-de-France, France"
        },
        "kind": "attractions",
        "page": 1,
        "page_size": 30,
        "total": 10000,
        "has_next_page": true,
        "items": [
            {
                "type": "attraction",
                "geo_id": "187147",
                "rank": 1,
                "id": "188151",
                "name": "Eiffel Tower",
                "url": "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html",
                "rating": 4.6,
                "review_count": 144160,
                "category": "Points of Interest & Landmarks • Observation Decks & Towers",
                "price": null,
                "description": "Completed in 1889, this colossal landmark, although initially hated by many Parisians, is now a famous symbol of French civic pride.",
                "coordinates": {
                    "latitude": 48.858353,
                    "longitude": 2.294464
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/9e/7f/9d/eiffeltoren.jpg?w=1200&h=-1&s=1",
                "categories": [
                    {
                        "id": "47",
                        "name": "Sights & Landmarks"
                    }
                ],
                "tags": [
                    {
                        "id": "11160",
                        "name": "Points of Interest & Landmarks"
                    },
                    {
                        "id": "11068",
                        "name": "Observation Decks & Towers"
                    }
                ],
                "neighborhood": "Tour Eiffel / Invalides"
            },
            {
                "type": "attraction",
                "geo_id": "187147",
                "rank": 2,
                "id": "188150",
                "name": "Musée d'Orsay",
                "url": "https://www.tripadvisor.com/Attraction_Review-g187147-d188150-Reviews-Musee_d_Orsay-Paris_Ile_de_France.html",
                "rating": 4.7,
                "review_count": 68011,
                "category": "Art Museums",
                "price": null,
                "description": "Musée d'Orsay in Paris is a must-visit for art lovers and travelers alike. It's famous for its impressive collection of Impressionist and post-Impressionist art, making it one of the largest in the world. Housed in a stunning former railway station on the Seine, the museum is just as beautiful on th…",
                "coordinates": {
                    "latitude": 48.860035,
                    "longitude": 2.32685
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/13/26/b3/6e/20180601-122841-largejpg.jpg?w=1200&h=-1&s=1",
                "categories": [
                    {
                        "id": "49",
                        "name": "Museums"
                    }
                ],
                "tags": [
                    {
                        "id": "11061",
                        "name": "Art Museums"
                    }
                ],
                "neighborhood": "Tour Eiffel / Invalides"
            }
        ]
    },
    "cached": false,
    "source": "tripadvisor:combo",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
探索一个地方 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40712/explore+a+place?q=Paris, France&kind=attractions&reviews=1&page=1&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
针对某个地点(geo_id)的实时日期驱动型酒店价格优惠
Endpoint ID: 40713
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40713/hotel+price+offers
输入参数

酒店价格优惠 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search
checkInDate 必需 Check-in date (YYYY-MM-DD)
checkOutDate 必需 Check-out date (YYYY-MM-DD)
adults 可选 Number of adults
rooms 可选 Number of rooms
childrenAges 可选 Comma-separated children ages, e.g. 4,9
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
checkInDate
checkOutDate
adults
rooms
childrenAges
refresh
API 示例响应
JSON
{
    "data": {
        "geo_id": "187147",
        "check_in_date": "2026-07-20",
        "check_out_date": "2026-07-22",
        "hotels": [
            {
                "id": "228694",
                "name": "Hôtel Malte - Astotel",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228694-Reviews-Hotel_Malte_Astotel-Paris_Ile_de_France.html",
                "rating": 4.9,
                "review_count": 4009,
                "lowest_offer": "$242",
                "auction_winner_offer": "$242",
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/44/57/47/breakfast-room.jpg?w=1200&h=-1&s=1",
                "tag": "Vivienne",
                "geo_id": "187147"
            },
            {
                "id": "228837",
                "name": "Hôtel Grand Powers",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228837-Reviews-Hotel_Grand_Powers-Paris_Ile_de_France.html",
                "rating": 5,
                "review_count": 1255,
                "lowest_offer": "$562",
                "auction_winner_offer": "$562",
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/59/eb/8c/executive-room-with-balcony.jpg?w=1200&h=-1&s=1",
                "tag": "8th Arr. - Élysée",
                "geo_id": "187147"
            }
        ]
    },
    "cached": false,
    "source": "tripadvisor:graphql",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
酒店价格优惠 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40713/hotel+price+offers?geo=187147&checkInDate=2026-07-20&checkOutDate=2026-07-22&adults=2&rooms=1&refresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
某个地点(geo_id)的实时限时酒店优惠,分页获取网站列出的所有酒店:offset 达到 data.total(网站显示的酒店总数),limit 最高为 100。货币和排序可选
Endpoint ID: 40714
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40714/hotel+offers+all+pages
输入参数

酒店提供所有页面 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search (e.g. 187147 Paris, 60763 New York City)
checkInDate 可选 Check-in date (YYYY-MM-DD, today or later). Default: 30 days from today
checkOutDate 可选 Check-out date (YYYY-MM-DD, after checkInDate). Default: checkInDate + 2 nights
adults 可选 Number of adults (1-16)
rooms 可选 Number of rooms (1-8)
childrenAges 可选 Comma-separated children ages 0-17, e.g. 4,9
currency 可选 ISO 4217 currency the offers are priced in (e.g. USD, EUR, GBP, TRY)
sort 可选 Order of the list: POPULARITY (traveler ranked), BEST_VALUE, PRICE_LOW_TO_HIGH or DISTANCE (to the city center)
limit 可选 Hotels per page (1-100)
offset 可选 Hotels to skip; walk it up to pagination.total to reach every hotel of the location
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
checkInDate
checkOutDate
adults
rooms
childrenAges
currency
sort
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "geo_id": "187147",
        "check_in_date": "2026-12-22",
        "check_out_date": "2026-12-24",
        "adults": 2,
        "rooms": 1,
        "currency": "USD",
        "sort": "POPULARITY",
        "offers_complete": false,
        "total": 3076,
        "hotels": [
            {
                "rank": 1,
                "id": "228694",
                "name": "Hôtel Malte - Astotel",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228694-Reviews-Hotel_Malte_Astotel-Paris_Ile_de_France.html",
                "rating": 4.9,
                "review_count": 4009,
                "lowest_offer": "$304",
                "auction_winner_offer": "$349",
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/44/57/47/breakfast-room.jpg?w=1200&h=-1&s=1",
                "tag": "Vivienne",
                "geo_id": "187147"
            },
            {
                "rank": 2,
                "id": "228837",
                "name": "Hôtel Grand Powers",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228837-Reviews-Hotel_Grand_Powers-Paris_Ile_de_France.html",
                "rating": 5,
                "review_count": 1255,
                "lowest_offer": "$550",
                "auction_winner_offer": "$550",
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/59/eb/8c/executive-room-with-balcony.jpg?w=1200&h=-1&s=1",
                "tag": "8th Arr. - Élysée",
                "geo_id": "187147"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:graphql",
    "pagination": {
        "total": 3076,
        "limit": 30,
        "offset": 0,
        "count": 30,
        "has_more": true
    }
}
酒店提供所有页面 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40714/hotel+offers+all+pages?geo=187147&adults=2&rooms=1¤cy=EUR&sort=POPULARITY&limit=30&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
某个地点(geo_id)的酒店/住宿,每页30个
Endpoint ID: 40715
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40715/hotels+by+location
输入参数

按位置查找酒店 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search
page 可选 1-based source page (30 results each)
limit 可选 Max items returned from the page
offset 可选 Item offset within the page
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
page
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "location": {
            "geo_id": "187147",
            "name": "Paris",
            "country": "France",
            "region": null,
            "city": "Paris",
            "coordinates": null,
            "breadcrumbs": []
        },
        "total": 3076,
        "hotels": [
            {
                "rank": 1,
                "id": "228694",
                "name": "Hôtel Malte - Astotel",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228694-Reviews-Hotel_Malte_Astotel-Paris_Ile_de_France.html",
                "rating": 4.9,
                "review_count": 4009,
                "price_range": "$202+",
                "price_min": 202,
                "price_max": null,
                "ranking_position": 1,
                "ranking_string": "#1 of 1,897 hotels in Paris",
                "accommodation_type": "Hotel",
                "phone": "+33 1 44 58 94 94",
                "address": {
                    "street": "63 Rue De Richelieu",
                    "locality": "Paris",
                    "region": null,
                    "country": "France",
                    "postal_code": "75002"
                },
                "coordinates": {
                    "latitude": 48.867207,
                    "longitude": 2.337543
                },
                "neighborhood": "Vivienne",
                "amenities": [
                    "Air conditioning",
                    "Family Friendly"
                ],
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/44/57/47/breakfast-room.jpg?w=1200&h=-1&s=1",
                "geo_id": "187147"
            },
            {
                "rank": 2,
                "id": "228837",
                "name": "Hôtel Grand Powers",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228837-Reviews-Hotel_Grand_Powers-Paris_Ile_de_France.html",
                "rating": 5,
                "review_count": 1255,
                "price_range": "$537+",
                "price_min": 537,
                "price_max": null,
                "ranking_position": 2,
                "ranking_string": "#2 of 1,897 hotels in Paris",
                "accommodation_type": "Hotel",
                "phone": "+33 1 47 23 91 05",
                "address": {
                    "street": "52, Rue Francois 1er",
                    "locality": "Paris",
                    "region": null,
                    "country": "France",
                    "postal_code": "75008"
                },
                "coordinates": {
                    "latitude": 48.869175,
                    "longitude": 2.303167
                },
                "neighborhood": "8th Arr. - Élysée",
                "amenities": [
                    "Spa",
                    "Restaurant"
                ],
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/59/eb/8c/executive-room-with-balcony.jpg?w=1200&h=-1&s=1",
                "geo_id": "187147"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:hotels-graphql",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
按位置查找酒店 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40715/hotels+by+location?geo=187147&page=1&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
一次调用中获取某个位置(geo_id)下的所有酒店,最多 ?limit(100/250/1000) MEDIATEK
Endpoint ID: 40716
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40716/all+hotels+by+location
输入参数

按位置查看所有酒店 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search
limit 可选 How many hotels to return, e.g. 100 / 250 / 1000 (max 1000). The full set (up to 1000) is fetched and cached per geo; ?limit slices it.
offset 可选 Offset within the fetched set
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "location": {
            "geo_id": "187147",
            "name": "Paris",
            "country": "France",
            "region": null,
            "city": "Paris",
            "coordinates": null,
            "breadcrumbs": []
        },
        "total": 3076,
        "hotels": [
            {
                "rank": 1,
                "id": "228694",
                "name": "Hôtel Malte - Astotel",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228694-Reviews-Hotel_Malte_Astotel-Paris_Ile_de_France.html",
                "rating": 4.9,
                "review_count": 4009,
                "price_range": "$202+",
                "price_min": 202,
                "price_max": null,
                "ranking_position": 1,
                "ranking_string": "#1 of 1,897 hotels in Paris",
                "accommodation_type": "Hotel",
                "phone": "+33 1 44 58 94 94",
                "address": {
                    "street": "63 Rue De Richelieu",
                    "locality": "Paris",
                    "region": null,
                    "country": "France",
                    "postal_code": "75002"
                },
                "coordinates": {
                    "latitude": 48.867207,
                    "longitude": 2.337543
                },
                "neighborhood": "Vivienne",
                "amenities": [
                    "Air conditioning",
                    "Family Friendly"
                ],
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/44/57/47/breakfast-room.jpg?w=1200&h=-1&s=1",
                "geo_id": "187147"
            },
            {
                "rank": 2,
                "id": "228837",
                "name": "Hôtel Grand Powers",
                "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d228837-Reviews-Hotel_Grand_Powers-Paris_Ile_de_France.html",
                "rating": 5,
                "review_count": 1255,
                "price_range": "$537+",
                "price_min": 537,
                "price_max": null,
                "ranking_position": 2,
                "ranking_string": "#2 of 1,897 hotels in Paris",
                "accommodation_type": "Hotel",
                "phone": "+33 1 47 23 91 05",
                "address": {
                    "street": "52, Rue Francois 1er",
                    "locality": "Paris",
                    "region": null,
                    "country": "France",
                    "postal_code": "75008"
                },
                "coordinates": {
                    "latitude": 48.869175,
                    "longitude": 2.303167
                },
                "neighborhood": "8th Arr. - Élysée",
                "amenities": [
                    "Spa",
                    "Restaurant"
                ],
                "award": "BOTB 2026",
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/59/eb/8c/executive-room-with-balcony.jpg?w=1200&h=-1&s=1",
                "geo_id": "187147"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:hotels-graphql",
    "pagination": {
        "total": 1000,
        "limit": 100,
        "offset": 0,
        "count": 100,
        "has_more": true
    }
}
按位置查看所有酒店 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40716/all+hotels+by+location?geo=187147&limit=250&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
按详情 ID 获取某个地点(酒店/餐厅/景点)的照片图库及照片总数
Endpoint ID: 40717
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40717/place+photos
输入参数

放置照片 — 端点功能

对象 描述
id 必需 TripAdvisor detail id of a hotel, restaurant or attraction (the id the list endpoints return, the d<id> in a place URL)
limit 可选 Photos per page (1-30)
offset 可选 Photo offset within the gallery's first 100 photos
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

id
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "id": "294555",
        "total": 17800,
        "photos": [
            {
                "id": "205139165",
                "url": "https://media-cdn.tripadvisor.com/media/photo-o/0c/3a/2c/dd/istanbul-36h-basilica.jpg",
                "max_width": 1280,
                "max_height": 800,
                "caption": null,
                "attribution": {
                    "author": "silvy135",
                    "author_url": "https://www.tripadvisor.com/Profile/silvy135",
                    "source": "TRAVELER"
                },
                "uploaded_at": "2016-07-25T15:38:08.879Z"
            },
            {
                "id": "862506681",
                "url": "https://media-cdn.tripadvisor.com/media/photo-m/1280/33/68/ce/b9/tarihin-derinliklerine.jpg",
                "max_width": 1280,
                "max_height": 853,
                "caption": "✨Tarihin derinliklerine inmek ister misiniz? Yerebatan Sarnıcı, Bizans İmparatoru I. Justinianus tarafından 6. yüzyılda inşa edilmiştir. 336 sütunla desteklenen bu etkileyici yapı, hem mühendislik harikası hem de tarihi bir hazine olarak günümüze ulaşmıştır. Gelin, bizleri zamanın ötesine taşıyan Ye…",
                "attribution": {
                    "author": "Okan K",
                    "author_url": "https://www.tripadvisor.com/Profile/okankZ9975HF",
                    "source": "OWNER"
                },
                "uploaded_at": "2026-06-01T08:01:11.586Z"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:photos-graphql",
    "pagination": {
        "total": 100,
        "limit": 10,
        "offset": 0,
        "count": 10,
        "has_more": true
    }
}
放置照片 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40717/place+photos?id=294555&limit=10&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
根据详情 ID 获取某个地点(酒店/餐厅/景点)的完整照片图库及照片总数:偏移量可达到总数,限制数量最多为网站每次调用的上限(100)
Endpoint ID: 40718
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40718/place+photos+v2+full+gallery
输入参数

放置照片 v2 完整图库 — 端点功能

对象 描述
id 必需 TripAdvisor detail id of a hotel, restaurant or attraction (the id the list endpoints return, the d<id> in a place URL)
limit 可选 Photos per call, up to the site's own per-call maximum (100)
offset 可选 Photo offset within the whole gallery; valid up to data.total
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

id
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "id": "250927",
        "total": 673,
        "photos": [
            {
                "id": "37677329",
                "url": "https://media-cdn.tripadvisor.com/media/photo-s/02/3e/e9/11/hotel-europe-saint-severin.jpg",
                "max_width": 550,
                "max_height": 367,
                "caption": "HOTEL EUROPE SAINT SEVERIN",
                "attribution": {
                    "author": "EuropeStSeverin",
                    "author_url": "https://www.tripadvisor.com/Profile/EuropeStSeverin",
                    "source": "OWNER"
                },
                "uploaded_at": "2012-01-05T17:45:03Z"
            },
            {
                "id": "108244950",
                "url": "https://media-cdn.tripadvisor.com/media/photo-o/06/73/af/d6/hotel-europe-saint-severin.jpg",
                "max_width": 2000,
                "max_height": 1333,
                "caption": "Suite Deluxe",
                "attribution": {
                    "author": "EuropeStSeverin",
                    "author_url": "https://www.tripadvisor.com/Profile/EuropeStSeverin",
                    "source": "OWNER"
                },
                "uploaded_at": "2014-08-27T10:18:38Z"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:photos-graphql",
    "pagination": {
        "total": 673,
        "limit": 100,
        "offset": 0,
        "count": 100,
        "has_more": true
    }
}
放置照片 v2 完整图库 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40718/place+photos+v2+full+gallery?id=250927&limit=100&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
通过详细 ID 获取一处 TripAdvisor 地点(酒店/餐厅/景点)的完整详情:名称、评分、评论数量、排名、地址、坐标、电话、价格等级、描述、照片数量、图片,以及设施(酒店)、菜系(餐厅)、营业时间和类别。适用于任何地点 ID,无论其是否在对应地理区域的列表中。 .
Endpoint ID: 40719
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40719/place+detail
输入参数

放置细节 — 端点功能

对象 描述
id 必需 TripAdvisor detail id (the `id` field from a list endpoint)
geo 必需 TripAdvisor geo_id the place belongs to (the `geo_id` of a list row). Used to find the place's list row for ranking and amenities; a place outside that list is still answered.
type 必需 Place type: hotel, restaurant or attraction
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

id
geo
type
refresh
API 示例响应
JSON
{
    "data": {
        "id": "250927",
        "type": "hotel",
        "name": "Hotel Europe Saint Severin",
        "rating": 4.5,
        "review_count": 3270,
        "ranking_position": 431,
        "ranking_denominator": 1897,
        "ranking_category": "hotels in Paris",
        "price_range": "$133+",
        "description": "Friendly and comfortable property located in the heart of the Latin quarter on a pedestrian street. The hotel is within easy walking distance of many of the city's touristic sights, including Notre Dame, Saint Germain des Pres, the Luxembourg Garden, the Louvre and the Orsay Museum. Very easy to rea…",
        "photo_count": 673,
        "phone": "+33 1 46 34 05 70",
        "address": {
            "street": "38-40 Rue Saint Severin",
            "locality": "Paris",
            "region": null,
            "country": "France",
            "postal_code": "75005"
        },
        "coordinates": {
            "latitude": 48.852753,
            "longitude": 2.344314
        },
        "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2b/50/45/ff/caption.jpg?w=1200&h=-1&s=1",
        "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d250927-Reviews-Hotel_Europe_Saint_Severin-Paris_Ile_de_France.html",
        "cuisines": null,
        "amenities": [
            "Restaurant",
            "Air conditioning"
        ],
        "opening_hours": null,
        "category": "Hotel",
        "source": "list"
    },
    "cached": true,
    "source": "tripadvisor:place"
}
放置细节 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40719/place+detail?id=250927&geo=187147&type=hotel&refresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
某个地点(geo_id)的餐厅/餐饮场所
Endpoint ID: 40720
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40720/restaurants+by+location
输入参数

按地点查找餐厅 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search
page 可选 1-based source page (30 results each)
limit 可选 Max items returned from the page
offset 可选 Item offset within the page
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
page
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "location": {
            "geo_id": "187147",
            "name": "Paris",
            "country": "France",
            "region": null,
            "city": "Paris",
            "coordinates": null,
            "breadcrumbs": []
        },
        "restaurants": [
            {
                "rank": 1,
                "id": "34162331",
                "name": "Pizzeria Arrivederci (4ème)",
                "url": "https://www.tripadvisor.com/Restaurant_Review-g187147-d34162331-Reviews-Pizzeria_Arrivederci_4eme-Paris_Ile_de_France.html",
                "rating": 4.9,
                "review_count": 771,
                "price_range": "$$ - $$$",
                "cuisine": [
                    "Italian",
                    "Pizza"
                ],
                "phone": "+33 9 82 42 39 12",
                "address": {
                    "street": "2 Boulevard Morland, 75004 Paris France",
                    "locality": "Paris",
                    "region": null,
                    "country": "France",
                    "postal_code": "75004"
                },
                "coordinates": {
                    "latitude": 48.84775,
                    "longitude": 2.365469
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/32/72/fc/9f/pizza-arrivederci.jpg?w=1200&h=-1&s=1",
                "accepts_reservations": true,
                "geo_id": "187147"
            },
            {
                "rank": 2,
                "id": "12714552",
                "name": "Pizzeria Arrivederci",
                "url": "https://www.tripadvisor.com/Restaurant_Review-g187147-d12714552-Reviews-Pizzeria_Arrivederci-Paris_Ile_de_France.html",
                "rating": 4.9,
                "review_count": 6982,
                "price_range": "$$ - $$$",
                "cuisine": [
                    "Italian",
                    "Pizza"
                ],
                "phone": "+33 1 77 32 45 57",
                "address": {
                    "street": "47 rue Gay Lussac, 75005 Paris France",
                    "locality": "Paris",
                    "region": null,
                    "country": "France",
                    "postal_code": "75005"
                },
                "coordinates": {
                    "latitude": 48.84172,
                    "longitude": 2.343511
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/31/36/7e/8e/the-best-pizza-in-paris.jpg?w=1200&h=-1&s=1",
                "accepts_reservations": true,
                "geo_id": "187147"
            }
        ],
        "total": 10000
    },
    "cached": true,
    "source": "tripadvisor:restaurants-graphql",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
按地点查找餐厅 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40720/restaurants+by+location?geo=187147&page=1&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
某个地点(geo_id)的餐厅,每页 30 家,支持正常翻页,可选菜系和价格范围筛选,并在有数据时显示每周营业时间
Endpoint ID: 40721
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40721/restaurants+by+location+v2
输入参数

按位置分类的餐厅 v2 — 端点功能

对象 描述
geo 必需 TripAdvisor geo_id from /search
page 可选 1-based page, 30 restaurants each (page N returns ranks 30*(N-1)+1 to 30*N, the next 30 distinct restaurants)
cuisine 可选 Optional cuisine filter: a cuisine name or id (e.g. Seafood or 10643, Turkish or 10663, Italian or 4617); comma-separate several to match any of them. The cuisines a geo offers are listed in data.available_cuisines.
price 可选 Optional price range filter: cheap (Cheap Eats, $), mid (Mid-range, $ - $$) or fine (Fine Dining, $$); comma-separate several (e.g. cheap,mid).
limit 可选 Max items returned from the page
offset 可选 Item offset within the page
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

geo
page
cuisine
price
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "location": {
            "geo_id": "293974",
            "name": "Istanbul",
            "country": "Türkiye",
            "region": null,
            "city": "Istanbul",
            "coordinates": null,
            "breadcrumbs": []
        },
        "page": 1,
        "page_size": 30,
        "filters": {
            "cuisine": [],
            "price": []
        },
        "total": 10000,
        "has_next_page": true,
        "available_cuisines": [
            {
                "id": "10663",
                "name": "Turkish",
                "count": 7696
            },
            {
                "id": "10649",
                "name": "Mediterranean",
                "count": 1601
            }
        ],
        "available_price_ranges": [
            {
                "id": "10953",
                "name": "Cheap Eats",
                "count": 1681
            },
            {
                "id": "10955",
                "name": "Mid-range",
                "count": 3509
            }
        ],
        "restaurants": [
            {
                "rank": 1,
                "id": "27124882",
                "name": "Mar Kebab House Restaurant",
                "url": "https://www.tripadvisor.com/Restaurant_Review-g293974-d27124882-Reviews-Mar_Kebab_House_Restaurant-Istanbul.html",
                "rating": 5,
                "review_count": 1283,
                "price_range": "$$ - $$$",
                "cuisine": [
                    "Barbecue",
                    "Turkish"
                ],
                "phone": "+90 533 221 11 20",
                "address": {
                    "street": "Emin Sinan Mah. Piyer Loti Cd Hülya Apt No: 45 İç Kapı No: 1, Istanbul 34126 Türkiye",
                    "locality": "Istanbul",
                    "region": null,
                    "country": "Türkiye",
                    "postal_code": "34126"
                },
                "coordinates": {
                    "latitude": 41.00636,
                    "longitude": 28.969688
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2b/c7/aa/2a/caption.jpg?w=1200&h=-1&s=1",
                "accepts_reservations": true,
                "opening_hours": {
                    "mon": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ],
                    "tue": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ],
                    "wed": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ],
                    "thu": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ],
                    "fri": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ],
                    "sat": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ],
                    "sun": [
                        {
                            "open": "10:00",
                            "close": "02:00"
                        }
                    ]
                },
                "geo_id": "293974"
            },
            {
                "rank": 2,
                "id": "23652921",
                "name": "Buhara Fi̇sh Meat House Roof",
                "url": "https://www.tripadvisor.com/Restaurant_Review-g293974-d23652921-Reviews-Buhara_Fi_sh_Meat_House_Roof-Istanbul.html",
                "rating": 5,
                "review_count": 1796,
                "price_range": "$$ - $$$",
                "cuisine": [
                    "Seafood",
                    "Barbecue"
                ],
                "phone": "+90 212 528 71 70",
                "address": {
                    "street": "Nuruosmani̇ye Caddesi̇ No . 5, Istanbul 34440 Türkiye",
                    "locality": "Istanbul",
                    "region": null,
                    "country": "Türkiye",
                    "postal_code": "34440"
                },
                "coordinates": {
                    "latitude": 41.010277,
                    "longitude": 28.975256
                },
                "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/24/7a/01/5a/views.jpg?w=1200&h=-1&s=1",
                "accepts_reservations": null,
                "opening_hours": {
                    "mon": [
                        {
                            "open": "10:00",
                            "close": "23:45"
                        }
                    ],
                    "tue": [
                        {
                            "open": "10:00",
                            "close": "23:45"
                        }
                    ],
                    "wed": [
                        {
                            "open": "10:00",
                            "close": "23:45"
                        }
                    ],
                    "thu": [
                        {
                            "open": "10:00",
                            "close": "23:45"
                        }
                    ],
                    "fri": [
                        {
                            "open": "10:00",
                            "close": "22:30"
                        }
                    ],
                    "sat": [
                        {
                            "open": "10:00",
                            "close": "23:45"
                        }
                    ],
                    "sun": [
                        {
                            "open": "10:00",
                            "close": "22:30"
                        }
                    ]
                },
                "geo_id": "293974"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:restaurants-graphql",
    "pagination": {
        "total": 30,
        "limit": 50,
        "offset": 0,
        "count": 30,
        "has_more": false
    }
}
按位置分类的餐厅 v2 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40721/restaurants+by+location+v2?geo=293974&page=2&cuisine=Seafood&price=fine&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
按详情 ID 查询某个地点的旅行者评论
Endpoint ID: 40722
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40722/place+reviews
输入参数

放置评论 — 端点功能

对象 描述
id 必需 TripAdvisor detail id (from a list endpoint)
geo 可选 Ignored: accepted for compatibility with the other detail endpoints; reviews are looked up by id alone
type 可选 Ignored: accepted for compatibility with the other detail endpoints; reviews are looked up by id alone
page 可选 1-based page; ~18 reviews on page 1, deeper pages best-effort (10 each)
limit 可选 Max reviews returned
offset 可选 Review offset within the page
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

id
geo
type
page
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "reviews": [
            {
                "id": "1086112263",
                "rating": 4,
                "title": "Excellent location",
                "text": "My husband and I stayed at Hotel Europe Saint Séverin for 6 nights in November. We booked a premium room since it was offering more space according to the website and since my husband’s height is 6'4\", the room size and the configuration are important for us, especially for an extended stay. It was …",
                "published_date": "2026-11-20",
                "stay_date": "2026-11-30",
                "trip_type": "COUPLES",
                "username": "Olga R",
                "helpful_votes": 0,
                "owner_response": null
            },
            {
                "id": "1081771619",
                "rating": 5,
                "title": "Couple's trip",
                "text": "Excellent location, clean rooms, abundant breakfast. Perfect",
                "published_date": "2026-10-14",
                "stay_date": "2026-10-31",
                "trip_type": "COUPLES",
                "username": "Massimo F",
                "helpful_votes": 1,
                "owner_response": "Dear Massimof, Thank you very much for sharing your positive experience at Hotel Europe Saint Séverin. We are delighted that you appreciated our prime location in the heart of the Latin Quarter, the cleanliness of our rooms, and our generous breakfast buffet. It is a pleasure to know that you had a …"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:reviews-graphql",
    "pagination": {
        "total": 15,
        "limit": 50,
        "offset": 0,
        "count": 15,
        "has_more": false
    }
}
放置评论 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40722/place+reviews?id=250927&type=hotel&page=1&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
地理搜索:将地点名称解析为 TripAdvisor 地点(geo_id + 坐标).
Endpoint ID: 40723
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40723/geo+search
输入参数

地理搜索 — 端点功能

对象 描述
q 必需 Place name to resolve, e.g. a city or country
types 可选 Ignored: accepted so older calls stay valid; results are not filtered by type. Use /search-v3?types= to filter
limit 可选 Max results per page
offset 可选 Result offset
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

q
types
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "query": "paris",
        "results": [
            {
                "geo_id": "187147",
                "name": "Paris",
                "type": "CITY",
                "parent": "Ile-de-France, France",
                "coordinates": {
                    "latitude": 48.857037,
                    "longitude": 2.349401
                },
                "url": "https://www.tripadvisor.com/Tourism-g187147-Paris_Ile_de_France-Vacations.html"
            },
            {
                "geo_id": "38977",
                "name": "Park City",
                "type": "CITY",
                "parent": "Kansas, United States",
                "coordinates": {
                    "latitude": 37.79607,
                    "longitude": -97.319389
                },
                "url": "https://www.tripadvisor.com/Tourism-g38977-Park_City_Kansas-Vacations.html"
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:typeahead-graphql",
    "pagination": {
        "total": 4,
        "limit": 50,
        "offset": 0,
        "count": 4,
        "has_more": false
    }
}
地理搜索 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40723/geo+search?q=paris&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
地理搜索 v2:将地点名称解析为最多 10 个 TripAdvisor 地点(geo_id + 坐标 + 缩略图),可选择优先考虑某个纬度/经度点偏近的地点
Endpoint ID: 40724
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40724/geo+search+v2
输入参数

地理搜索 v2 — 端点功能

对象 描述
q 必需 Place or venue name to resolve, e.g. a city, landmark or hotel
lat 可选 Optional latitude to bias results toward (give together with lng)
lng 可选 Optional longitude to bias results toward (give together with lat)
types 可选 Ignored: accepted so older calls stay valid; results are not filtered by type. Use /search-v3?types= to filter
limit 可选 Max results per page (the endpoint returns at most 10 locations)
offset 可选 Result offset
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

q
lat
lng
types
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "query": "Galata Tower",
        "center": null,
        "results": [
            {
                "geo_id": "295194",
                "name": "Galata Tower",
                "type": "ATTRACTION",
                "parent": "Istanbul, Türkiye",
                "coordinates": {
                    "latitude": 41.025581,
                    "longitude": 28.974119
                },
                "url": "https://www.tripadvisor.com/Attraction_Review-g293974-d295194-Reviews-Galata_Tower-Istanbul.html",
                "thumbnail": {
                    "url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/25/a7/16/galata-kulesi.jpg?w=400&h=-1&s=1",
                    "url_template": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1c/25/a7/16/galata-kulesi.jpg?w={width}&h={height}&s=1",
                    "max_width": 782,
                    "max_height": 1310
                }
            },
            {
                "geo_id": "26247130",
                "name": "Galata Tower - Fener-Balat Neighborhoods & Golden Horn by Ferry",
                "type": "ACTIVITY",
                "parent": "Istanbul, Türkiye",
                "coordinates": null,
                "url": "https://www.tripadvisor.com/AttractionProductReview-g293974-d26247130-Galata_Tower_Fener_Balat_Neighborhoods_Golden_Horn_by_Ferry-Istanbul.html",
                "thumbnail": {
                    "url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2e/d0/2d/c2/caption.jpg?w=400&h=-1&s=1",
                    "url_template": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2e/d0/2d/c2/caption.jpg?w={width}&h={height}&s=1",
                    "max_width": 720,
                    "max_height": 480
                }
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:typeahead-graphql",
    "pagination": {
        "total": 10,
        "limit": 50,
        "offset": 0,
        "count": 10,
        "has_more": false
    }
}
地理搜索 v2 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40724/geo+search+v2?q=Galata Tower&lat=41.0256&lng=28.9741&limit=50&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
地理搜索 v3:将地名解析为该网站搜索返回的每个 TripAdvisor 地点(geo_id + 坐标 + 缩略图),可选择根据纬度/经度点调整搜索偏向,并按带类型的种类筛选;使用 limit/offset 分页
Endpoint ID: 40725
GET https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40725/geo+search+v3
输入参数

地理搜索 v3 — 端点功能

对象 描述
q 必需 Place or venue name to resolve, e.g. a city, landmark or hotel
lat 可选 Optional latitude to bias results toward (give together with lng)
lng 可选 Optional longitude to bias results toward (give together with lat)
types 可选 Optional filter by kind of place, a comma list of: geo, accommodation, attraction, attraction_product, eatery, airline, ship, cruise_line (e.g. geo for cities and countries only, eatery,attraction for both). Omit it to get every kind. The filter keeps the ranking of the unfiltered list
limit 可选 Max results per page. No cap of its own: any value is accepted, and the list is bounded only by how many locations the site returns for the query (up to about 200). Omit it to get the whole list
offset 可选 Number of results to skip, to page through the list with limit (the site itself has no paging, so the whole list is fetched once and paged here)
refresh 可选 Bypass and repopulate the cache

剩余免费测试请求:3 / 3。


输入参数

q
lat
lng
types
limit
offset
refresh
API 示例响应
JSON
{
    "data": {
        "query": "Istanbul",
        "center": null,
        "results": [
            {
                "geo_id": "293974",
                "name": "Istanbul",
                "type": "CITY",
                "parent": "Türkiye, Europe",
                "coordinates": {
                    "latitude": 41.009861,
                    "longitude": 28.957069
                },
                "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
                }
            },
            {
                "geo_id": "4104518",
                "name": "Istanbul Grill Restaurant",
                "type": "EATERY",
                "parent": "Amsterdam, The Netherlands",
                "coordinates": {
                    "latitude": 52.37761,
                    "longitude": 4.896271
                },
                "url": "https://www.tripadvisor.com/Restaurant_Review-g188590-d4104518-Reviews-Istanbul_Grill_Restaurant-Amsterdam_North_Holland_Province.html",
                "thumbnail": {
                    "url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0b/e9/e5/8d/ta-img-20160710-105925.jpg?w=400&h=-1&s=1",
                    "url_template": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/0b/e9/e5/8d/ta-img-20160710-105925.jpg?w={width}&h={height}&s=1",
                    "max_width": 1328,
                    "max_height": 747
                }
            }
        ]
    },
    "cached": true,
    "source": "tripadvisor:typeahead-graphql",
    "pagination": {
        "total": 82,
        "limit": 200,
        "offset": 0,
        "count": 82,
        "has_more": false
    }
}
地理搜索 v3 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15223/tripadvisor+unofficial+data+api/40725/geo+search+v3?q=Istanbul&lat=41.0256&lng=28.9741&types=geo&limit=100&offset=Optionalrefresh=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Tripadvisor 非官方数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

来自 Tripadvisor 的行程规划数据:通过地理位置搜索,以及按位置(geo_id)查询景点、餐厅和酒店,并提供评分、评论、价格和坐标。使用 /search 解析地点名称,然后通过 /attractions、/restaurants、/hotels 获取列表

Tripadvisor 非官方数据 API FAQs

不。这是一个非官方 API,与 Tripadvisor 无关联,也未获得 Tripadvisor 的认可或赞助。它返回 Tripadvisor 上公开可见的数据。

每个端点都返回 JSON。无法处理的请求会返回包含错误代码和消息的 JSON 正文

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API