# Google Trends Scraper & API: Compare 100 Keywords (`zerofail/google-trends-scraper`) Actor

Google Trends interest over time for up to 100 keywords put on one common 0-100 scale, chained through adaptive anchor terms. A series is returned only if it is complete and comparable; the rest is flagged and never charged. Changes-only mode for daily runs. Priced per keyword series.

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

## Pricing

from $3.20 / 1,000 keywords

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 & API: Compare 100 Keywords

Put up to 100 keywords on **one comparable Google Trends scale**: rank, share of total, and no
fake zeros. Google Trends' API compares at most 5 terms per request (a 6th term is refused with
HTTP 400, measured 2026-11-16) and rescales every request so its own peak is 100, so separate
charts cannot be combined. This Actor chains requests around an adaptively chosen anchor term and
returns every keyword on one 0-100 scale.

- **One row per keyword:** its interest over time, average, peak, `rank` and `shareOfTotalPct`,
  all directly comparable.
- **Too-small or incomplete series are flagged, never shown as 0, and never charged.**
- **Daily monitoring mode:** only what changed, such as new rising queries.
- **Every issue answered within 6 hours.**

**Try it now:** the prefilled input compares 12 project-management tools in the US, so at most
12 keyword series: $0.072 or less on the free plan (see *Pricing*), inside the free monthly
platform credit of Apify's free plan.

### What you can do with it

- **Content strategist — rank 50 topic ideas by relative interest.** Pass all 50 as `keywords`
  with a 12-month `timeframe`; read the `rank` and `shareOfTotalPct` fields to sort the dataset
  without touching the raw Google numbers, which are not comparable across requests.
- **Brand analyst — compare competing brands over 5 years.** Set `timeframe` to `today 5-y` and
  `geo` to a country code; every brand lands on the same scale even though Google only ever
  compares 5 of them directly.
- **SEO lead — watch a niche's rising queries every morning.** Set `monitorMode: true`,
  `includeRelatedQueries: true` and a fixed `trackingKey`, then schedule the task daily (see
  *Scheduling*): only what changed is returned.
- **AI agent — answer a one-shot comparison question.** A single call with `keywords` and
  `timeframe` is enough; see *Integrations* for the exact input an agent should write.

### Example output

A real row, unedited except for the middle of `series` (abridged, and says so), from M10's own
recette run on Apify Cloud (`axQzupUz8aWOCaioA`, 2026-11-16, 3 keywords, `today 12-m`):

```json
{
  "recordType": "keywordSeries",
  "keyword": "claude",
  "status": "ok",
  "comparable": true,
  "series": [
    { "date": "2025-11-16", "value": 4, "rawValue": 4, "isPartial": false },
    { "date": "2025-11-23", "value": 4, "rawValue": 4, "isPartial": false },
    { "...": "49 more points" },
    { "date": "2026-11-08", "value": 28, "rawValue": 28, "isPartial": false }
  ],
  "resolution": "WEEK",
  "pointCount": 52,
  "partialPointDropped": true,
  "average": 15.92,
  "peak": 28,
  "peakDate": "2026-11-08",
  "rank": 3,
  "shareOfTotalPct": 11.15,
  "referenceKeyword": "chatgpt",
  "valueVsReference": 19.54,
  "anchorKeyword": null,
  "scaleFactor": 1,
  "timeframe": "today 12-m",
  "geo": ""
}
```

| Field | Meaning |
| --- | --- |
| `status` / `comparable` | `ok` and `true` for a usable series; see *FAQ* for the other statuses. |
| `series` | One point per `date`, with Google's own `rawValue` and this run's common-scale `value`. |
| `average` / `peak` / `peakDate` | Computed on the common scale, not on `rawValue`. |
| `rank` / `shareOfTotalPct` | Position and share among this run's comparable keywords, pushed in `rank` order (see *Pricing*). |
| `referenceKeyword` / `valueVsReference` | The one number comparable across separate runs, always relative to the same reference. |
| `anchorKeyword` / `scaleFactor` | The term and ratio used to bring this keyword onto the common scale; `null` / `1.0` when the run needed a single request. |
| `regions` / `topQueries` / `risingQueries` | Only present when `includeRegionBreakdown` / `includeRelatedQueries` are on. |
| `changeType` / `newRisingQueries` | Only present in monitor mode. |

### Pricing

**$0.004 per keyword series (Bronze) — $0.006 on the free plan.**

- 50 keywords, 12 months, no optional block = **$0.20**.
- 50 keywords monitored daily = **$0.10 per morning**.

| Event | When it fires | Free | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- | --- |
| `keyword-series` | A complete, common-scale series for one keyword, one period, one region | $0.006 | $0.004 | $0.0036 | $0.0032 |
| `region-breakdown` *(optional)* | Interest by region for one keyword, when `includeRegionBreakdown` is on and the block is complete | $0.0045 | $0.003 | $0.0027 | $0.0024 |
| `related-queries` *(optional)* | Top and rising related queries for one keyword, when `includeRelatedQueries` is on and the block is complete | $0.0045 | $0.003 | $0.0027 | $0.0024 |
| `keyword-monitored` | Monitor mode only: one keyword checked and compared against the previous run, changed or not. Replaces `keyword-series`, never charged alongside it | $0.003 | $0.002 | $0.0018 | $0.0016 |

**Never charged:** a series that is incomplete or not comparable, a keyword below the measurement
threshold (`below_measurement_threshold`), a keyword with honestly no data (`no_data`), an
optional block that was never requested or did not complete, and anything beyond the one-time
start event on a run that fails or is blocked by Google.

### Input / configuration

| Field | Type | Notes |
| --- | --- | --- |
| `keywords` | array of strings | 1 to 100, duplicates removed. |
| `timeframe` | string | One of the 7 measured presets (e.g. `today 12-m`, `today 5-y`), or `custom` with `customTimeRange`. |
| `geo` | string | ISO country or region code (e.g. `US`, `FR`, `US-NY`); empty means worldwide. |
| `includeRegionBreakdown` | boolean | Off by default. One extra charged event per keyword. |
| `includeRelatedQueries` | boolean | Off by default. One extra charged event per keyword. |
| `monitorMode` | boolean | Returns only what changed since the last run sharing the same `trackingKey`. |

Example input that works as-is:

```json
{
  "keywords": ["chatgpt", "claude", "gemini"],
  "timeframe": "today 12-m"
}
```

### Scheduling / monitoring

A daily task ready to copy, watching a niche's rising queries every morning:

```json
{
  "keywords": ["chatgpt", "claude", "gemini"],
  "timeframe": "today 12-m",
  "scaleReference": "chatgpt",
  "monitorMode": true,
  "minChangePct": 5,
  "includeRelatedQueries": true,
  "trackingKey": "my-niche-chatgpt-claude-gemini"
}
```

Schedule it with a daily cron (e.g. `0 7 * * *`) and a fixed `trackingKey`. Monitor mode returns
only the keywords whose interest moved by more than `minChangePct` since the last run with that
key, plus any related query that newly started rising. A morning where nothing moved still ends
`Succeeded`, with a short or empty dataset and a status message that says so plainly — that is
the one case where delivering almost nothing is not a failure.

### Integrations

**For AI agents (MCP):** returns Google Trends data for a list of keywords — interest over time
(0-100), and optionally interest by region and related queries. Guarantee: all keywords in one
run are placed on one common 0-100 scale, and a series is written and charged only when it is
complete and comparable; a keyword too weak to be measured against its anchor comes back with
`status: "below_measurement_threshold"` and a null series, never a silent zero, and is never
charged. Use it to rank or compare many keywords, brands or topics by relative search interest,
or to watch which queries are rising in a niche. Do not use it for absolute search volumes or
CPC, for real-time "trending now" lists by country, or for anything requiring a Google account.

**n8n / Make / Clay:** one call with `keywords` and `timeframe` returns one row per keyword,
already ranked and on a common scale — drop it straight into a sheet or a scoring step without
a second normalization pass.

### FAQ

#### Why does a keyword come back with a null series?

It was below the measurement threshold against this run's anchor — too weak to be scaled
reliably. It is reported as `below_measurement_threshold`, not as a silent zero, and it is never
charged.

#### Why was a row not charged?

Either it was never requested (an optional block that is off by default), or the series was
incomplete or not comparable. Only a complete, comparable series is a `keyword-series` or
`keyword-monitored` event.

#### How much will 100 keywords cost me?

At Bronze, $0.40 for a full 100-keyword run with no optional block; each optional block roughly
doubles the number of requests and adds its own per-keyword event (see *Pricing*).

#### Can I get absolute search volumes?

No — Google Trends is relative, 0-100 within a comparison group. Use a keyword volume API for
absolute numbers.

#### Does it need a Google account, cookies or a proxy?

No. It calls Google Trends' public endpoints directly; no sign-in is involved on your side.

#### What if Google rate-limits my run?

A rate-limited request is retried once after a short pause; if the block persists, the affected
keywords are reported as rate-limited rather than silently dropped, and `rateLimitedAfterRetry`
in the run summary says how many.

For reference, on the most-used Actor in this category, 11% of runs time out and 15% are
abandoned (public stats, 2026-11-13). That is a separate fact, cited without implying a cause.

### Limitations

- **No absolute search volumes.** Google Trends itself is relative (0-100); use a keyword volume
  API instead.
- **No "trending now" lists by country in V1.**
- **No related topics.** This Actor returns related *queries* (top and rising); the related-
  topics widget is not exposed by the endpoints it calls.
- **A period longer than 5 years comes back at monthly resolution** — decided by Google, not by
  this Actor.
- **Beyond 100 keywords, split into several runs.** Two runs' scales are not comparable with
  each other unless they reuse the same `scaleReference` keyword, which makes their
  `valueVsReference` numbers comparable across runs.

### En français

Comparer jusqu'à 100 mots-clés Google Trends sur une seule échelle 0-100, en chaînant les
requêtes autour d'un terme d'ancrage choisi automatiquement. Cas d'usage n°1 : classer 50 idées
de contenu par intérêt relatif sans retoucher les chiffres bruts de Google, non comparables
entre eux. Prix : $4 pour 1 000 séries de mots-clés (palier Bronze), $6 au palier gratuit.

### Other zerofail Actors

[**Google Hotels Scraper**](https://apify.com/zerofail/google-hotels-scraper) — hotel listings
and prices, verified page by page rather than trusted from a feed.

### Development

```sh
uv sync && uv run pytest -q     # V1
apify run                       # V3, with storage/key_value_stores/default/INPUT.json
```

Merging to `main` deploys (`docs/DEPLOY.md`). Never run `apify push` by hand.

# Actor input Schema

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

The keywords to compare, brought onto one 0-100 scale. Duplicates are removed.

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

Google Trends time range. Google decides the resolution from this value, and these are the resolutions it really returns (measured 2026-11-14): one point every 8 minutes for the past day, hourly for 7 days, daily for 1 and 3 months, weekly for 12 months AND for 5 years, monthly for "2004 to now". Pick "custom" and fill in "customTimeRange" to set your own dates; the two always travel together, and one without the other stops the run rather than measuring another period.

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

Only used when "timeframe" is "custom". Two dates separated by a space, e.g. "2024-01-01 2024-12-31". Filling this in while "timeframe" is not "custom" stops the run with an explicit error instead of quietly measuring another period. Google decides the resolution from the length: measured 2026-11-14, 40 days and 8 months both answer daily.

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

Country or region code (e.g. FR, US-CA). Empty means worldwide.

## `includePartialLastPoint` (type: `boolean`):

Off by default, and that is deliberate. The last point of every range covers a period that has not finished yet, so it is not comparable with the others: measured on 2026-11-14 it sat up to 20% below the point before it on the daily and weekly ranges, and 20% ABOVE on the 8-minute one. Leaving it in would move the peaks and averages of every keyword with no field saying why. Turn it on to get the running period, flagged isPartial. Either way the run summary reports partialPointDropped.

## `scaleReference` (type: `string`):

The keyword every other one is measured against. Must be one of the keywords above. Chosen automatically when empty.

## `includeRegionBreakdown` (type: `boolean`):

One extra request per keyword, and one extra charged event per keyword (see Pricing). Region values are relative WITHIN the keyword, not on the run's common scale, and the row says so. The granularity (country, region/state, or metro) is decided by Google from "geo" alone, worldwide/country/sub-region — there is no separate control for it; the dataset's regionResolution field says what Google used.

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

One extra request per keyword, and one extra charged event per keyword (see Pricing). Off by default so the default run stays fast and cheap. Rising queries marked "Breakout" are flagged with isBreakout = true. Also required for monitor mode to report newly rising queries: with this off, monitor mode never reports them, even though it still reports interest changes.

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

Restricts interest to one Google Trends category. 0 = all categories. Examples: 7 Finance, 5 Computers & Electronics, 71 Food & Drink, 20 Sports.

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

Affects the wording Google returns, not the numbers. e.g. en-US, fr, de, es.

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

Google's "tz" parameter. Measured on 2026-11-14: it changes only the labels Google prints, and only on hourly ranges — the data itself does not move. Two identical runs at 0 and at -300 returned byte-identical timestamps. Dates in the output are always UTC, so a run is reproducible whatever this is. 0 by default.

## `monitorMode` (type: `boolean`):

Report only the keywords whose interest moved since the last run with the same tracking key.

## `minChangePct` (type: `integer`):

A keyword must move strictly more than this to be reported in monitoring mode.

## `trackingKey` (type: `string`):

Names the comparison across runs. Derived from the keywords, period, region and category when left empty.

## `debug` (type: `boolean`):

Stores each raw response under a raw-\* key, for support. Off by default: the answers are large and nothing in them is needed to read the dataset.

## Actor input object example

```json
{
  "keywords": [
    "asana",
    "trello",
    "monday.com",
    "notion",
    "clickup",
    "jira",
    "basecamp",
    "wrike",
    "smartsheet",
    "airtable",
    "todoist",
    "microsoft planner"
  ],
  "timeframe": "today 12-m",
  "customTimeRange": "",
  "geo": "US",
  "includePartialLastPoint": false,
  "includeRegionBreakdown": false,
  "includeRelatedQueries": false,
  "category": 0,
  "language": "en-US",
  "timezoneOffsetMinutes": 0,
  "monitorMode": false,
  "minChangePct": 0,
  "debug": false
}
```

# 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 = {
    "keywords": [
        "asana",
        "trello",
        "monday.com",
        "notion",
        "clickup",
        "jira",
        "basecamp",
        "wrike",
        "smartsheet",
        "airtable",
        "todoist",
        "microsoft planner"
    ],
    "timeframe": "today 12-m",
    "geo": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("zerofail/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": [
        "asana",
        "trello",
        "monday.com",
        "notion",
        "clickup",
        "jira",
        "basecamp",
        "wrike",
        "smartsheet",
        "airtable",
        "todoist",
        "microsoft planner",
    ],
    "timeframe": "today 12-m",
    "geo": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("zerofail/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": [
    "asana",
    "trello",
    "monday.com",
    "notion",
    "clickup",
    "jira",
    "basecamp",
    "wrike",
    "smartsheet",
    "airtable",
    "todoist",
    "microsoft planner"
  ],
  "timeframe": "today 12-m",
  "geo": "US"
}' |
apify call zerofail/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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