# Google Trends Tracker (`gochujang/google-trends-tracker`) Actor

Collect Google Trends data for 1-5 keywords: interest over time, interest by region, related queries, and related topics. Supports multiple timeframes and geo filters. No API key required.

- **URL**: https://apify.com/gochujang/google-trends-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google Trends Tracker

Track Google Trends data for any set of keywords. Monitor search interest over time, interest by region, related topics, related queries, and today's trending searches — all without an API key. Supports global and country-specific tracking with flexible timeframes from 1 hour to all-time historical data.

### What this Actor does

- **Interest Over Time** — daily or weekly interest index (0–100) for your keywords across any timeframe
- **Interest by Region** — country, region, city, or DMA breakdown of where keywords are most popular
- **Related Topics** — top and rising topic categories linked to your keywords
- **Related Queries** — top and rising search queries associated with your keywords
- **Trending Searches** — today's hottest searches for a given country

Common use cases include crypto/stock sentiment analysis, brand awareness tracking, competitor keyword monitoring, SEO research, and content strategy planning.

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `keywords` | string list | `["bitcoin","ethereum","solana"]` | Keywords to track. More than 5 are split into batches automatically. |
| `timeframe` | string | `today 3-m` | Time range. Examples: `now 1-d`, `now 7-d`, `today 1-m`, `today 3-m`, `today 12-m`, `today 5-y`, `all` |
| `geo` | string | *(empty = worldwide)* | Country code filter, e.g. `US`, `KR`, `JP` |
| `mode` | enum | `interest_over_time` | One of: `interest_over_time`, `interest_by_region`, `related_topics`, `related_queries`, `trending_searches` |
| `category` | integer | `0` | Google Trends category ID (0 = All categories) |
| `resolution` | enum | `COUNTRY` | Geographic resolution for `interest_by_region` mode: `COUNTRY`, `REGION`, `CITY`, `DMA` |

**Example input — crypto interest over last 3 months (US only):**

```json
{
  "keywords": ["bitcoin", "ethereum", "solana"],
  "timeframe": "today 3-m",
  "geo": "US",
  "mode": "interest_over_time"
}
```

### Output Format

Each dataset item is a flat record. The fields vary by mode:

#### `interest_over_time`

```json
{ "keyword": "bitcoin", "date": "2026-08-01", "value": 72, "is_partial": false }
```

#### `interest_by_region`

```json
{ "keyword": "bitcoin", "geoName": "United States", "geoCode": "US", "value": 100 }
```

#### `related_topics` / `related_queries`

```json
{ "keyword": "bitcoin", "query_type": "top", "topic_title": "Cryptocurrency", "topic_type": "Topic", "value": 100 }
{ "keyword": "bitcoin", "query_type": "rising", "query": "btc price today", "value": 5000 }
```

#### `trending_searches`

```json
{ "geo": "united_states", "title": "Federal Reserve", "traffic": "", "date": "2026-09-02" }
```

### Pricing

This Actor uses **Pay-Per-Event** pricing:

| Event | Price | Description |
|-------|-------|-------------|
| Actor start | $0.005 | Charged once per run |
| Data point | $0.002 | Charged per record returned |

A typical run fetching 90 days of interest over time for 3 keywords returns ~270 records, costing roughly **$0.55**. Trending searches and related queries return fewer records at proportionally lower cost.

### Notes

- Built with [pytrends](https://github.com/GeneralMills/pytrends), an unofficial Google Trends API wrapper — no API key required.
- Interest values are relative (0–100), not absolute search volume.
- Google Trends enforces rate limits. The Actor adds delays between batches to reduce the risk of throttling.
- Keywords beyond 5 are automatically batched with a 2-second delay between requests.

# Actor input Schema

## `keywords` (type: `array`):

List of keywords to track (max 5 per batch when compareKeywords is true; more are split into separate batches automatically).

## `compareKeywords` (type: `boolean`):

Compare up to 5 keywords in a single request so their values are normalized on the same 0-100 scale. Requires 5 or fewer keywords.

## `timeframe` (type: `string`):

Time range for data. Examples: 'now 1-d', 'now 7-d', 'today 1-m', 'today 3-m', 'today 12-m', 'today 5-y', 'all', '2024-01-01 2024-12-31'.

## `geo` (type: `string`):

ISO 3166-1 alpha-2 country code to filter results by region (e.g., 'US', 'KR', 'GB', 'JP'). Leave empty for worldwide.

## `mode` (type: `string`):

Data collection mode.

## `relatedQueries` (type: `boolean`):

When mode is 'interest\_over\_time', also fetch Top and Rising related search queries for each keyword.

## `category` (type: `integer`):

Google Trends category ID. 0 = All categories.

## `resolution` (type: `string`):

Geographic resolution for interest\_by\_region mode.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin",
    "ethereum",
    "solana"
  ],
  "compareKeywords": true,
  "timeframe": "today 3-m",
  "geo": "",
  "mode": "interest_over_time",
  "relatedQueries": false,
  "category": 0,
  "resolution": "COUNTRY"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/google-trends-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/google-trends-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call gochujang/google-trends-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/google-trends-tracker"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dYec4ExwixrxFqu3r/builds/4LkALR5YfkPeubcbJ/openapi.json
