你正在开办旅游业务、撰写城市指南、向酒店做推介,或为客户规划行程,需要知道一个目的地有些什么。这些信息 Tripadvisor 上都有,只是要一页一页地看。Lovely Router 替你列出来。发送一个地点,每个地方返回一个 JSON 对象,按地点个数从预付费余额中计费。可以从脚本、电子表格任务或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
用 Tripadvisor 梳理一个目的地的酒店与餐厅. Use the Lovely Router data tools: each returns JSON and is billed per result.
- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <the inputs (links, keywords or accounts) and how many results you need>工作原理
给出地点名称
使用城市或地区,或某一类地点的关键词。你也可以直接粘贴 Tripadvisor 链接。
设置上限后运行工具
把查询发送到
POST /v1/tools/tripadvisor-places/run,在输入中带上maxItemsPerQuery,在请求上带上max_results。用includeHotels和includeRestaurants打开或关闭酒店和餐厅。建立清单
把这些地点载入表格或数据库。你可以筛选、排序和分组,或挑出重要的地点再去读它们的评论。
一次请求列出一个地点的场所
搜索 Tripadvisor 在 query 中接受地点或关键词,也可以在 startUrls 中接受 Tripadvisor 链接。maxItemsPerQuery 限制每个查询返回的地点数:
curl https://lovelyrouter.com/v1/tools/tripadvisor-places/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"query": "Chicago",
"maxItemsPerQuery": 5,
"includeHotels": true
},
"max_results": 5
}'输入地点名称,会返回该地的酒店、餐厅和景点。输入关键词,则只返回搜索结果中直接列出的地点。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每个地点包含什么
| 字段组 | 你得到的内容 |
|---|---|
| 酒店 | 当 includeHotels 为 true 时,该地点的酒店 |
| 餐厅 | 当 includeRestaurants 为 true 时,该地点的餐厅 |
| 景点 | 该地点的景点 |
先用较小的上限运行一次,看清每个地点的确切字段,再基于它们搭建流程。
实用配方
以 100 的上限运行一座城市,统计酒店、餐厅和景点的数量,看看每个细分领域有多拥挤。
把 includeRestaurants 设为 false,运行一座城市,把酒店名单交给你的销售团队。
拉取某个地点的场所,让模型按街区或类型分组。
运行一个目的地,挑出几个地点,再用 tripadvisor-reviews 拉取它们的评论。
用相同上限运行两座城市,比较两份清单里各类地点的数量。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 Tripadvisor 上搜索里斯本的餐厅,不要酒店,列出 30 个地点并按菜系分组。把 max_results 设为 30。"
搭配评论与地图数据
一份地点清单只是起点,评论和地图数据才能让它变成决策依据:
某地点在 Tripadvisor 上的酒店、餐厅和景点。
Tripadvisor 酒店、餐厅和景点的评论:评分、标题、内容、日期、出行类型。
按关键词和地点在 Google 地图上查找商家:名称、地址、电话、网站、评分、评论数、营业时间、坐标。
Booking.com 酒店的住客评论:评分、好评、差评、旅客类型、日期。
tripadvisor-reviews读取你挑出的地点的评论。google-maps-places从 Google Maps 列出同一片区域。booking-reviews补充 Booking 上的酒店住客评论。
如需更多旅游和房产数据来源,请看旅游与房产数据。
费用说明
按个地点付费:启动运行时会预留它的最高费用,即每次调用费加上每个地点费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的个地点付费,在开始时就被拒绝的运行不收费。
读取 100 个地点就按 100 个地点计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
可以搜索整座城市吗?+
可以。在 query 中输入地点名称,工具会抓取第一个匹配地点的酒店、餐厅和景点。
可以不要酒店或餐厅吗?+
可以。把 includeHotels 或 includeRestaurants 设为 false。
可以从指定页面开始吗?+
可以。startUrls 接受搜索链接、旅游目的地链接,以及酒店、餐厅或景点页面的链接。
一次运行最多能返回多少个地点?+
maxItemsPerQuery 限制每个查询的地点数,该工具单次运行最多 100 个地点。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的个地点付费,不会自动续费。