如果你经营餐饮集团、诊所网络或连锁零售,每家门店都有自己的 Google Maps 评论,而且各说各的:这家服务慢,那家经理态度差。要在十家或五十家门店之间每周通读一遍,没有人能做到。Lovely Router 替你收集。发送地点 ID 或链接,每条评论返回一个 JSON 对象,按评论条数从预付费余额中计费。用一个 API 密钥,就能从脚本、看板任务或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
分析你在 Google Maps 上各门店的顾客评价. 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>工作原理
收集你的地点 ID
使用每家门店的地点 ID,即以
ChIJ或GhIJ开头的 27 位字符串,或者 Google Maps 的地点链接。设置上限后运行工具
把它们连同
maxReviews和max_results发送到POST /v1/tools/google-maps-reviews/run。用reviewsSort选择先返回最新的、评分最低的,还是最相关的。分组并阅读
按地点和周对评论分组,统计低星评论,再让模型总结这些抱怨有哪些共同点。
一次请求获取评论
Google Maps 评论接受 placeIds 或 startUrls。maxReviews 限制每个地点的评论数,max_results 限制整次运行:
curl https://lovelyrouter.com/v1/tools/google-maps-reviews/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"placeIds": ["ChIJN1t_tDeuEmsRUsoyG83frY4"],
"maxReviews": 3,
"reviewsSort": "newest"
},
"max_results": 3
}'运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每条评论包含什么
| 字段组 | 你能获得的内容 |
|---|---|
| 评分 | 给出的星级 |
| 内容 | 评论正文 |
| 时间 | 评论日期 |
| 回复 | 商家的回复(如果有) |
用 language 可以获取指定语言的评论。把输出与模型搭配,可以在同一个任务中翻译或分类评论。
实用配方
把每家门店的 reviewsSort 设为 newest 运行,保留最近七天内一星或两星的评论,发给对应门店的经理。
筛选没有商家回复的评论,把清单交给负责客户服务的同事。
为每家门店收集 200 条评论,请模型按等待时间、员工、清洁度或价格等主题给每条评论打标签,再对比各门店。
把 reviewsSort 设为 lowestRanking,先看最不满的顾客写了什么,再去看普通的评论。
用对手的地点 ID 搭配 lowestRanking 运行,看哪些抱怨反复出现,再判断你能否在这些方面做得更好。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 places.txt 中每个地点 ID 的最新 100 条评论,标出所有一星或两星的评论,并按主题对抱怨分组。把 max_results 设为 1000。"
搭配其他评论和本地数据源
Google Maps 只是顾客发声的地方之一。其他渠道能补全全貌:
Google 地图地点的评论(按地点 ID 或 URL):内容、星级、日期、商家回复。
按关键词和地点在 Google 地图上查找商家:名称、地址、电话、网站、评分、评论数、营业时间、坐标。
按域名获取公司在 Trustpilot 上的评论:星级、内容、日期、回复。
Tripadvisor 酒店、餐厅和景点的评论:评分、标题、内容、日期、出行类型。
google-maps-places为你要监测的门店查找地点 ID 和基本数据。trustpilot-reviews按域名读取某家公司的评论,包含星级、正文、日期和回复。tripadvisor-reviews覆盖餐厅、酒店和景点的评论。
关于更完整的流程,请看评论监测。
费用说明
按评论付费:启动运行时会预留它的最高费用,即每次调用费加上每条评论的费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的评论付费,在开始时就被拒绝的运行不收费。
每周拉取 300 条评论,就按每周 300 条评论计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
在哪里能找到地点 ID?+
地点 ID 是以 ChIJ 或 GhIJ 开头的 27 位字符串。你也可以改在 startUrls 中传入 Google Maps 的地点链接。google-maps-places 可以帮你找到地点。
最多能获取多少条评论?+
maxReviews 限制每个地点的评论数,通过 max_results,一次运行总共最多返回 500 条评论。需要更多时,请启动多次运行。
能只获取最新的评论吗?+
可以。把 reviewsSort 设为 newest。其他选项有 mostRelevant、highestRanking 和 lowestRanking。
包含商家的回复吗?+
包含。有商家回复时,回复就是每条评论的一部分。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。