凭感觉安排库存、广告预算或内容日历,往往等秋季的需求高峰已经开始,你才发现。Google Trends 能告诉你一件商品的热度何时上升、在哪些地区上升,但只是一张需要手动查看的图表。Lovely Router 替你执行这次查询:发送一个关键词、一个时间范围和一个国家,每次调用返回一个 JSON 对象,按调用次数从预付费余额中计费。用一个 API 密钥,就能从表格脚本、规划任务或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
用 Google Trends 季节性数据做需求与库存规划. 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>工作原理
选好关键词
列出你围绕其做规划的商品、品类或品牌词,每次调用一个关键词。
指定时间范围和国家后运行工具
向
POST /v1/tools/google-trends/run发送关键词,把mode设为keyword,再给出predefinedTimeframe(例如today 5-y)和geo国家代码。加上fetchRegionalData即可获得地区分布。跨年份对比
保存每次结果。把不同年份的同一周对齐,就能看出需求何时起量、何时见顶、何时回落,再倒推出你的下单和上新日期。
一次请求获取季节性需求
Google Trends 热度每次调用接受一个关键词。predefinedTimeframe 支持从 now 1-h 到 today 5-y 以及 all 的取值。geo 是国家代码,留空表示全球。地区分布需要指定一个国家:
curl https://lovelyrouter.com/v1/tools/google-trends/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"mode": "keyword",
"keyword": "patio heater",
"predefinedTimeframe": "today 5-y",
"geo": "US",
"fetchRegionalData": true
},
"max_results": 1
}'一次调用会返回该关键词的时间趋势;如果设置了 fetchRegionalData,还会返回按地区划分的热度。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每次调用包含什么
| 字段组 | 你得到的内容 |
|---|---|
| 关键词 | 你查询的词,对应你设置的时间范围和国家 |
| 时间趋势 | 该关键词的热度在所选时间范围内如何变化 |
| 地区热度 | 开启 fetchRegionalData 并指定国家后,热度在各地区的分布 |
Trends 给出的是相对热度,而不是搜索量。用它来对比不同的周、年份和地区,不要用它来统计搜索次数。
实用配方
针对你的主要市场,对产品关键词运行五年视图。标出每年热度开始攀升的那一周,并把采购订单和广告投放提前几周。
指定国家并开启 fetchRegionalData 运行关键词,从热度最高的地区开始投放付费广告。
用相同的时间范围和国家运行 10 个关键词,按热度的稳定程度排序,而不是看某一次峰值。
对一个正在走红的词,把时间范围设为 all。如果曲线只是单个尖峰,就放弃;如果是缓慢攀升,就继续跟进。
用定时任务每月运行一小批关键词,把结果序列写入采购同事一直在用的表格。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"查询 Google Trends 上美国过去 5 年里 'standing desk' 和 'treadmill desk' 的热度,告诉我每年热度从什么时候开始上升。每个关键词调用一次。"
搭配搜索与市场数据
Trends 告诉你什么时候。下面这些工具告诉你什么在热卖、谁在讨论:
某关键词随时间及按地区的 Google 趋势热度。
Google 搜索结果页:自然结果、广告、“相关问题”和相关搜索。一条结果 = 一个结果页(约 10 条自然链接)。
按搜索词或版块获取 Reddit 帖子:标题、正文、得分、评论数、作者、日期。
Google 新闻中某个搜索的新闻文章(支持运算符:"精确短语"、OR、-排除词、site:、intitle:),可限定时间范围:标题、来源、日期及发布网站上的文章链接。
google-search显示趋势词今天的搜索排名。reddit-search显示话题走红时人们在说什么。google-news显示热度突然飙升背后的新闻。
想了解更全面的市场情况,请看电商情报。
费用说明
按调用次数付费:启动运行时会预留它的最高费用,即每次调用费,运行结束后按实际用量结算。失败或超时的运行只为已交付的结果付费,在开始时就被拒绝的运行不收费。
每月检查一次 40 个关键词,就按每月 40 次调用计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
能从 Google Trends 获得搜索量吗?+
不能。结果显示的是随时间和地区变化的相对热度,这与 Trends 本身展示的一致,适合用来比较不同时段和不同地点。
一次运行可以查询多个关键词吗?+
每次调用一个关键词。请把每个关键词作为单独的调用来运行,并使用相同的时间范围和国家,这样结果才可以相互比较。
可以选择哪些时间范围?+
now 1-h、now 4-h、now 1-d、now 7-d、today 1-m、today 3-m、today 12-m、today 5-y 和 all。
怎么获取热门搜索?+
把 mode 设为 trending,并在 geo 中指定国家,就能获得该国的热门搜索,而不是分析单个关键词。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。