你的公司、竞争对手或某个产品上了新闻,你希望当天就知道,而不是等客户转发给你。公关团队、创始人和分析师都在手动查看 Google 新闻,却会漏掉凌晨两点发布的内容。Lovely Router 替你执行搜索。发送一个查询,每篇文章返回一个 JSON 对象,按文章篇数从预付费余额中计费。用一个 API 密钥,就能从定时任务、Slack 机器人或 AI 智能体中调用。
交给你的 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>工作原理
编写查询
使用与 Google 新闻搜索框相同的语法:词语、
"exact phrase"、OR、-word、site:example.com和intitle:word。每次请求只执行一个搜索,所以多个主题请用OR连接。定时运行
把查询连同设为
1d的openEndedDateRange、maxItems和max_results发送到POST /v1/tools/google-news/run。运行会从你的余额中预留它的最高费用,并以 JSON 返回文章。只对新内容提醒
记住你已经见过的链接,只把新的发到你的频道,或者交给模型做摘要。
一次请求获取新闻提及
搜索 Google 新闻接受一个 query。openEndedDateRange 限制时间窗口,language 设置地区和语言组合,maxItems 限制文章数:
curl https://lovelyrouter.com/v1/tools/google-news/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"query": "openai",
"language": "US:en",
"openEndedDateRange": "1d",
"maxItems": 10
},
"max_results": 10
}'运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。openEndedDateRange 接受一个数字加 h、d 或 y,例如 12h 或 7d。如果需要固定日期,请使用 dateFrom 和 dateTo(YYYY-MM-DD)。
每篇文章包含什么
| 字段组 | 你能获得的内容 |
|---|---|
| 标题 | 文章标题 |
| 发布方 | 来源名称 |
| 时间 | 发布日期 |
| 链接 | 文章在发布方网站上的链接 |
实用配方
用 1d 查询你的公司名称,每天早上把新文章连同模型写的两行摘要发到频道。
使用类似 "Northwind Outdoor" -jobs -stock 的查询,配合精确短语和排除词,只返回相关的提及。
把品牌与 site: 组合,只查看某一家媒体对你或对手的报道。
用 7d 的时间窗口,以 intitle: 查询 Competitor OR "Competitor Pro",在周一例会之前先读一遍标题。
用不同的 language 组合运行同一个查询,例如 US:en 和 DE:de,看各个市场的报道有何不同。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"找出最近 7 天提到我们公司名称的新闻,去掉与招聘有关的内容,给我一张包含标题、来源和日期的表格。把 max_results 设为 30。"
搭配其他舆情数据源
新闻是公共讨论中慢速、正式的一面。再配上快速的一面:
Google 新闻中某个搜索的新闻文章(支持运算符:"精确短语"、OR、-排除词、site:、intitle:),可限定时间范围:标题、来源、日期及发布网站上的文章链接。
匹配关键词、话题标签或指定账号的推文:内容、作者、互动数据、日期。
按搜索词或版块获取 Reddit 帖子:标题、正文、得分、评论数、作者、日期。
某关键词随时间及按地区的 Google 趋势热度。
Google 搜索结果页:自然结果、广告、“相关问题”和相关搜索。一条结果 = 一个结果页(约 10 条自然链接)。
x-search查找匹配关键词、话题标签或账号的帖子,包含正文、作者、互动数据和日期。reddit-search按查询或子版块返回 Reddit 帖子,包含得分和评论数。google-trends显示你的名称的搜索热度如何随时间和地区变化。google-search显示搜索者在结果页上看到的与你的品牌有关的内容。
关于更完整的流程,请看社交聆听。
费用说明
按文章付费:启动运行时会预留它的最高费用,即每次调用费加上每篇文章的费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的文章付费,在开始时就被拒绝的运行不收费。
每天检查一个查询的 20 篇文章,就按每天 20 篇文章计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
支持哪些搜索运算符?+
引号内的精确短语、OR、-word、site: 和 intitle:。每次请求只执行一个搜索,所以请用 OR 组合多个主题。
一次运行最多能返回多少篇文章?+
通过 maxItems 和 max_results,每次运行最多 100 篇文章。
能把结果限制在最近一天吗?+
可以。把 openEndedDateRange 设为 1d,也可以是 1h、12h、7d 或 1y。它会覆盖 dateFrom 和 dateTo。
能搜索其他语言和国家吗?+
可以。language 接受地区和语言的组合,例如 US:en、DE:de、FR:fr 或 JP:ja。
能拿到文章全文吗?+
工具返回标题、来源、日期和文章在发布方网站上的链接。要读取页面本身,请把链接交给 web-page-markdown。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。