使用 Google Trends API——一个专为 Google Trends 数据设计的 API——跟踪搜索需求、热门关键词、随时间变化的关注度、按地区划分的关注度、相关及上升搜索词,以及 Google Suggest 发现数据,均为结构化 JSON,用于需求调研和趋势监控。
Structured output
使用 Crawlora 的 Google Trends API,无需自建抓取器、代理路由、重试机制或响应规范化层,即可采集公开的搜索需求数据——随时间变化的关注度、按地区划分的关注度、相关及上升搜索词,以及热门词条。这些端点返回的结构化 JSON 可用于关键词需求调研、内容规划、市场趋势仪表盘和 AI 工作流。
SERP 工作流
Crawlora 帮助团队衡量搜索关注度随时间和跨地区的变化,发现上升和热门相关搜索词,并将需求信号接入内容、SEO 和市场研究工作流。
SERP 监控工作流Request schema
These parameters come from the active Google Trends explore data catalog entry.
| Parameter | Type | Required | Description | Example |
|---|
Example JSON
This example is rendered from the active endpoint catalog so the page stays aligned with Docs and Playground.
{
"code": 200,
"msg": "OK",
"data": {
"keywords": [
"chatgpt"
],
"geo": "US",
"time_range": "today 12-m",
"type": "web",
"interest_over_time": [
{
"time": "1777075200",
"formatted_time": "Apr 2026",
"values": [
{
"keyword": "chatgpt",
"value": 87,
"formatted_value": "87",
"has_data": true
}
]
}
],
"top_queries": [
{
"keyword": "chatgpt",
"items": [
{
"query": "chatgpt login",
"value": 100,
"formatted_value": "100"
}
]
}
],
"rising_queries": [
{
"keyword": "chatgpt",
"items": [
{
"query": "chatgpt alternatives",
"formatted_value": "Breakout"
}
]
}
]
}
}Endpoint catalog
/google/suggestReturns Google autosuggest query completions from the public unauthenticated suggest JSON endpoint.
Response notes
- Malformed suggest payloads and upstream blocks return `503`. - Duplicate or empty suggestions are removed from the normalized response. Example response: ```json { "code": 200, "msg": "OK", "data": { "query": "openai", "suggestions": [ { "position": 1, "query": "openai api" } ] } } ```
MCP tool google_suggest
/google/trends/categoriesReturns supported top-level Google Trends category ids and labels for Trending Now category filters.
MCP tool google_trends_categories
/google/trends/enumsReturns supported Google Trends enum values for explore/trending filters, including locations, date ranges, search types, categories, statuses, and sort modes.
MCP tool google_trends_enums
/google/trends/exploreReturns normalized Google Trends keyword analytics from internal Trends widget requests: interest over time, interest by region, related queries, and related topics when available.
MCP tool google_trends_explore
/google/trends/explore/interest-by-regionReturns only the interest-by-region widget from the Google Trends Explore widget flow. Supports multiple comparison terms and returns an empty interest_by_region array when Google returns no rows.
MCP tool google_trends_explore_interest_by_region
/google/trends/explore/interest-over-timeReturns only the interest-over-time timeline from the Google Trends Explore widget flow. Supports multiple comparison terms.
MCP tool google_trends_explore_interest_over_time
Managed execution
针对支持的公开 Google Trends 和 Suggest 页面,Crawlora 将请求处理、代理感知采集、响应解析和文档化的错误行为封装在一个稳定的 API 界面之后。
针对 Google Trends explore、trending、分类和地区数据的端点专属请求逻辑
同一分组下提供 Google Suggest 查询补全端点
在支持范围内提供代理感知采集和重试感知执行
带 Playground 测试示例的规范化 JSON 响应
基于文档化端点成本的额度计费
Crawlora 会检测不可用的上游响应,并返回文档化的错误,而不是静默返回损坏的 HTML。
Build or buy
Use this comparison to decide whether to maintain scraping infrastructure internally or call a managed endpoint.
| Requirement | Building internally | Crawlora |
|---|---|---|
| 代理轮换 | 需要购买、测试、轮换并监控代理池。 | 在支持范围内使用受管理的代理感知采集。 |
| 解析器维护 | 需要随 Google 的变化维护 Trends 请求签名和解析逻辑。 | 使用 API 背后维护的端点专属解析器。 |
| 架构规范化 | 需要设计并维护自己的响应模型版本。 | 从目录中获取文档化的 JSON 字段。 |
| 重试与错误分类 | 需要自行区分速率限制、空响应和上游故障。 | 针对不可用的上游响应获取文档化的错误。 |
| 端点文档 | 需要编写并维护内部 API 文档。 | 使用当前活跃端点目录生成的 Docs 页面。 |
| Playground 测试 | 需要为开发者构建测试控制台。 | 上线前先在 Playground 中测试同一批端点。 |
| 用量计费 | 需要自建计量和限制系统。 | 使用基于额度的用量和套餐限制。 |
| 监控 | 需要从零搭建请求量和故障的监控体系。 | 使用 Crawlora 文档化的状态和用量工作流。 |
Google 的官方 Google Trends API 已于 2025 年推出,但仍处于需要申请、配额有限的 alpha 阶段,尚未全面开放;而常用的非官方封装库 pytrends 已停止维护并频繁失效。Crawlora 为支持的 Google Trends 和 Suggest 页面提供结构化网络公开数据提取端点,作为一种无需排队等待的 JSON 替代方案。数据可能存在延迟,也可能因上游页面变化而发生规范化处理或调整。客户需自行确保其使用符合适用法律、第三方权利、平台条款及 Crawlora 条款。
Related APIs
Connect this endpoint with adjacent Crawlora search, monitoring, docs, and pricing pages.
将搜索需求数据与 Google SERP 排名跟踪结合起来。
Open将 Bing 的 SERP 数据加入跨引擎监控工作流。
Open将 Brave Search 的结果加入发现和监控工作流。
Open跟踪关键词排名、结果变化和搜索可见性。
Open基于周期性搜索结果快照构建关键词跟踪仪表盘。
Open通过结构化的结果快照检查关键词排名和排名 URL。
Open通过 API 获取随时间变化的关注度、上升和热门搜索词及热门词条,并附有可运行的代码。
Open查看套餐、额度、限制和用量选项。
Open浏览完整的活跃端点目录。
OpenHow to scrape Google Trends
Crawlora 的 Google Trends 端点以 JSON 形式重现公开的 Trends 小工具和 Trending Now 流程。Explore:POST /google/trends/explore 会在一次调用中为一个或多个词返回随时间变化的关注度、按地区划分的关注度、相关搜索词和相关话题,而 /google/trends/explore/interest-over-time、/google/trends/explore/interest-by-region、/google/trends/explore/related-topics、/google/trends/explore/top-queries 和 /google/trends/explore/rising-queries 各自只返回一个小工具的数据。Trending Now:GET /google/trends/trending 接受 geo、hl、tz、window、time_range、category 和 status 参数,POST /google/trends/trending/detail 用于查询某个词。/google/trends/locations、/google/trends/categories 和 /google/trends/enums 列出可接受的筛选值,/google/suggest 返回 Google 自动补全建议。
GET /google/trends/locations 获取地区代码(Explore 也接受 WORLDWIDE),/google/trends/categories 获取分类 ID,/google/trends/enums 获取日期范围、搜索类型、状态和排序方式。请将这些值作为请求对象中的字段传入,而不要自行猜测字符串。
对 POST /google/trends/explore 发起请求,请求对象包含:terms(一个或多个词,用于比较)、geo、时间范围和分类。响应会汇总随时间变化的关注度、按地区划分的关注度、相关搜索词和相关话题。如果只需要其中一项,可使用单一小工具路由;当 Google 没有相关数据时,rising-queries 和 top-queries 会返回空数组。
GET /google/trends/trending?geo=US&hl=en&window=<hours>&category=<id> 获取当前的热门词条,然后对某个词调用 POST /google/trends/trending/detail 获取其随时间变化的关注度、区域关注度和相关搜索词。按每次运行存储记录;trending 是一个数据流,而不是一张静态表。
GET /google/suggest?q=<prefix>&country=us&lang=en 返回 Google 自动补全建议,这是在开始探索之前,以最低成本枚举人们实际输入的表达方式的方法。
FAQ
Answers for developers evaluating Crawlora for supported public search result pages.
是的。Crawlora 为支持的公开 Google Trends 页面提供 Google Trends 端点——包括 explore(随时间变化的关注度、按地区划分的关注度、相关及上升搜索词)、trending、分类和地区——并通过文档化的 API 路由返回规范化 JSON。
Google 已于 2025 年推出官方的 Google Trends API,但目前处于受限的 alpha 阶段——仅限申请、配额和端点有限——因此大多数开发者尚无法获取访问权限,而长期使用的 pytrends 封装库是非官方的,且经常失效。Crawlora 现在就能以规范化 JSON 提供结构化的公开 Google Trends 数据,无需排队等待,是当前需要 Trends 数据的开发者的替代方案。
Google 的官方 Trends API 处于需要申请的 alpha 阶段,因此目前还没有可供注册的通用 Google Trends API 密钥。使用 Crawlora 时,你可以立即用自己的 Crawlora API 密钥(以 x-api-key 请求头发送)调用 Trends explore、trending、分类和地区端点。
目录包括 explore 数据(随时间变化的关注度、按地区划分的关注度、相关话题、上升及热门搜索词)、trending-now 词条及详情、分类、地区,以及在支持范围内的枚举元数据,此外同一分组下还有 Google Suggest 查询补全端点。
explore 端点接受 keywords、geo(地区)、hl(语言)、time_range、category、property 和 type。trending 端点接受 geo、window、time_range、category、sort_by 和 limit。
可以。团队会用它来衡量关键词需求随时间的变化、跨地区比较关注度、发现上升搜索词,并规划 SEO 和内容策略。将其与 Google Search API 和 SERP 监控应用场景结合,即可把需求数据与排名关联起来。
Crawlora 会检测不可用的上游响应并返回文档化的错误,而不是静默返回损坏的 HTML。客户应在自己的集成中处理错误、重试和上游可用性变化。
对 Crawlora 的 /google/trends/explore 端点发起 POST 请求,传入 terms、geo、时间范围和分类,即可在一个响应中获取随时间变化的关注度、按地区划分的关注度、相关搜索词和相关话题;也可以调用单一小工具路由获取某一项数据。GET /google/trends/trending 获取 Trending Now。
不是。随时间变化的关注度和按地区划分的关注度都是 Google 在该次请求范围内缩放到 0 到 100 的相对指数,因此数值只能在同一次调用内部进行比较。如果要比较多个词,应将它们作为对比词一起传入,而不要分开调用。
对于某些词、地区和时间的组合——尤其是低搜索量的组合——Google 不会返回任何数据行。此时 Crawlora 的 /google/trends/explore/rising-queries 和 /google/trends/explore/top-queries 端点会返回空数组,而不是报错。
使用 Crawlora 的 /google/trends/locations、/google/trends/categories 和 /google/trends/enums 端点列出可接受的值;Explore 端点也接受 WORLDWIDE。
Guides
Read Crawlora guides and comparisons that use the Google Trends API.
Four weeks on, "Flock camera" search held near its 12-month peak. Rising queries shifted from 100% definitional to policy, legal and lookup intent.
Google Trends real-time board, 26 daily snapshots: ~96% of everything that ever cracks the top 50 shows up on exactly one sampled day, then never returns.
HBO's Lanterns scores 90/90 on Rotten Tomatoes and 72/7.0 on Metacritic — no critic/audience gap. The real story: most reviews are 2-day-old advance screeners.
在 Playground 中测试 Google Trends explore 端点,在 Docs 中查看当前的响应架构,并在价格页面比较基于额度的用量。