# Google Trends Scraper - Interest Over Time & Rising Queries (`scrolahdata/google-trends-scraper`) Actor

Google Trends API alternative: interest over time, interest by country/region/city, related queries and topics (top & rising), compare up to 5 keywords, plus daily trending searches. Pay per search.

- **URL**: https://apify.com/scrolahdata/google-trends-scraper.md
- **Developed by:** [Leping Gong](https://apify.com/scrolahdata) (community)
- **Categories:** SEO tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Trends Scraper — Interest, Regions, Related Queries & Trending Now

Extract **Google Trends** data at scale: **interest over time**, **interest by country / state / city**, **related queries and topics (top & rising)**, keyword **comparisons of up to 5 terms**, and today's **Trending Now** searches for any country. Export to JSON, CSV or Excel, or call it from the API.

**Pay per search, not per row.** One price covers the full timeline, the region breakdown and all related queries for a search term. Failed searches are never charged.

### What data can you get from Google Trends?

| Section | What you get |
|---|---|
| 📈 Interest over time | Relative search interest (0–100) per date, per keyword, with partial-period flag |
| 🗺️ Interest by region | Interest per country, state/region, city or US metro (DMA) |
| 🔎 Related queries | Top and **rising** queries for each keyword (e.g. `+3,300%`, `Breakout`) |
| 🧩 Related topics | Top and rising topics with Knowledge Graph IDs |
| ⚖️ Comparison | Up to 5 keywords on one scale, plus their average interest |
| 🔥 Trending Now | Today's trending searches per country with approximate traffic and news articles |

Filters: **country/region**, **time range** (past hour → 2004-present or a custom date range), **category**, and **search type** (Web, YouTube, News, Images, Google Shopping).

### How to use it

1. Add **Search terms** — one search per line. To compare keywords, put them on one line separated by commas: `bitcoin, ethereum, solana`.
2. Pick a **country code** (`US`, `GB`, `DE`, `US-CA` …) or leave empty for worldwide.
3. Choose a **time range** and the sections you need.
4. Optionally add **Trending Now countries** (e.g. `US`, `IN`, `SG`).
5. Click **Start**.

#### Example input

```json
{
  "searchTerms": ["chatgpt", "bitcoin, ethereum, solana"],
  "geo": "US",
  "timeRange": "today 12-m",
  "regionResolution": "REGION",
  "trendingNowGeos": ["US", "GB"]
}
```

#### Example output (search)

```json
{
  "type": "search",
  "searchTerm": "bitcoin, ethereum, solana",
  "keywords": ["bitcoin", "ethereum", "solana"],
  "geo": "US",
  "timeRange": "today 12-m",
  "status": "ok",
  "averages": { "bitcoin": 33, "ethereum": 5, "solana": 4 },
  "interestOverTime": [
    { "date": "2026-11-08T00:00:00Z", "values": { "bitcoin": 31, "ethereum": 5, "solana": 4 }, "isPartial": true }
  ],
  "interestByRegion": [
    { "geoCode": "US-NV", "geoName": "Nevada", "values": { "bitcoin": 100, "ethereum": 12, "solana": 9 } }
  ],
  "relatedQueries": {
    "bitcoin": {
      "top": [{ "query": "bitcoin price", "value": 100, "formattedValue": "100" }],
      "rising": [{ "query": "bitcoin etf", "value": 450, "formattedValue": "+450%" }]
    }
  }
}
```

#### Example output (Trending Now)

```json
{
  "type": "trending_now",
  "geo": "US",
  "rank": 1,
  "title": "new york times",
  "approxTraffic": "2000+",
  "pubDate": "Wed, 11 Nov 2026 01:20:00 -0800",
  "news": [{ "title": "...", "url": "https://...", "source": "..." }]
}
```

### How much does it cost?

Pay-per-event pricing:

- **Search term** — one flat price per successfully scraped search (all sections included).
- **Trending Now item** — a small price per trending search returned.

Searches that fail after all retries are free. Set *Maximum cost per run* to cap spending.

### Use cases

- **SEO & content planning** — find rising queries before competitors do
- **Market & product research** — compare brands, products and categories
- **Investing & crypto signals research** — track attention to tickers and coins over time
- **Seasonality analysis** for e-commerce and ads
- **News & social monitoring** with daily Trending Now feeds
- **Data for AI agents and dashboards** via API, Make, Zapier, n8n or Google Sheets

### Tips

- Google Trends values are **relative** (0–100) within each search — compare keywords in the same search to keep them on one scale.
- `REGION`, `CITY` and `DMA` resolution require a country code in **Country / region code**.
- Google rate-limits Trends heavily; the Actor rotates residential proxy sessions and retries automatically.

### Integrations & API

- **API** — run it from Python, Node.js or any language with the Apify API / `apify-client` and get results as JSON.
- **Schedules & monitoring** — run it hourly, daily or weekly and get only fresh data.
- **Zapier, Make, n8n, Google Sheets, Slack, webhooks** — send results to your tools automatically.
- **AI agents (MCP)** — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server.

### FAQ

**Do I need a Google account or API key?** No.

**Why are related topics sometimes empty?** Google doesn't return topics for every keyword/time range; related queries are usually available.

**Is it legal?** The Actor collects publicly available, aggregated, non-personal statistics. Make sure your use complies with Google's terms and applicable law.

**Need a feature?** Open an issue in the *Issues* tab.

# Actor input Schema

## `searchTerms` (type: `array`):

One search per line. To compare keywords, separate up to 5 with commas on one line (e.g. 'bitcoin, ethereum').

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

ISO code like US, GB, DE, US-CA. Leave empty for worldwide.

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

Period to analyse.

## `customTimeRange` (type: `string`):

Optional, overrides Time range. Format 'YYYY-MM-DD YYYY-MM-DD'.

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

Google Trends category ID (0 = all categories).

## `searchProperty` (type: `string`):

Which Google property to use.

## `interestOverTime` (type: `boolean`):

Timeline of relative search interest (0-100).

## `interestByRegion` (type: `boolean`):

Search interest per country / region / city.

## `regionResolution` (type: `string`):

Granularity of interest by region (needs a country code for REGION/CITY/DMA).

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

Top and rising related search queries per keyword.

## `relatedTopics` (type: `boolean`):

Top and rising related topics per keyword.

## `trendingNowGeos` (type: `array`):

Optional. Country codes to fetch today's Trending Now searches for (e.g. US, GB, IN).

## `language` (type: `string`):

Language for topic names, e.g. en-US, de, ja.

## `timezoneOffsetMinutes` (type: `integer`):

Offset from UTC used by Google Trends (e.g. 0 for UTC, 300 for US Eastern, -480 for Singapore).

## `maxConcurrency` (type: `integer`):

Searches processed in parallel.

## `proxyConfiguration` (type: `object`):

Google Trends rate-limits heavily; residential proxies are recommended.

## Actor input object example

```json
{
  "searchTerms": [
    "chatgpt",
    "bitcoin, ethereum, solana"
  ],
  "geo": "",
  "timeRange": "today 12-m",
  "customTimeRange": "",
  "category": 0,
  "searchProperty": "",
  "interestOverTime": true,
  "interestByRegion": true,
  "regionResolution": "",
  "relatedQueries": true,
  "relatedTopics": true,
  "trendingNowGeos": [],
  "language": "en-US",
  "timezoneOffsetMinutes": 0,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "chatgpt",
        "bitcoin, ethereum, solana"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/google-trends-scraper").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 = { "searchTerms": [
        "chatgpt",
        "bitcoin, ethereum, solana",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrolahdata/google-trends-scraper").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 '{
  "searchTerms": [
    "chatgpt",
    "bitcoin, ethereum, solana"
  ]
}' |
apify call scrolahdata/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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

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/lW4Dir4WTvv3C9Xdy/builds/bMQfRxyrdQOxbaCmf/openapi.json
