Tripadvisor API
收藏官方服务:
资源简介:
Tripadvisor API: search, place and reviews as structured JSON. 3 endpoints, no scraper to maintain.
创建时间:
2026-10-31
原始信息汇总
Tripadvisor API
基本信息
- 页面地址:https://rapidapi.com/danipratik92/api/tripadvisor-api4
- API 名称:Tripadvisor API
- API 版本:1.0.0 (current)
- 类别:Travel
- API 创建者:Datamagnet
- 订阅者:1
- 资源:Product Website、Terms of Use
- 构建:Perceptlayer
- 声明:Not affiliated with or endorsed by Tripadvisor
API 概述
Tripadvisor API 通过一个 REST API 以结构化 JSON 获取 Tripadvisor 数据,无需维护 scraper、proxies 或 HTML parsing。包含 3 个端点:search、place、reviews。
用途
- 监控评论网站上的声誉
- 对评论进行情感分析
- 比较竞争对手评分
更多来源
同一 API 覆盖 248 个网站,从地图和房地产到工作、旅行和评论:https://perceptlayer.com
端点
所有端点均为 GET,使用查询参数。
| 端点 | 方法 | 路径 | 必需参数 | 示例参数 |
|---|---|---|---|---|
| Search | GET | https://tripadvisor-api4.p.rapidapi.com/v1/tripadvisor/search | q |
q=pizza+rome&limit=3 |
| Place | GET | https://tripadvisor-api4.p.rapidapi.com/v1/tripadvisor/place | location_id |
location_id=18941405&locale=en-US |
| Reviews | GET | https://tripadvisor-api4.p.rapidapi.com/v1/tripadvisor/reviews | location_id |
location_id=18941405&limit=2 |
快速开始
- 订阅计划。Basic 每月免费 100 次请求。
- 从端点 playground 复制
X-RapidAPI-Key。 - 调用端点,例如 Search:
bash curl --request GET --url https://tripadvisor-api4.p.rapidapi.com/v1/tripadvisor/search?q=pizza+rome&limit=3 --header X-RapidAPI-Key: YOUR_RAPIDAPI_KEY --header X-RapidAPI-Host: tripadvisor-api4.p.rapidapi.com
响应
每个响应均为 JSON,并携带 X-Request-Id 头。联系支持时需引用该 ID。
错误
错误格式:
json {"error": {"code": "invalid_parameters", "message": "...", "request_id": "..."}}
| 状态码 | 代码 | 含义 |
|---|---|---|
| 401 | invalid_api_key |
请求未通过 RapidAPI 订阅。 |
| 404 | not_found |
这些参数未找到数据。 |
| 404 | unknown_endpoint |
无此端点。 |
| 422 | invalid_parameters |
参数缺失或无效;消息会指明。 |
| 429 | rate_limited |
请求过多;按 Retry-After 中的秒数重试。 |
| 502 | source_error |
网站返回错误。 |
| 503 | temporarily_unavailable |
网站繁忙;按 Retry-After 中的秒数重试。 |
| 504 | timeout |
网站未在 60 秒内响应。 |
订阅计划
| 计划 | 月费 | 每月请求 | 超额 | 每分钟请求 |
|---|---|---|---|---|
| Basic | Free ($0.00) | 100 | none (hard limit) | 10 |
| Pro | $10 | 2,500 | $0.004 each | 100 |
| Ultra | $79 | 25,000 | $0.003 each | 200 |
| Mega | $200 | 100,000 | $0.002 each | 300 |
支持
- 邮箱:support@perceptlayer.com
- 联系支持时需提供调用的
X-Request-Id - 完整 API 参考:https://docs.perceptlayer.com




