使用场景

监测你的品牌或竞争对手的新闻提及

以 JSON 获取任意搜索的 Google 新闻文章:标题、来源、日期和发布方网站上的链接,支持搜索运算符和时间范围。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Google Newslovelyjsonitems[0]"title": "Northwind Outdoor rec…"source": "Daily Ledger""date": "2026-10-26""link": "https://dailyledger.e…"query": "Northwind Outdoor"

你的公司、竞争对手或某个产品上了新闻,你希望当天就知道,而不是等客户转发给你。公关团队、创始人和分析师都在手动查看 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>
01

工作原理

010203
  1. 编写查询

    使用与 Google 新闻搜索框相同的语法:词语、"exact phrase"、OR、-word、site:example.com 和 intitle:word。每次请求只执行一个搜索,所以多个主题请用 OR 连接。

  2. 定时运行

    把查询连同设为 1d 的 openEndedDateRange、maxItems 和 max_results 发送到 POST /v1/tools/google-news/run。运行会从你的余额中预留它的最高费用,并以 JSON 返回文章。

  3. 只对新内容提醒

    记住你已经见过的链接,只把新的发到你的频道,或者交给模型做摘要。

02

一次请求获取新闻提及

搜索 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)。

03

每篇文章包含什么

字段组你能获得的内容
标题文章标题
发布方来源名称
时间发布日期
链接文章在发布方网站上的链接
04

实用配方

每日品牌摘要。

用 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。"

06

费用说明

按文章付费:启动运行时会预留它的最高费用,即每次调用费加上每篇文章的费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的文章付费,在开始时就被拒绝的运行不收费。

每天检查一个查询的 20 篇文章,就按每天 20 篇文章计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
支持哪些搜索运算符?+

引号内的精确短语、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。

需要订阅吗?+

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

要监听的不止新闻?请看社交聆听、工具目录和价格页面。

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

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