Places
在 Tripadvisor 上查找地点。
GET | POST /v1/tripadvisor/places参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。
请求
curl "https://gateway.apinoa.com/v1/tripadvisor/places?q=hotels&category=hotels&near=Paris&country=US&limit=5" \
-H "x-api-key: $APINOA_API_KEY"参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
category | enum | What to list: everything (default), restaurants, hotels, attractions (things to do, tours included), tours, destinations or airlines. all restaurants hotels attractions tours destinations airlines | |
country | enum | The market, as an ISO 3166 country code. US GB CA AU IN IE DE FR IT ES NL BR MX JP KR | |
cursor | string | The previous page's cursor. Pass it alone for the next page. | |
lang | string | Interface language. | |
limit | integer 1–120 | Results wanted (default 30, at most 120). More than one page is charged per page. | |
location | string | Search as if from this point: lat,lng. | |
near | string | Search around this place name, or a lat,lng point. | |
q | string | The query, search operators included. |
这些参数及所有响应类型也写在OpenAPI 文档中。
响应
在 data 中返回 PlacesPage。 真实响应的节选:数组只保留前几项,长文本已截断。
{
"success": true,
"data": {
"engine": "tripadvisor",
"query": "hotels",
"outcome": "results",
"near": "Paris",
"country": "US",
"lang": "en",
"places": [
{
"id": "143336",
"name": "Paris Las Vegas",
"url": "https://www.tripadvisor.com/Hotel_Review-g45963-d143336-Reviews-Paris_Las_Vegas-Las_Vegas_Nevada.html",
"categories": ["Hotel"],
"rating": 3.9,
"reviewCount": 40012,
"photos": [
"https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2f/ac/a0/69/paris-las-vegas.jpg?w=1280&h=1103&s=1"
],
"description": "Paris Las Vegas Hotel - A Caesars Rewards Destination. Experience everything you love about Paris, in the heart of the Las Vegas Strip. The city of lights shine…",
"lang": "en",
"ext": {
"type": "hotel",
"kind": "Hotel",
"area": "Las Vegas, Nevada",
"snippet": {
"text": "But, I tought I scored a good deal on the site of Hotel Paris itself.",
"highlights": [{"offset": 50, "length": 5}]
},
"mentions": 11474
}
},
{
"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",
"categories": ["Hotel"],
"rating": 4.9,
"reviewCount": 3979,
"photos": [
"https://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/44/57/47/breakfast-room.jpg?w=3100&h=2069&s=1"
],
"description": "Located in the 2nd district next to the Stock Exchange, the Louvre and Place des Victoires, Hotel Malta provides a superb location for a memorable stay. Whether…",
"lang": "en",
"ext": {
"type": "hotel",
"kind": "Hotel",
"area": "Paris, Ile-de-France, France",
"snippet": {"text": "my favorite hotels in Paris.", "highlights": [{"offset": 12, "length": 6}]},
"mentions": 1124
}
}
],
"page": {"index": 1, "size": 30},
"cursor": "mqcJOnHYbpBCunJIJ48vsmO-A5Os86AMsBlRwIKCGcjSCmu8wlAMK_qtGDrHUEyUilfZgT3-p7E8hFKOOKxWfDJYjjCqVQ5N8fTuGjLS6qvzKcKvxvsSJIjXemS4ncyeRCqsaRVN9KB5h_6R6P6vIFPoYJjWrTyO…",
"fetchedAt": "2026-10-30T01:02:43.549Z",
"ext": {
"category": "hotels",
"scope": {"type": "world"},
"sections": [
{
"type": "listPreview",
"contentType": "HOTELS",
"title": "Hotels in Paris",
"url": "https://www.tripadvisor.com/Hotels-g187147-Paris_Ile_de_France-Hotels.html",
"geo": {
"id": "187147",
"name": "Paris",
"url": "https://www.tripadvisor.com/Tourism-g187147-Paris_Ile_de_France-Vacations.html",
"area": "Ile-de-France, France",
"description": "Lingering over pain au chocolat in a sidewalk café, relaxing after a day of strolling along the Seine and marveling at icons like the Eiffel Tower and the Arc d…",
"photo": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/17/15/6d/d6/paris.jpg?w=3575&h=2600&s=1"
}
}
]
}
}
}错误
| 状态 | 代码 | 含义 |
|---|---|---|
| 400 | INVALID_CURSOR | 该 cursor 不是本操作返回的。请不带它重新开始。 |
| 400 | INVALID_PARAMS | 参数缺失、未知、超出范围,或该引擎不接受。消息中会指出是哪一个。 |
| 401 | UNAUTHORIZED | 缺少 x-api-key 请求头,或密钥已吊销或未知。 |
| 402 | INSUFFICIENT_BALANCE | 余额不足以支付本次调用。请在控制台充值。 |
| 429 | MARKETPLACE_SATURATED | 并发调用过多。请等待 Retry-After 秒后重试。 |
| 502 | UPSTREAM_ERROR | 引擎返回了无法使用的内容。请退避后重试。 |
| 503 | SERVICE_UNAVAILABLE | 临时故障。请退避后重试。 |
全部错误代码见 Errors。失败的调用不计费。
价格
价格 每次调用 $0.0012,每多一次调用加 $0.0012——最多再加 3 次,合计最多 $0.0048。标价;单日调用超过 1,000 次后单价下调。
说明
- 用
category选择列出的内容:餐厅、酒店、景点、旅游项目、目的地或航空公司。 limit超过一页时会继续读取后续页面,每页 1 个单位。