SEO 与增长

面向 AI Agent 的 Google Trends API 与 MCP 指南:实时热度与飙升词

通过标准化 API、CLI 或远程 MCP 稳定查询 Google Trends 趋势热度曲线与飙升关联词,告别动辄 429 报错的非官方 pytrends 爬虫脚本。

非官方 pytrends 脚本极易在云端触发 Google 429 限流;在 Duang 上按次调用标准化 google.trends.interest 与 google.trends.related,稳定性与成本兼得。

为什么非官方 Google Trends 爬虫总是频繁失效

Google 未提供公开 REST 版 Google Trends API。社区脚本如 pytrends 依赖逆向 Cookie,一旦部署在云端或由 Agent 定时轮询就会迅速遭遇 HTTP 429 拦截。

  • 会话 Cookie 在 Serverless 与 CI 环境中极易失效。
  • 地区、时间窗与类目参数在非官方端点上维护脆弱。
  • AI Agent 需要确定性的结构化 JSON 热度序列与飙升词列表才能做横向对比。

通过 MCP 或 CLI 查询热度趋势与飙升相关词

Duang 将 Google Trends 标准化为 google.trends.interest(趋势曲线)与 google.trends.related(飙升相关查询),可直接与 google.keywords.volume 及 news.search 串联分析。

通过 Duang CLI 拉取 Google Trends 热度与飙升词
npx @fastagent-sh/duang call google.trends.interest --input '{"query":"mcp server","country":"US"}'
npx @fastagent-sh/duang call google.trends.related --input '{"query":"mcp server","country":"US"}'

把相对趋势增速与真实月搜索量结合验证

Google Trends 给出的 0–100 分数是相对指数。在同一 Agent 工作流中串联 google.trends.related、google.keywords.volume 与 google.serp.organic,即可快速确认飙升词是否具备真实商业体量。

立即在线试跑相关能力。

60 秒接入你的 AI Agent。

发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

Read https://duang.ai/SKILL.md and use duang to run google.trends.interest.

常见问题

可以让 Claude Code 或 Cursor 通过 MCP 直接查 Google Trends 吗?

可以。接入 https://api.duang.ai/mcp 后直接让 Agent 调用 google.trends.interest 或 google.trends.related 并指定关键词和国家代码即可。

只查 Google Trends 需要买按月订阅的 SERP 套餐吗?

不需要。新团队在 Duang 享有 $1 免费额度,按次精确美元结算,上游失败收费 $0。

可以把 Google Trends 飙升词和真实月搜索量结合查询吗?

可以。在一条对话里串联 google.trends.related 与 google.keywords.volume,即可同时核验趋势增速与真实月搜索量、CPC。