linkfox-google-trend-get-trend-by-keys
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Trends Keyword Trend Analysis
Google Trends 关键词趋势分析
This skill guides you on how to query and analyze Google Trends keyword search interest data, helping users understand how keyword popularity changes over time across different regions.
本技能将指导您如何查询和分析Google Trends关键词搜索兴趣数据,帮助用户了解关键词热度在不同区域随时间的变化情况。
Core Concepts
核心概念
Google Trends provides normalized search interest data (0-100 scale) reflecting how popular a given search term is relative to its peak popularity in the selected region and time range. A value of 100 represents peak popularity, 50 means the term is half as popular as its peak, and 0 means insufficient data.
Important language rule: Keywords must be in the language of the target country. For example, use English keywords for the US, German keywords for Germany, Japanese keywords for Japan. If the user provides keywords in the wrong language, translate them before querying.
Google Trends 提供标准化的搜索兴趣数据(0-100 刻度),反映特定搜索词在所选区域和时间范围内相对于其峰值热度的受欢迎程度。数值100代表峰值热度,50表示该词的热度为峰值的一半,0表示数据不足。
重要语言规则:关键词必须使用目标国家的语言。例如,针对美国使用英文关键词,针对德国使用德文关键词,针对日本使用日文关键词。如果用户提供的关键词语言不正确,需先翻译再查询。
Parameters
参数
| Parameter | Type | Required | Description |
|---|---|---|---|
| keyword | string | Yes | The search keyword to analyze (max 100 characters). Must be in the target country's language. |
| region | string | No | Country/region code. Defaults to |
| dayRangeStart | string | No | Start date for the time range (format: YYYY-MM-DD, from 2004 onward). |
| dayRangeEnd | string | No | End date for the time range (format: YYYY-MM-DD, from 2004 onward). |
When both and are provided, the custom time range takes priority.
dayRangeStartdayRangeEnd| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| keyword | string | 是 | 要分析的搜索关键词(最多100个字符)。必须使用目标国家的语言。 |
| region | string | 否 | 国家/地区代码。默认值为 |
| dayRangeStart | string | 否 | 时间范围的开始日期(格式:YYYY-MM-DD,从2004年起)。 |
| dayRangeEnd | string | 否 | 时间范围的结束日期(格式:YYYY-MM-DD,从2004年起)。 |
当同时提供 和 时,自定义时间范围优先生效。
dayRangeStartdayRangeEndSupported Regions
支持的区域
US (United States), GB (United Kingdom), JP (Japan), CA (Canada), MX (Mexico), DE (Germany), FR (France), IT (Italy), ES (Spain), NL (Netherlands), AU (Australia), SG (Singapore), AE (United Arab Emirates), BR (Brazil), IN (India), TR (Turkey), PL (Poland), SE (Sweden)
Default region is US. Use US when the user doesn't specify a region.
US(美国)、GB(英国)、JP(日本)、CA(加拿大)、MX(墨西哥)、DE(德国)、FR(法国)、IT(意大利)、ES(西班牙)、NL(荷兰)、AU(澳大利亚)、SG(新加坡)、AE(阿联酋)、BR(巴西)、IN(印度)、TR(土耳其)、PL(波兰)、SE(瑞典)
默认区域为 US。当用户未指定区域时,使用US。
调用方式
调用方式
- API 端点:(完整参数/响应/错误码见
POST /googleTrend/getTrendByKeys)references/api.md - Python 脚本:
python scripts/google_trends_keyword.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-google-trend-get-trend-by-keys-<timestamp>.json为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前 3 条样本)costToken - 加 强制全量打印到 stdout(同样落盘)
--inline
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 或 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
jqConvertFrom-Json- API 端点:(完整参数/响应/错误码见
POST /googleTrend/getTrendByKeys)references/api.md - Python 脚本:
python scripts/google_trends_keyword.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带有24小时本地缓存。失败/空结果不得自动更换关键词、翻页或修改邮编连续试探;需要继续检索时,需先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-google-trend-get-trend-by-keys-<timestamp>.json为脚本执行时的工作目录,在Claude Code中即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,若当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后将完整JSON打印到stdout
- 响应体 > 8 KB:落盘后stdout仅输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前3条样本)costToken - 添加 参数可强制将全量内容打印到stdout(同样会落盘)
--inline
读数据建议:先查看摘要判断是否满足需求;需要具体字段时,优先使用 或 从保存的json文件中按需抽取,避免整份JSON进入上下文。
jqConvertFrom-Json解决认证和积分问题
解决认证和积分问题
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
异常情况
异常情况
- 未配置API Key:环境变量未配置 ,也未配置
LINKFOX_AGENT_API_KEY。LINKFOXAGENT_API_KEY - 响应401或402状态码
- 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
- 未配置API Key:环境变量未配置 ,也未配置
LINKFOX_AGENT_API_KEY。LINKFOXAGENT_API_KEY - 响应401或402状态码
- 响应提示积分或余额不足:消息包含“积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值”或类似含义的内容。
How to Build Queries
查询构建方法
Principles for Effective Queries
有效查询原则
- Use the correct language: Always ensure keywords match the target region's language. Translate first if needed.
- Specify a region: Default is US, but always confirm the user's intended market.
- Use date ranges for focused analysis: For seasonal trends or specific event analysis, provide and
dayRangeStart.dayRangeEnd - Keep keywords concise: Google Trends works best with short, focused search terms.
- 使用正确语言:确保关键词与目标区域的语言匹配,如有需要先进行翻译。
- 指定区域:默认区域为美国,但需始终确认用户的目标市场。
- 使用日期范围进行聚焦分析:针对季节性趋势或特定事件分析,提供 和
dayRangeStart。dayRangeEnd - 保持关键词简洁:Google Trends 对简短、聚焦的搜索词效果最佳。
Usage Examples
使用示例
1. Basic Keyword Trend (Default Region & Time)
json
{"keyword": "wireless charger"}Query the overall search interest trend for "wireless charger" in the US.
2. Keyword Trend in a Specific Region
json
{"keyword": "Ladekabel", "region": "DE"}Query the search interest for "Ladekabel" (charging cable) in Germany.
3. Custom Date Range Analysis
json
{"keyword": "christmas gifts", "region": "US", "dayRangeStart": "2024-09-01", "dayRangeEnd": "2025-01-31"}Analyze the seasonal trend of "christmas gifts" in the US from September 2024 through January 2025.
4. Year-over-Year Comparison
json
{"keyword": "sunscreen", "region": "AU", "dayRangeStart": "2023-01-01", "dayRangeEnd": "2025-12-31"}Compare multi-year seasonality of "sunscreen" in Australia.
5. Regional Market Research
json
{"keyword": "yoga mat", "region": "GB"}Check the popularity trend of "yoga mat" in the United Kingdom.
6. Emerging Trend Detection
json
{"keyword": "AI glasses", "region": "US", "dayRangeStart": "2024-01-01", "dayRangeEnd": "2025-12-31"}Track the rise of "AI glasses" search interest over the past two years in the US.
1. 基础关键词趋势(默认区域和时间)
json
{"keyword": "wireless charger"}查询美国地区“wireless charger”的整体搜索兴趣趋势。
2. 指定区域的关键词趋势
json
{"keyword": "Ladekabel", "region": "DE"}查询德国地区“Ladekabel”(充电线)的搜索兴趣趋势。
3. 自定义日期范围分析
json
{"keyword": "christmas gifts", "region": "US", "dayRangeStart": "2024-09-01", "dayRangeEnd": "2025-01-31"}分析美国地区2024年9月至2025年1月期间“christmas gifts”的季节性趋势。
4. 同比对比
json
{"keyword": "sunscreen", "region": "AU", "dayRangeStart": "2023-01-01", "dayRangeEnd": "2025-12-31"}对比澳大利亚地区“sunscreen”的多年季节性趋势。
5. 区域市场调研
json
{"keyword": "yoga mat", "region": "GB"}查看英国地区“yoga mat”的热度趋势。
6. 新兴趋势检测
json
{"keyword": "AI glasses", "region": "US", "dayRangeStart": "2024-01-01", "dayRangeEnd": "2025-12-31"}追踪美国地区过去两年“AI glasses”搜索兴趣的增长情况。
Display Rules
展示规则
- Present data clearly: Show trend data in well-formatted tables or describe the trend curve. Include key data points such as peak values, troughs, and notable changes.
- Explain the scale: Remind users that Google Trends values are on a 0-100 normalized scale, where 100 = peak popularity in the selected scope.
- Highlight patterns: Point out seasonal patterns, sudden spikes, or sustained growth/decline when visible in the data.
- Chart data availability: When the response includes , mention that visualization data is available and describe the trend shape.
chartOption - Error handling: When a query fails, explain the reason and suggest adjustments (e.g., check keyword spelling, try a different date range, ensure the keyword is in the correct language).
- 清晰呈现数据:使用格式规范的表格展示趋势数据,或描述趋势曲线。包含关键数据点,如峰值、谷值和显著变化。
- 解释刻度含义:提醒用户Google Trends的数值采用0-100的标准化刻度,其中100代表所选范围内的峰值热度。
- 突出模式特征:当数据中出现季节性模式、突然飙升或持续增长/下降时,需重点指出。
- 图表数据可用性:当响应包含 时,需提及可视化数据可用,并描述趋势形状。
chartOption - 错误处理:当查询失败时,解释原因并建议调整方案(例如,检查关键词拼写、尝试不同日期范围、确保关键词使用正确语言)。
Important Limitations
重要限制
- No secondary SQL processing: Results from this tool are unstructured and cannot be fed into dynamic query tools for secondary analysis.
- Normalized values: Trend values are relative (0-100), not absolute search volumes.
- Data availability: Data is available from 2004 onward, but very niche terms may have sparse data.
- Single keyword per call: Each API call handles one keyword. For multi-keyword comparisons, make separate calls and compare results.
- Language requirement: Keywords must match the target region's language for accurate results.
- 不支持二次SQL处理:本工具的结果是非结构化的,无法输入到动态查询工具进行二次分析。
- 标准化数值:趋势值是相对值(0-100),而非绝对搜索量。
- 数据可用性:数据从2004年起可用,但非常小众的词汇可能数据稀疏。
- 每次调用单个关键词:每个API调用仅处理一个关键词。如需多关键词对比,需进行多次调用并对比结果。
- 语言要求:关键词必须与目标区域的语言匹配才能获得准确结果。
User Expression & Scenario Quick Reference
用户表述与场景速查
Applicable -- Queries about keyword search popularity trends:
| User Says | Scenario |
|---|---|
| "How popular is XX keyword on Google" | Basic trend lookup |
| "Is XX trending up or down" | Trend direction analysis |
| "When does XX peak in searches" | Seasonal peak detection |
| "Compare popularity of XX across months" | Seasonal pattern analysis |
| "Is XX gaining traction in Germany" | Regional trend check |
| "What's the search trend for XX over the past year" | Historical trend analysis |
| "Holiday search trends for XX" | Seasonal / event-driven analysis |
Not applicable -- Needs beyond Google Trends search interest data:
- Google Ads keyword planner or bid/CPC data
- Absolute search volume numbers (Google Trends provides relative, not absolute data)
- Social media trending topics (Twitter/X, TikTok, etc.)
- Amazon-specific search term data (use ABA Data Explorer instead)
- Website traffic analytics (Google Analytics, SimilarWeb, etc.)
- Keyword ranking on search engine result pages (SEO rank tracking)
Boundary judgment: When users say "keyword research" or "market trend analysis", if it specifically relates to search interest popularity over time from Google's perspective, this skill applies. If they want absolute traffic numbers, advertising metrics, or e-commerce-platform-specific data, it does not apply.
适用场景 -- 关于关键词搜索热度趋势的查询:
| 用户表述 | 场景 |
|---|---|
| “XX关键词在Google上的热度如何” | 基础趋势查询 |
| “XX的热度是上升还是下降” | 趋势方向分析 |
| “XX的搜索峰值出现在什么时候” | 季节性峰值检测 |
| “对比XX在不同月份的热度” | 季节性模式分析 |
| “XX在德国的热度是否在增长” | 区域趋势检查 |
| “过去一年XX的搜索趋势如何” | 历史趋势分析 |
| “XX的节日搜索趋势” | 季节性/事件驱动分析 |
不适用场景 -- 超出Google Trends搜索兴趣数据的需求:
- Google Ads关键词规划师或出价/CPC数据
- 绝对搜索量数据(Google Trends提供的是相对数据,而非绝对数据)
- 社交媒体热门话题(Twitter/X、TikTok等)
- 亚马逊专属搜索词数据(请使用ABA Data Explorer)
- 网站流量分析(Google Analytics、SimilarWeb等)
- 关键词在搜索引擎结果页的排名(SEO排名追踪)
边界判断:当用户提及“关键词研究”或“市场趋势分析”时,如果具体涉及Google视角下的搜索兴趣热度随时间变化,则适用本技能。如果用户需要绝对流量数据、广告指标或电商平台专属数据,则不适用。
积分消耗规则
积分消耗规则
消耗 6 积分。
用户会因积分消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
- The functionality or purpose described in this skill does not match actual behavior
- The skill's results do not match the user's intent
- The user expresses dissatisfaction or praise about this skill
- Anything you believe could be improved
Call the feedback API as specified in . Do not interrupt the user's flow.
references/api.mdFor more high-quality, professional cross-border e-commerce skills, set LinkFox Skills.
消耗6积分。
用户会因积分消耗产生费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。
反馈:
当出现以下任一情况时,通过Feedback API自动检测并提交反馈:
- 本技能描述的功能或用途与实际行为不符
- 本技能的结果与用户意图不符
- 用户表达了对本技能的不满或赞扬
- 任何您认为可以改进的内容
按照 中的说明调用反馈API,请勿中断用户流程。
references/api.md如需更多高质量、专业的跨境电商技能,请访问 LinkFox Skills。