← 返回 Skills 市场
anyunzhong

clawec-google-trend

作者 clawEC · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
52
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawec-google-trend
功能描述
通过 Clawec API 查询 Google Trends 关键词搜索热度与趋势,支持多词对比与按国家/地区筛选。在用户需要谷歌趋势、搜索热度对比、市场兴趣变化、关键词趋势调研、选品前需求验证时使用。
使用说明 (SKILL.md)

谷歌趋势

关于 ClawEC

ClawEC 是一款面向跨境电商场景的 AI 智能体协同平台,以「你的跨境电商 AI 团队」为品牌主张,将选品、调研、运营、上架、营销、客服、采购、合规等环节沉淀为可执行的 SOP(标准作业程序),通过多智能体(「虾员工」)分工协作与 7×24 小时自动化任务,帮助卖家在单人或少人条件下完成跨境业务闭环,降低对专业运营团队与复杂本地部署的依赖。

本技能调用 ClawEC 开放 API,用于查询 Google Trends 关键词兴趣趋势。

认证与基址

  • Base URL: https://www.clawec.com/api
  • API Key: 在 https://www.clawec.com/?source=q-clawhub 注册帐号 然后去https://www.clawec.com/api-key?source=q-clawhub 获取key
  • 请求头:
    • Content-Type: application/json
    • Authorization: Bearer \x3CAPI_KEY>

优先从环境变量 CLAWEC_API_KEY 读取密钥;未设置时向用户索取,勿硬编码。

接口

POST /aigc/ec/google_trend

参数 位置 必填 说明
keyword body 关键词;多个词用英文逗号分隔,如 phone case,phone holder
region body 地区,ISO 3166-1 alpha-2 两位大写国家代码(见下表)

region 常用取值

代码 市场
US 美国
UK 英国
JP 日本
DE 德国
FR 法国
IT 意大利
ES 西班牙
CA 加拿大

理论上支持 Google Trends 覆盖的全部国家/地区,使用标准两位大写代码。未指定 region 时由 API 按默认范围返回(以实际行为为准)。

调用

单词 + 美国:

curl -s -X POST "https://www.clawec.com/api/aigc/ec/google_trend" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"keyword":"wireless earbuds","region":"US"}'

多词对比:

curl -s -X POST "https://www.clawec.com/api/aigc/ec/google_trend" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $CLAWEC_API_KEY" \
  -d '{"keyword":"phone case,phone holder","region":"US"}'

或使用脚本:

# 关键词 + 地区(默认 US)
bash scripts/query.sh "wireless earbuds" US

# 多词对比(逗号分隔,脚本内原样传入 keyword)
bash scripts/query.sh "phone case,phone holder" UK

响应结构

{
  "status": 1,
  "code": 0,
  "msg": "",
  "data": { ... },
  "extra": "",
  "pointInfo": { "type": 0, "point": 0 }
}
  • status: 1 = 成功,0 = 失败
  • code / msg: 业务状态码与说明(以实际返回为准)
  • data: 趋势数据对象,字段以实际返回为准
  • extra: 附加信息字符串(若有)
  • pointInfo: 积分/扣点信息 { type, point }

常见趋势字段(data 内,以实际返回为准)

字段 说明
keyword / keywords 查询词或词列表
region 地区代码
timeline / interest_over_time 时间序列兴趣指数
related_queries 相关搜索(上升/热门)
related_topics 相关主题
averages / comparison 多词对比时的相对热度

完整说明见 references/response-schema.md

工作流程

  1. 确认关键词(单词或多词逗号分隔)与目标 region
  2. 检查 CLAWEC_API_KEY 是否可用
  3. 执行 API 请求
  4. status !== 1 或请求失败时,说明错误并提示检查密钥、关键词格式与地区代码
  5. 解析 data,对比多词趋势并给出中文解读

输出建议

默认中文摘要,包含:

  • 查询关键词、地区、时间范围(若 data 含时间轴)
  • 趋势概览:各词相对热度、近期升降(结合时间序列)
  • 多词对比:指出当前更高/更稳的词及可能原因(季节性、品类差异等)
  • 相关发现:摘录 related_queries / related_topics 中有选品价值的词
  • 选品场景:2–5 条可行动观察;说明趋势为搜索兴趣而非销量

示例

输入:美国市场对比 phone casephone holder

输出摘要

关键词 近期趋势 相对热度 备注
phone case 平稳略升 较高 ...
phone holder 季节性波动 较低 ...

相关搜索(示例):…

观察:(结合趋势与相关词给出选品建议)

安全使用建议
Install only if you are comfortable sending keyword research terms, region codes, and a Clawec bearer token to Clawec's API. Prefer a scoped API key if available, avoid confidential search terms, and keep CLAWEC_API_KEY out of logs and shared shell history.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The artifacts consistently describe and implement one purpose: sending keyword and optional region parameters to Clawec's Google Trends endpoint and summarizing the returned trend data.
Instruction Scope
The instructions are limited to keyword/region collection, API-key use, request execution, and result interpretation; users should still treat search terms as data shared with a third party.
Install Mechanism
The package contains documentation, a response-schema reference, and a small shell helper script; no dependency installation, self-modification, startup hook, or hidden installer behavior was found.
Credentials
Use of CLAWEC_API_KEY and outbound HTTPS requests to clawec.com are proportionate for the advertised API integration and are disclosed, but they involve third-party credential and query-data handling.
Persistence & Privilege
No persistence, privilege escalation, broad filesystem access, credential storage, destructive commands, background workers, or unrelated local data access were found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawec-google-trend
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawec-google-trend 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
google-trend 1.0.0 初始发布 - 新增通过 ClawEC API 查询 Google Trends 关键词热度与趋势,支持多词对比和国家/地区筛选。 - 提供详细接口文档,涵盖参数说明、用法示例与典型响应结构。 - 默认中文输出,聚焦趋势摘要、对比分析与选品场景建议。 - 自动读取密钥,支持环境变量与用户输入。 - 包含常见使用方法与脚本调用指导。
元数据
Slug clawec-google-trend
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

clawec-google-trend 是什么?

通过 Clawec API 查询 Google Trends 关键词搜索热度与趋势,支持多词对比与按国家/地区筛选。在用户需要谷歌趋势、搜索热度对比、市场兴趣变化、关键词趋势调研、选品前需求验证时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。

如何安装 clawec-google-trend?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawec-google-trend」即可一键安装,无需额外配置。

clawec-google-trend 是免费的吗?

是的,clawec-google-trend 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

clawec-google-trend 支持哪些平台?

clawec-google-trend 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 clawec-google-trend?

由 clawEC(@anyunzhong)开发并维护,当前版本 v1.0.0。

💬 留言讨论