# Google Trends Scraper (batch, no browser) (`ech0blaz3/google-trends-scraper`) Actor

Batch Google Trends for up to 500 keywords: interest over time, regions, related queries and a summary in every row. No browser. Pay only for successes.

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

## Pricing

$2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: up to 500 keywords per run, pay only for results

Get Google Trends interest, top regions and related searches for hundreds of keywords at once, with a
ready-made summary in every row.

### What does Google Trends Scraper do?

- Shows how interest in each keyword changed over time, for any range from the last hour back to 2004.
- Finds where people search for it most: by country, or by region inside a country.
- Lists the top and the rising related searches for each keyword.
- Adds a ready-made summary to every row: average, peak and its date, latest value, and whether interest is
  going up, down or staying flat.
- Takes up to 500 keywords in one run and gives you one row per keyword.

### Why use Google Trends Scraper?

- **A ready-made summary in every row.** See the average, peak, latest value, trend and top region at a
  glance. Sort and filter right away, without reading charts.
- **Pay only for successful results.** Keywords that fail or come back incomplete are free.
- **Up to 500 keywords per run.** Paste your whole list at once. Duplicates are removed for you.
- **No Google account and no API key.** Add your keywords and start.
- **Fast, no browser.** Data comes straight from Google Trends, without opening web pages in a browser.

### How to use Google Trends Scraper

1. Click **Try for free** and sign in to Apify, or create a free account.
2. Paste your keywords. If you like, pick a country and a time range.
3. Click **Start** and wait until the run finishes.
4. Open the **Output** tab and download your results as CSV, Excel or JSON.

### How much does it cost?

**$2.50 per 1,000 keywords**, which is $0.0025 per keyword. You pay only for keywords that come back complete.

| Run | Keywords | Price |
|---|---|---|
| Small | 100 keywords | $0.25 |
| Medium | 500 keywords (one full run) | $1.25 |
| Large | 5,000 keywords (10 runs of 500) | $12.50 |

You are **not** charged for:

- keywords that fail, even after automatic retries;
- keywords that come back partial, because one of the sections you asked for is missing;
- keywords skipped because your run reached its maximum cost.

Each keyword is charged at most once per run, even if the platform restarts the run. If you set a maximum cost
per run, the scraper stops before going over it.

### Input

Example:

```json
{
  "keywords": ["coffee", "matcha", "cold brew"],
  "geo": "US",
  "timeframe": "today 12-m"
}
```

| Field | What it is | Default |
|---|---|---|
| `keywords` | The search terms to look up, up to 500 per run. | required |
| `geo` | A country (`US`, `GB`), a region (`US-CA`) or a metro area (`US-CA-803`). Empty means worldwide. | worldwide |
| `timeframe` | The time range: `now 1-H`, `now 4-H`, `now 1-d`, `now 7-d`, `today 1-m`, `today 3-m`, `today 12-m`, `today 5-y`, `all`, or your own dates such as `2025-01-01 2025-06-30`. | `today 12-m` (last 12 months) |
| `category` | A Google Trends category number, to narrow down the meaning of a word (for example "jaguar" the car or the animal). | `0` (all categories) |
| `interest_over_time` | Interest over time. | on |
| `by_region` | Interest by country or region. | on |
| `related_queries` | Top and rising related searches. | on |
| `related_topics` | Related topics. Currently empty, see Limitations. | on |
| `concurrency` | How many keywords are processed at the same time. | `3` |
| `proxyConfiguration` | Connection settings. Keep the default residential proxies. | residential proxies |

### Output

You get one row per keyword. Here is a real row for "halloween", worldwide, last 12 months, from a run on
9 November 2026. The long lists are shortened:

```json
{
  "keyword": "halloween",
  "status": "ok",
  "geo": "",
  "timeframe": "today 12-m",
  "avg_interest": 8.9,
  "peak_interest": 100,
  "peak_date": "2026-10-25",
  "latest_interest": 23,
  "trend_direction": "up",
  "top_region": "United States",
  "top_query": "halloween costume",
  "top_rising_query": "heidi klum halloween 2026",
  "interest_over_time": { "points": [{ "date": "2025-11-09", "interest": 4 }, "... 52 more weeks"] },
  "by_region": { "items": [{ "rank": 1, "geoName": "United States", "interest": 100 }, "... 249 more"] },
  "related_queries": {
    "top": [{ "rank": 1, "query": "halloween costume", "value": 100 }, "... 24 more"],
    "rising": [{ "rank": 1, "query": "heidi klum halloween 2026", "formattedValue": "Breakout" }, "... 17 more"]
  }
}
```

| Field | What it means |
|---|---|
| `keyword` | The search term. |
| `status` | `ok`, `partial` (some sections are missing) or `failed`. Failed and partial rows also have an `error` field. |
| `avg_interest` | Average interest over the period, on Google's scale from 0 to 100. |
| `peak_interest`, `peak_date` | The highest value and the first date it was reached. |
| `latest_interest` | The value of the most recent complete period: a week, a day, a month or less, depending on the time range. |
| `trend_direction` | `up`, `down` or `flat`: the last 4 values compared with the 4 before. A change within 10% counts as flat. |
| `top_region` | The country or region with the highest interest. |
| `top_query`, `top_rising_query` | The number one top search and the number one rising search. |
| `interest_over_time` | Every date with its value. |
| `by_region` | Every country or region, ranked by interest. |
| `related_queries` | The full top and rising lists. |

Dates use the `YYYY-MM-DD` format. Each row also keeps Google's original fields, so tools built for raw Google
Trends data keep working. Download the results as CSV, Excel, JSON, HTML or XML from the Output tab, or get them
through the API. The Output tab also has a run summary with the status of every keyword.

### Use cases

- **SEO and content teams:** find out which topics are growing before you write about them.
- **Online shops:** see when demand for a product peaks during the year, and where.
- **Marketers:** track interest in your brand and in other brands across countries and regions.
- **Agencies:** schedule a weekly run for each client's keyword list and add the export to your reports.
- **Analysts and investors:** watch rising interest in products, technologies and trends.

### Integrations

Send the results to your other tools after every run with the Apify integrations for **n8n**, **Make** and
**Zapier**, or with webhooks. You can also start the scraper from your own code with the Apify API.

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("ech0blaz3/google-trends-scraper").call(
    run_input={"keywords": ["coffee", "matcha"], "geo": "US"}
)
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row["keyword"], row["avg_interest"], row["trend_direction"])
```

JavaScript (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('ech0blaz3/google-trends-scraper').call({
    keywords: ['coffee', 'matcha'],
    geo: 'US',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((row) => console.log(row.keyword, row.avg_interest, row.trend_direction));
```

### Limitations

- **Related topics are not delivered right now.** Google currently returns an empty list. The section stays in
  the output, marked as empty, and never makes a keyword fail.
- **Values are relative, from 0 to 100**, not numbers of searches.
- **Each keyword is scaled on its own.** A 50 for one keyword and a 50 for another do not mean the same number
  of searches.
- **Worldwide, the top region can be a small country.** Google compares interest with all searches in each
  place, so places with few searches can score high. Set a country to see the regions inside it.
- **Google sometimes limits requests.** The scraper retries automatically. Keywords that still fail are free,
  and you can simply run them again.
- **Residential proxies are required.** Keep the default connection settings.
- This is an unofficial tool and is not affiliated with Google. Use the data in line with Google's terms and the
  law.

### FAQ

#### Is this the number of searches?

No. Google Trends shows relative interest from 0 to 100. 100 is the highest interest for that keyword in the
chosen time range and place.

#### Do I need a Google account or an API key?

No. Add your keywords and start the run.

#### Do I pay for keywords that fail?

No. Failed and partial keywords are free, and so are keywords skipped because the run reached your maximum
cost. Each keyword is charged at most once per run.

#### Can I compare two keywords with each other?

Not by their numbers. Each keyword is measured on its own 0 to 100 scale. Compare their trends and peak dates
instead.

#### I have more than 500 keywords, or I want fresh data every week. What do I do?

Split the list into runs of up to 500 keywords. To repeat a run every day or week, create a schedule in Apify.

#### How far back does the data go?

To 2004. Use `all` as the time range, or your own dates such as `2010-01-01 2015-12-31`.

#### Why is related_topics empty?

Google currently returns no related topics to this scraper. The rest of the row is not affected.

### Support

Found a bug or missing a field? Open an issue in the **Issues** tab. I answer issues quickly and I am open to
feature requests.

# Actor input Schema

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

Search terms to look up, one per line. Up to 500 per run. Empty lines and duplicates (ignoring case) are dropped. You pay per keyword that is delivered successfully.

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

Two-letter country code (US, GB, DE), a region (US-CA) or a metro area (US-CA-803). Leave empty for worldwide.

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

One of: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all. Or a custom range 'YYYY-MM-DD YYYY-MM-DD' between 2004-01-01 and today.

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

Google Trends category to narrow down the meaning of the keywords: the number in the 'cat' parameter of a Google Trends URL. 0 means all categories.

## `interest_over_time` (type: `boolean`):

Time series of relative search interest (0-100). Feeds the average, peak, latest and trend columns.

## `by_region` (type: `boolean`):

Relative interest per country (worldwide) or per subregion (when a location is set). Feeds the top region column.

## `related_queries` (type: `boolean`):

Top and rising related queries. Feeds the top query and top rising query columns.

## `related_topics` (type: `boolean`):

Google currently returns an empty list of related topics to this Actor. The section is kept in the output with status 'empty' and never blocks or fails a keyword.

## `concurrency` (type: `integer`):

How many proxy sessions work in parallel. The default suits most runs; lower it if the run summary shows many retries.

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

Residential proxies are required: Google blocks datacenter IPs quickly.

## Actor input object example

```json
{
  "keywords": [
    "python",
    "weather"
  ],
  "geo": "",
  "timeframe": "today 12-m",
  "category": 0,
  "interest_over_time": true,
  "by_region": true,
  "related_queries": true,
  "related_topics": false,
  "concurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per keyword with the quick summary columns: average, peak, latest value, trend direction, top region and top queries.

## `results` (type: `string`):

Every field of every keyword, including the full time series, all regions and the related queries.

## `runSummary` (type: `string`):

Counts, charged keywords, stop reason, traffic, and the status, attempts and error of every keyword.

# 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": [
        "python",
        "weather"
    ],
    "timeframe": "today 12-m",
    "interest_over_time": true,
    "by_region": true,
    "related_queries": true,
    "related_topics": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ech0blaz3/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 = {
    "keywords": [
        "python",
        "weather",
    ],
    "timeframe": "today 12-m",
    "interest_over_time": True,
    "by_region": True,
    "related_queries": True,
    "related_topics": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ech0blaz3/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 '{
  "keywords": [
    "python",
    "weather"
  ],
  "timeframe": "today 12-m",
  "interest_over_time": true,
  "by_region": true,
  "related_queries": true,
  "related_topics": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call ech0blaz3/google-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ech0blaz3/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/VFXiM6kbSPDc2OgVe/builds/0oBB6f1Hbw9doBSxw/openapi.json
