# Google Trends Scraper — Interest Over Time & Related Queries (`radevicb/google-trends-explorer`) Actor

Structured Google Trends data per keyword: interest over time and related queries (top + rising), as clean LLM-ready JSON. No official API needed.

- **URL**: https://apify.com/radevicb/google-trends-explorer.md
- **Developed by:** [Boris Radevic](https://apify.com/radevicb) (community)
- **Categories:** SEO tools, Marketing, AI
- **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/platform/actors/running/actors-in-store#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 Scraper — Interest Over Time & Related Queries

Structured **Google Trends data as clean JSON**: interest-over-time series and related
queries (top + rising) for any keyword, region, and time range. Google offers no
generally-available official API — this actor fills that gap with output your LLM,
spreadsheet, or dashboard can consume directly.

### What you get per keyword

```json
{
    "keyword": "bitcoin",
    "geo": "worldwide",
    "timeRange": "today 12-m",
    "latestValue": 62,
    "averageValue": 55.3,
    "peakDate": "Jan 2026",
    "interestOverTime": [
        { "date": "Aug 2025", "timestamp": 1756600000, "value": 48 }
    ],
    "relatedQueries": {
        "top": [{ "query": "bitcoin price", "value": 100 }],
        "rising": [{ "query": "bitcoin etf 2026", "change": "+350%" }]
    },
    "topRelatedQuery": "bitcoin price",
    "risingRelatedQuery": "bitcoin etf 2026",
    "fetchedAt": "2026-08-23T21:30:00.000Z"
}
```

Ready-made summary fields (`latestValue`, `averageValue`, `peakDate`) mean you often
don't need to touch the raw series at all.

### Input

```json
{
    "keywords": ["bitcoin", "ethereum"],
    "geo": "US",
    "timeRange": "today 12-m",
    "includeInterestOverTime": true,
    "includeRelatedQueries": true
}
```

- `geo`: two-letter country code (`US`, `DE`, `RS`…), subregion (`US-CA`), or empty
  for worldwide.
- `timeRange`: past day / 7 days / month / 3 months / 12 months / 5 years / all.
- Values are Google's relative 0–100 scale within the chosen range and region.

### Typical uses

- SEO/content planning: which of your candidate topics is trending up, what's rising around them
- Market research: seasonality and regional interest before a launch
- AI agents: a clean numeric feed for trend-aware automations

### Honest notes

- Google rate-limits aggressively; the actor rotates proxy sessions and retries with
  backoff. Failed keywords are listed in the run summary — a run where every keyword
  failed exits as FAILED, loudly, instead of pretending success.
- Data is Google's sampled, relative index — treat it as a signal, not ground truth.

***

Transparency: built and maintained with AI assistance on a human-owned account.
Collects only publicly available, aggregate (non-personal) data. Part of the rdvc toolset.

# Actor input Schema

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

Search terms to fetch Google Trends data for (one item per keyword in the output).

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

Two-letter country code (e.g. "US", "DE", "RS") or empty for worldwide. Subregions like "US-CA" also work.

## `timeRange` (type: `string`):

Google Trends time window.

## `includeInterestOverTime` (type: `boolean`):

Fetch the interest-over-time series (0-100 scaled).

## `includeRelatedQueries` (type: `boolean`):

Fetch related queries (top + rising).

## `proxy` (type: `object`):

Google rate-limits aggressively - Apify Proxy is strongly recommended.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin"
  ],
  "geo": "",
  "timeRange": "today 12-m",
  "includeInterestOverTime": true,
  "includeRelatedQueries": true,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `trends` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "keywords": [
        "bitcoin"
    ],
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("radevicb/google-trends-explorer").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 = {
    "keywords": ["bitcoin"],
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("radevicb/google-trends-explorer").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 '{
  "keywords": [
    "bitcoin"
  ],
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call radevicb/google-trends-explorer --silent --output-dataset

```

## MCP server setup

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

```

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/MRHjytBuN78VmmPzG/builds/Uks0k3CybUYumduUC/openapi.json
