使用场景

从住客评论中找出他们喜欢和不满意酒店的地方

以 JSON 获取 Booking.com 住客评论,含评分、优点、缺点、旅客类型和日期,找出住宿需要改进和值得宣传的地方。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Booking.comlovelyjsonitems[0]"score": 7.5"liked": "Great location, frien…"disliked": "Thin walls, slow brea…"traveler_type": "Couple""date": "2026-09-14"

酒店的平均分掩盖了背后的原因。原因都在文字里:人们提到的噪音、夸赞的早餐、提醒别人避开的房间。Booking.com 把住客评论分成喜欢和不喜欢两部分,但评论有成千上万条,又没法统计。Lovely Router 为你选定的酒店取回这些评论:发送酒店链接,每条评论返回一个 JSON 对象,按评论条数从预付费余额中计费。

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

从住客评论中找出他们喜欢和不满意酒店的地方. 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>
01

工作原理

010203
  1. 取你自己酒店的 Booking.com 页面,以及三四家竞争对手酒店的页面。

  2. 设置上限后运行工具

    把链接发送到 POST /v1/tools/booking-reviews/run。在输入中设置 maxReviewsPerHotel,并在请求体中设置 max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回评论。

  3. 统计主题

    让模型给每段喜欢和不喜欢的文字打上主题标签,例如噪音、清洁、早餐和员工,再按酒店、月份和旅客类型统计数量。

02

一次请求获取酒店评论

Booking.com 酒店评论在 startUrls 中接受酒店页面。maxReviewsPerHotel 限制每家酒店的评论数,sortReviewsBy 决定排序,reviewScores 按评分筛选:

curl https://lovelyrouter.com/v1/tools/booking-reviews/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "startUrls": [
        {"url": "https://www.booking.com/hotel/cz/jeromehouse.en-gb.html"}
      ],
      "maxReviewsPerHotel": 3
    },
    "max_results": 3
  }'

运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。sortReviewsBy 接受 f_relevance、f_recent_desc、f_recent_asc、f_score_desc 和 f_score_asc。单次运行最多可返回 500 条评论。

03

每条评论包含什么

字段组你得到什么
Score评论评分
Feedback住客喜欢什么、不喜欢什么
Guest旅客类型
Time评论日期
04

实用做法

解决最大的抱怨。

把 sortReviewsBy 设为 f_score_asc,拉取你自己酒店评分最低的评论,给不满意的内容打上标签,再把最常见的三个主题交给运营团队。

写出更好的房源文案。

拉取评分最高的评论,收集住客喜欢的内容,把他们的原话用在描述和图片说明里。

按旅客类型对比。

按旅客类型拆分评论。家庭可能在意空间,情侣可能在意噪音,你的应对方式也应该不同。

检验一次翻新的效果。

在施工前后分别用 f_recent_desc 拉取最新评论,对比翻新区域被提及的频率和语气。

对标竞争对手。

同时运行你的酒店和四家竞品,统计每个主题在各家酒店出现的次数,找出你落后的主题。

想直接用自然语言?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:“获取这家 Booking.com 酒店评分最低的 100 条评论,把不满意的内容归成几个主题并显示数量。把 max_results 设为 100。”

06

费用

按评论条数计费:启动运行时会预留其最高费用,即每次调用费加上每条评论费乘以 max_results,运行结束后按实际返回的结果结算,其余预留金额退回你的余额。失败或超时的运行只为已交付的评论付费,启动时就被拒绝的运行不收费。

没有订阅,也没有月度最低消费:最低 $5 起充值,一份余额同时支付工具和模型。上方的卡片显示今天的价格;定价列出了每个工具。

07

常见问题

?
可以只获取差评吗?+

可以。用 reviewScores 按 Booking.com 上显示的评分筛选,或者把 sortReviewsBy 设为 f_score_asc 并限制评论条数。

可以先获取最新的评论吗?+

可以。把 sortReviewsBy 设为 f_recent_desc。

一次运行可以读取多家酒店的评论吗?+

可以。startUrls 是一个列表。maxReviewsPerHotel 分别限制每家酒店,所以设置 max_results 时请按总数考虑。

单次运行最多能返回多少条评论?+

最多 500 条。建议先用较小的上限,看清评论的样子,再逐步提高。

需要订阅吗?+

不需要。你向预付费余额充值,每次运行从中扣减。失败的运行只为已交付的结果付费,也不会自动续费。

正在改善住客体验?参见评论监控、旅行与房地产数据以及工具目录。

一个预付费密钥,搞定模型、数据和智能体

无需订阅。充值后按需使用,每笔费用都能在日志中查看。