# Google Trends Scraper & Keyword Monitor (`magenta_courser/google-trends-scraper-monitor`) Actor

Enter keywords, get Google Trends interest over time, related queries and interest by region as flat rows, plus one summary row per keyword: latest value, change vs previous period, change since your last run, spike flag. No browser. Pay per keyword that returns data; no start fee.

- **URL**: https://apify.com/magenta_courser/google-trends-scraper-monitor.md
- **Developed by:** [SUNGHWAN CHO](https://apify.com/magenta_courser) (community)
- **Categories:** SEO tools, Marketing, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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 & Keyword Monitor | Interest Over Time, Related Queries, Change Since Last Run (2026)

**Languages:** English · [한국어](#korean)

[![$0.005 per keyword with data: Google Trends as flat JSON rows, with the change since your last run](https://raw.githubusercontent.com/experimory-crypto/naver-map-scraper-examples/main/assets/hero-google-trends-scraper-monitor.png)](https://apify.com/magenta_courser/google-trends-scraper-monitor)

Enter **a list of keywords** and get **Google Trends data as flat JSON rows**: interest over time (0-100), top and rising related queries, interest by region, and one summary row per keyword with the latest value, the change versus the previous period, the peak, and the change and spike flag since your last run. No Google account, no browser, no proxy setup.

It is built for people who look up the same keywords again and again: SEO and content teams, e-commerce sourcing, market researchers, n8n or Make reports, and AI agents that need to know whether a keyword is rising.

> **Free plan:** Apify's $5 monthly credit covers about 1,000 keyword lookups with this Actor.

### Why choose this Actor?

**$0.005 per keyword, whatever you ask for.**<br>
You pay one `keyword` event for each keyword and geo that completes with data. The time series, related queries and regions are all included, there is no start fee, and dataset rows are not charged. A 5-year series costs the same as a 30-day one.

**Failed and empty keywords are free.**<br>
Keywords that end as `failed`, `partial`, `budgetLimited` or `notStarted`, and keywords Google has no data for, are stored with their status and not charged.

**Change since your last run, on one scale.**<br>
Google rescales every response, so yesterday's 42 and today's 42 are not the same number. The Actor remembers each keyword's last value and reads the value for that same moment out of today's series (`valueAtPreviousRun`), so `changeSinceLastRun` compares like with like.

**Rate limits are handled inside the run.**<br>
Each keyword starts on a new proxy session. A request Google refuses (HTTP 429) is retried alone, and a keyword that still fails is tried once more at the end of the run.

**A status for every keyword.**<br>
Each summary row has `status` and `stopReason`. If Google changes its response format, the keyword is reported as `unexpectedResponse` instead of being stored as broken data.

**Measured, not estimated.** One keyword with all three parts gave 202 rows (93 time points, 45 related queries, 63 regions, 1 summary) in 18 seconds at 256 MB, with 5 requests and no retries, for one $0.005 event (run `ixuhY8oW1BcVDH6jl`, build 0.1.13, 2026-11-15).

### Quick start

One keyword, worldwide, past 90 days. This is the default input and costs $0.005 at the Free-plan price.

```json
{
  "keywords": ["bitcoin"]
}
```

[Open the Actor](https://apify.com/magenta_courser/google-trends-scraper-monitor), enter keywords, pick a country and a time range, and click **Start**. Only `keywords` is required. Export the dataset as JSON, CSV or Excel.

#### Copy to your AI assistant

Paste this into ChatGPT, Claude, Cursor or another assistant so it can call the Actor for you:

```text
Use the Apify Actor magenta_courser/google-trends-scraper-monitor to get Google Trends data for keywords.

Input (JSON): "keywords" is a list of search terms in any language (required). Optional: "geo" ("worldwide" by default, or ISO country codes in one string such as "US" or "US,KR,JP"; not country names), "timeRange" (one of "now 1-H", "now 4-H", "now 1-d", "now 7-d", "today 1-m", "today 3-m" (default), "today 12-m", "today 5-y", "all"), "include" (array of "interestOverTime", "relatedQueries", "interestByRegion"; [] returns only one summary row per keyword), "compareMode" (true puts up to 5 keywords on one shared scale), "customTimeRange" ("YYYY-MM-DD YYYY-MM-DD"), "category" (Google Trends category ID as a string, "0" = all).

Output: dataset rows with a "type" field. One "keywordSummary" row per keyword and geo has status, stopReason, hasData, charged, latestValue (0-100), latestTime, avg7Days, avg30Days, changeVsPreviousPeriodPct, peakValue, peakTime, changeSinceLastRun, changeSinceLastRunPct, spike, topRisingQuery, topRegionName. "timelinePoint" rows have time and value. "relatedQuery" rows have kind (top or rising), rank, query, value, isBreakout. "regionInterest" rows have rank, regionCode, regionName, value. Missing values are null. Values are relative interest (0-100), not search volume.

Run it through the Apify API: POST https://api.apify.com/v2/acts/magenta_courser~google-trends-scraper-monitor/run-sync-get-dataset-items with my Apify token as a Bearer token and the input as the JSON body. Or connect the MCP server https://mcp.apify.com?tools=magenta_courser/google-trends-scraper-monitor.

Price: $0.005 per keyword and geo that returns data (Free plan). Read "status" and "hasData" before using a value. To say which of several keywords is searched more, set "compareMode": true.
```

#### Use it over MCP

Add this server to Claude Desktop, Cursor, VS Code or any MCP client, authenticated with your Apify token:

```text
https://mcp.apify.com?tools=magenta_courser/google-trends-scraper-monitor
```

The agent only has to fill `keywords`; everything else has a default. With `"include": []` it gets one small summary row per keyword.

### Key features

- **Three data types in one run.** Interest over time, related queries (up to 25 top and 25 rising per keyword) and interest by region, selected with `include`.
- **A summary row per keyword.** Latest value, 7-day and 30-day averages, change versus the previous period, peak, top rising query, top region.
- **Change since last run and spike flag.** `changeSinceLastRun`, `changeSinceLastRunPct` and `spike`, kept in a named history store in your account.
- **New rising queries.** With a history, each rising query has `isNewSinceLastRun`, and the summary has `newRisingQueryCount`.
- **Nine time ranges plus custom dates**, from the past hour to 2004 - present.
- **Any country, several at once.** `worldwide`, a country code, a region code such as `US-CA`, or several countries in one string.
- **Compare mode.** Up to 5 keywords on one shared scale, as on the Google Trends website.
- **25 top-level categories** to narrow an ambiguous word such as "apple".
- **Keywords in any language.** Korean, Japanese and Chinese keywords were part of the tests.
- **Unfinished last point kept apart.** Google's partial last point is stored as `partialValue` and never used for averages, changes or the peak.
- **Clean stop at your cost limit.** A keyword is only fetched when it can still be charged; the rest are marked `budgetLimited`.

### How to scrape Google Trends

#### Monitor keywords every day

Schedule this input once a day. From the second run on, every summary row carries the change since the previous run. `다이소` is Daiso, a Korean retail chain; keywords can be in any language.

```json
{
  "keywords": ["bitcoin", "nvidia", "다이소"],
  "geo": "US",
  "timeRange": "today 3-m",
  "include": [],
  "historyStoreName": "my-brand-keywords-daily"
}
```

#### Find rising related queries for content ideas

```json
{
  "keywords": ["protein powder", "creatine"],
  "geo": "US",
  "timeRange": "today 1-m",
  "include": ["relatedQueries"]
}
```

#### Compare brands on one scale

Up to 5 keywords share one 0-100 scale. With more than 5, the list is split into groups of 5 in list order, and values from different groups are not comparable.

```json
{
  "keywords": ["chatgpt", "gemini", "claude"],
  "geo": "US",
  "timeRange": "today 12-m",
  "compareMode": true,
  "include": ["interestOverTime"]
}
```

#### Several countries with a regional breakdown

Every keyword is looked up, and billed, once per country: 2 keywords in 3 countries are 6 events. `올리브영` is Olive Young, a Korean beauty retailer; category `44` is Beauty & Fitness.

```json
{
  "keywords": ["k-beauty", "올리브영"],
  "geo": "US,JP,KR",
  "category": "44",
  "include": ["interestOverTime", "interestByRegion"]
}
```

#### A fixed date range

`customTimeRange` overrides `timeRange`.

```json
{
  "keywords": ["air fryer"],
  "geo": "GB",
  "customTimeRange": "2026-01-01 2026-06-30"
}
```

#### Hourly spike alerts

Hourly points for the past 7 days, summary rows only. Schedule it every hour and alert on `spike: true`.

```json
{
  "keywords": ["nvidia", "tesla"],
  "geo": "US",
  "timeRange": "now 7-d",
  "include": [],
  "spikeThresholdPct": 100,
  "historyStoreName": "hourly-spike-watch"
}
```

### Input parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `keywords` | array of strings | required | Search terms in any language, one per item, as people type them into Google. Up to 100 characters each; duplicates are removed. |
| `geo` | string | `worldwide` | `worldwide` or a two-letter ISO country code in upper case (`US`, `GB`, `DE`, `KR`, `JP`, `TW`). Several countries: one string, `"US,KR,JP"`. A region code such as `US-CA` also works. Country names are not accepted. |
| `timeRange` | string | `today 3-m` | `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`. |
| `include` | array of strings | `["interestOverTime"]` | Detail rows to output: `interestOverTime`, `relatedQueries`, `interestByRegion`. The summary row is always output; `[]` gives summary rows only. |
| `compareMode` | boolean | `false` | `false`: each keyword has its own 0-100 scale. `true`: keywords are sent in groups of up to 5 and share one scale. |
| `customTimeRange` | string | — | `"YYYY-MM-DD YYYY-MM-DD"` (start, space, end). The start must be before the end. Overrides `timeRange`. |
| `category` | string | `"0"` | Google Trends top-level category ID, for example `"7"` Finance, `"18"` Shopping, `"71"` Food & Drink, `"44"` Beauty & Fitness, `"5"` Computers & Electronics, `"67"` Travel. |
| `historyStoreName` | string | `google-trends-monitor-history` | Key-value store in your account that remembers each keyword's last value. Letters, digits and hyphens, 3-63 characters. `""` turns the comparison off. |
| `spikeThresholdPct` | integer | `50` | 1 to 1000. `spike` is `true` when the latest value is at least this many percent, and at least 10 points, above the baseline. |
| `proxyMode` | string | `auto` | `auto`: datacenter proxies first, residential for retries and rate-limited stretches. `datacenter` or `residential`: that type only. |
| `maxRequests` | integer | automatic | Minimum 10. Upper limit of HTTP requests in the run, retries included. Empty means about 3 times what the keywords need. |
| `proxyConfiguration` | object | — | Advanced. Only used when you pick Apify Proxy groups or enter your own proxy URLs; it then replaces `proxyMode`. |

#### Time range and resolution

| `timeRange` | Covers | One point per |
|---|---|---|
| `now 1-H`, `now 4-H` | Past hour, past 4 hours | Minute |
| `now 1-d` | Past day | 8 minutes |
| `now 7-d` | Past 7 days | Hour |
| `today 1-m`, `today 3-m` | Past 30 days, past 90 days | Day |
| `today 12-m`, `today 5-y` | Past 12 months, past 5 years | Week |
| `all` | 2004 - present | Month |

#### How "change since last run" works

With `historyStoreName` set (it is by default), the Actor stores the latest complete point of every keyword + geo + time range + category. On the next run it reports:

- `previousRunAt` and `previousLatestValue`: what the last run saw, on the last run's scale.
- `valueAtPreviousRun`: the value for that same point in **today's** series.
- `changeSinceLastRun` and `changeSinceLastRunPct`: `latestValue` minus `valueAtPreviousRun`, on today's scale.
- `spike`: `true` when the latest value is at least `spikeThresholdPct` percent and at least 10 points above that baseline. On a first run the baseline is the average of the previous period (`spikeBasis: "previousPeriod"`).

The baseline moves only after a keyword's rows were stored, so a failed run does not hide a change. Runs with the same store name share one history; use different names for separate schedules. If the history store cannot be opened, the run continues without the comparison and reports `historyAvailable: false` in `RUN_SUMMARY`.

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

One dataset. The `type` field tells the rows apart. Numbers are numbers, missing values are `null`, times are ISO 8601 in UTC.

Every row has `keyword`, `geo`, `timeRange`, `category`, `url` (the same query on the Google Trends website), `scrapedAt`, `source` (`google_trends`) and `schemaVersion` (`1`).

**Keyword summary rows** (`"type": "keywordSummary"`, one per keyword and geo, always output):

| Field | Type | Description |
|---|---|---|
| `status` | string | `completed`, `partial`, `failed`, `budgetLimited` or `notStarted`. |
| `stopReason`, `errorMessage` | string | `completed`, `noData`, `rateLimited`, `invalidRequest`, `unexpectedResponse`, `httpError`, `networkError`, `chargeLimitReached`, `requestBudget`, `timeLimit`, `blocked`, `datasetWriteFailed`. |
| `charged`, `hasData` | boolean | `charged` is `true` only when `status` is `completed` and `hasData` is `true`. |
| `scale`, `comparedWith` | string | `single` or `compared`; in compare mode, the other keywords of the group. |
| `pointCount`, `resolution` | number / string | Points in the series and their step: `minute`, `hour`, `day`, `week` or `month`. |
| `latestValue`, `latestTime` | number / string | Latest complete point (0-100) and its time. |
| `partialValue`, `partialTime` | number / string | Google's unfinished last point, kept separate. |
| `avg7Days`, `avg30Days` | number | `null` when the series is shorter than 7 or 30 days. |
| `comparePeriod`, `changeVsPreviousPeriodPct` | string / number | Mean of the last period versus the period before it. The period follows the length of the series: `15m`, `1h`, `4h`, `1d`, `7d`, `28d`, `91d` or `365d`. |
| `peakValue`, `peakTime` | number / string | Peak of the series. |
| `previousRunAt`, `previousLatestValue`, `valueAtPreviousRun` | string / number | See "How change since last run works". `null` on a first run. |
| `changeSinceLastRun`, `changeSinceLastRunPct` | number | Change on today's scale; `null` on a first run. |
| `spike`, `spikeBasis` | boolean / string | Spike flag and its baseline: `previousRun` or `previousPeriod`. |
| `relatedTopCount`, `relatedRisingCount`, `breakoutQueryCount` | number | Filled with `relatedQueries`. |
| `topRisingQuery`, `topRisingQueryValue`, `newRisingQueryCount` | string / number | Filled with `relatedQueries`. `newRisingQueryCount` needs an earlier run that also had related queries. |
| `regionCount`, `topRegionName` | number / string | Filled with `interestByRegion`. |
| `interestOverTimeStatus`, `relatedQueriesStatus`, `interestByRegionStatus` | string | `ok`, `failed`, `notAvailable`, `notStarted` or `notRequested` per part. |
| `requests`, `retries` | number | HTTP requests used for this keyword. |

**Timeline rows** (`"type": "timelinePoint"`, with `interestOverTime`): `time`, `value` (0-100), `hasData` (`false` where Google has not enough data; `value` is then 0, as on Google's chart), `isPartial` (`true` for the unfinished last point), `scale`, `comparedWith`.

**Related query rows** (`"type": "relatedQuery"`, with `relatedQueries`): `kind` (`top` or `rising`), `rank`, `query`, `value` (0-100 for top; growth in percent for rising), `formattedValue` (Google's label, such as `+4,200%` or `Breakout`), `isBreakout`, `isNewSinceLastRun` (`null` for top queries and when there is no earlier rising list), `queryUrl`.

**Region rows** (`"type": "regionInterest"`, with `interestByRegion`): `rank`, `regionCode`, `regionName` (English), `value`. Countries for `worldwide`, states or provinces for a country. Regions without enough data are left out.

**Run summary.** The key-value store record `RUN_SUMMARY` lists every keyword with `status`, `stopReason`, `charged`, requests and retries, plus totals, rows stored per type, proxy fallbacks, `historyAvailable` and whether your charge limit was reached. The **Output** tab has five table views: All rows, Keyword summaries, Interest over time, Related queries and Interest by region.

#### Output example: keyword summary

From run `ixuhY8oW1BcVDH6jl` (2026-11-15, build 0.1.13), input `{"keywords": ["bitcoin"], "include": ["interestOverTime", "relatedQueries", "interestByRegion"]}` with the default history store. The previous run with that store was three days earlier, so the change fields are filled. Unedited.

```json
{
  "type": "keywordSummary",
  "keyword": "bitcoin",
  "geo": "worldwide",
  "timeRange": "today 3-m",
  "category": 0,
  "scale": "single",
  "comparedWith": null,
  "status": "completed",
  "stopReason": "completed",
  "errorMessage": null,
  "charged": true,
  "hasData": true,
  "pointCount": 93,
  "resolution": "day",
  "latestValue": 37,
  "latestTime": "2026-11-14T00:00:00.000Z",
  "partialValue": 41,
  "partialTime": "2026-11-15T00:00:00.000Z",
  "avg7Days": 30.29,
  "avg30Days": 27.5,
  "comparePeriod": "7d",
  "changeVsPreviousPeriodPct": 8.72,
  "peakValue": 100,
  "peakTime": "2026-09-21T00:00:00.000Z",
  "previousRunAt": "2026-11-12T03:22:18.956Z",
  "previousLatestValue": 27,
  "valueAtPreviousRun": 27,
  "changeSinceLastRun": 10,
  "changeSinceLastRunPct": 37.04,
  "spike": false,
  "spikeBasis": "previousRun",
  "relatedTopCount": 25,
  "relatedRisingCount": 20,
  "breakoutQueryCount": 2,
  "topRisingQuery": "cách mua bitcoin trên binance",
  "topRisingQueryValue": 15700,
  "newRisingQueryCount": null,
  "regionCount": 63,
  "topRegionName": "Switzerland",
  "interestOverTimeStatus": "ok",
  "relatedQueriesStatus": "ok",
  "interestByRegionStatus": "ok",
  "requests": 5,
  "retries": 0,
  "url": "https://trends.google.com/trends/explore?date=today%203-m&q=bitcoin&hl=en-US",
  "scrapedAt": "2026-11-15T13:53:32.570Z",
  "source": "google_trends",
  "schemaVersion": 1
}
```

`spike` is `false` here because a rise from 27 to 37 is +37%, below the default 50% threshold. `newRisingQueryCount` is `null` because the earlier run had not asked for related queries.

The rescaling is visible in the run before it (`xUNjkcuE5Oso7zY4a`, 2026-11-12): the row had `previousLatestValue: 25` but `valueAtPreviousRun: 27` and `latestValue: 27`, so `changeSinceLastRun` was 0, not +2.

#### Output example: timeline point

Same run, the unfinished last point of the series.

```json
{
  "type": "timelinePoint",
  "keyword": "bitcoin",
  "geo": "worldwide",
  "timeRange": "today 3-m",
  "category": 0,
  "scale": "single",
  "comparedWith": null,
  "time": "2026-11-15T00:00:00.000Z",
  "value": 41,
  "hasData": true,
  "isPartial": true,
  "url": "https://trends.google.com/trends/explore?date=today%203-m&q=bitcoin&hl=en-US",
  "scrapedAt": "2026-11-15T13:53:32.570Z",
  "source": "google_trends",
  "schemaVersion": 1
}
```

#### Output example: related query

Same run, the third rising query.

```json
{
  "type": "relatedQuery",
  "keyword": "bitcoin",
  "geo": "worldwide",
  "timeRange": "today 3-m",
  "category": 0,
  "kind": "rising",
  "rank": 3,
  "query": "cách mua usdt binance",
  "value": 4200,
  "formattedValue": "+4,200%",
  "isBreakout": false,
  "isNewSinceLastRun": null,
  "queryUrl": "https://trends.google.com/trends/explore?q=c%C3%A1ch+mua+usdt+binance&date=today+3-m",
  "url": "https://trends.google.com/trends/explore?date=today%203-m&q=bitcoin&hl=en-US",
  "scrapedAt": "2026-11-15T13:53:32.570Z",
  "source": "google_trends",
  "schemaVersion": 1
}
```

#### Output example: region

Same run, rank 1 of 63 regions.

```json
{
  "type": "regionInterest",
  "keyword": "bitcoin",
  "geo": "worldwide",
  "timeRange": "today 3-m",
  "category": 0,
  "rank": 1,
  "regionCode": "CH",
  "regionName": "Switzerland",
  "value": 100,
  "url": "https://trends.google.com/trends/explore?date=today%203-m&q=bitcoin&hl=en-US",
  "scrapedAt": "2026-11-15T13:53:32.570Z",
  "source": "google_trends",
  "schemaVersion": 1
}
```

### Advanced usage

#### A wide table in pandas

```python
import pandas as pd
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("magenta_courser/google-trends-scraper-monitor").call(run_input={
    "keywords": ["bitcoin", "nvidia"],
    "geo": "US",
    "timeRange": "today 3-m",
    "include": ["interestOverTime", "relatedQueries"],
})
rows = client.dataset(run["defaultDatasetId"]).list_items().items
summaries = [r for r in rows if r["type"] == "keywordSummary"]
timeline = [r for r in rows if r["type"] == "timelinePoint"]
wide = pd.DataFrame(timeline).pivot(index="time", columns="keyword", values="value")
```

#### Moving from pytrends

`build_payload(kw_list, timeframe, geo, cat)` maps to `keywords`, `timeRange` (same strings), `geo` and `category`. `interest_over_time()`, `related_queries()` and `interest_by_region()` map to the three `include` values, and 5 keywords in one `kw_list` to `compareMode: true`. `related_topics()`, `trending_searches()` and `suggestions()` have no equivalent here.

#### Separate histories for separate schedules

A daily schedule and an hourly schedule over the same keywords use different time ranges, so they already keep separate baselines. Two schedules with the same keywords, geo, time range and category should use different `historyStoreName` values, or each will see the other's run as "the last run".

#### One call from the command line

```bash
curl -X POST "https://api.apify.com/v2/acts/magenta_courser~google-trends-scraper-monitor/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["bitcoin", "nvidia"], "geo": "US", "timeRange": "now 7-d", "include": []}'
```

### How much does it cost to scrape Google Trends?

Pay per event, no subscription. Prices below are the Free-plan prices, in effect since 2026-11-11; paid Apify plans get the discount shown.

| Event | Price | Bronze / Silver / Gold and above | When |
|---|---|---|---|
| `keyword` | **$0.005** per keyword and geo | $0.00475 / $0.0045 / $0.004 | Once for each keyword and geo that completed and returned data. |

There is no start fee and no charge per dataset row. Proxy traffic and retries are included. The price is the same for every time range and every combination of `include`.

Not charged: keywords with status `failed`, `partial`, `budgetLimited` or `notStarted`; keywords that complete without data (`stopReason: "noData"`); summary rows and the run summary.

Worked examples at the Free-plan price:

| Job | Events | Cost |
|---|---|---|
| 1 keyword, once | 1 | **$0.005** |
| 5 keywords, every day for 30 days | 150 | **$0.75** |
| 20 keywords, once a week for 4 weeks | 80 | **$0.40** |
| 5 keywords in 3 countries, every day for 30 days | 450 | **$2.25** |
| 100 keywords, every day for 30 days | 3,000 | **$15.00** |

In compare mode every keyword of a completed group that has data is one event. Set **Maximum cost per run** in the console to cap a run: the Actor only fetches keywords that still fit the budget and marks the rest `budgetLimited`. `RUN_SUMMARY.totals.charged` equals the number of summary rows with `charged: true`.

### Scheduling and integrations

- **Schedules.** In Apify Console, create a daily, weekly or hourly schedule. Keep the same `historyStoreName` so each run is compared with the one before.
- **Alerts.** In n8n, Make or Zapier, run the Actor through the Apify integration, keep rows where `type` is `keywordSummary`, and branch on `spike` being `true`.
- **Sheets and BI tools.** Export the dataset as CSV or Excel, or use the "Keyword summaries" view for one line per keyword.
- **API clients.** Any HTTP client works; official clients exist for Python and JavaScript (`apify-client`).

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('magenta_courser/google-trends-scraper-monitor').call({
    keywords: ['bitcoin', 'nvidia'],
    geo: 'US',
    timeRange: 'today 3-m',
    include: [],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.keyword, r.status, r.latestValue, r.changeSinceLastRunPct, r.spike]));
```

### FAQ

**Is this the official Google Trends API? Do I need a Google account or my own proxies?**
No. The Actor reads the public data behind the Google Trends website and is not affiliated with Google. You need only an Apify account; proxies are included in the price.

**Are the values search volumes?**
No. Google Trends publishes relative interest from 0 to 100. By default 100 is the keyword's own peak within the chosen geo and time range, so a 60 for "bitcoin" and a 60 for "nvidia" say nothing about which is searched more. Use `compareMode` for that, with up to 5 keywords.

**Why is `latestValue` different from what I saw yesterday for the same day?**
Google rescales the series on every request, and the scale moves when a new peak appears. Compare with `valueAtPreviousRun`, which is read from today's series.

**What happens when Google rate-limits a request?**
A refused request (HTTP 429) is retried alone, on a new proxy session and after a pause; a keyword that still fails is tried once more at the end of the run, without fetching again what was already saved. In `auto` mode retries go through residential proxies. After 30 refused requests in a row the run stops. A keyword that still fails is `failed` with `stopReason: "rateLimited"` and is not charged; `partial` means the time series was saved but related queries or regions kept failing, and is not charged either. The run itself fails only when no keyword could be saved.

**How reliable is it?**
On one day of cloud tests (2026-10-02), a run of 120 keywords across 9 geos and 7 time ranges completed 120 of 120 lookups (19 needed a retry) in 7 minutes 18 seconds, and seven later runs completed 118 of 118. That is a one-day sample, not a promised success rate; Google can tighten its limits at any time.

**How fast is it, and how many keywords fit in one run?**
Four keywords are fetched in parallel. In the same tests a run with one keyword took 16 to 24 seconds and a run with 60 keywords about 3 minutes 20 seconds. There is no fixed keyword limit; the largest run tested had 120 keywords. Split longer lists into several runs.

**Can I monitor hourly?**
Yes. Use `now 1-d` or `now 7-d` with an hourly schedule and one `historyStoreName`.

**Why does a keyword have `hasData: false`?**
Google has too little search data for that keyword in that geo and time range. This is common for low-volume keywords and short time ranges. The row is stored with `stopReason: "noData"` and is free.

**Can I compare more than 5 keywords on one scale?**
No. Google allows 5 keywords per comparison. With `compareMode` and more keywords, the list is split into groups of 5, each with its own scale.

### More Actors from this maintainer

| Actor | What you put in → what you get |
|---|---|
| [Naver DataLab Search Trends Scraper](https://apify.com/magenta_courser/naver-datalab-trends-scraper) | Korean keywords → Naver search interest (0-100) per day, week or month. The Korean counterpart of this Actor. |
| [Naver Search Scraper](https://apify.com/magenta_courser/naver-search-scraper) | Keywords → the Naver search page as flat rows, with related keywords. |
| [Naver Shopping Scraper & Keyword Rank Tracker](https://apify.com/magenta_courser/naver-shopping-rank-tracker) | Shopping keywords → ranked products with price, reviews and rank change. |
| [Naver AI Briefing Scraper](https://apify.com/magenta_courser/naver-ai-briefing-scraper) | Search queries → Naver's AI answer and its cited sources. |
| [Polymarket & Kalshi Scraper](https://apify.com/magenta_courser/prediction-markets) | Market filters → one row per outcome with probability and recent change. |
| [YouTube Video Tracker](https://apify.com/magenta_courser/youtube-video-tracker) | Video or channel links → views, likes and comments with the change since your last run. |
| [TikTok Video Tracker](https://apify.com/magenta_courser/tiktok-video-tracker) | Video links → plays, likes and shares with the change since your last run. |
| [Workday, Greenhouse, Lever & Ashby Jobs Scraper](https://apify.com/magenta_courser/workday-greenhouse-lever-ashby-jobs-scraper) | Company job boards → one row per open job, with new and changed flags. |

### 한국어 안내 (Korean)

키워드 목록을 넣으면 구글 트렌드 데이터가 평평한 행으로 나옵니다. 시간별 관심도(`timelinePoint`), 상위·급상승 관련 검색어(`relatedQuery`), 지역별 관심도(`regionInterest`)와 함께, 키워드마다 최신 값·7일과 30일 평균·직전 기간 대비 변화율·최고점·지난 실행 대비 변화와 급등 표시(`spike`)를 담은 요약 행(`keywordSummary`)이 붙습니다. 한국어 키워드와 `KR` 지역을 쓸 수 있고, 구글 계정이나 브라우저 없이 동작합니다. 요금은 데이터가 나온 키워드×국가 1건당 $0.005(Free 플랜 기준, 상위 플랜 할인)이며 시작 비용과 행당 요금은 없습니다. 실패·부분 수집·데이터 없음 키워드는 과금되지 않습니다. 값은 0~100의 상대 지수이고 검색량이 아니며, 구글이 요청마다 척도를 다시 잡으므로 지난 실행과 비교할 때는 `valueAtPreviousRun`을 기준으로 봐야 합니다. 절대 검색량, 관련 주제(related topics), 실시간 인기 검색어(Trending now), 이미지·뉴스·쇼핑·유튜브 검색, 하위 카테고리는 제공하지 않습니다. 한 척도로 비교할 수 있는 키워드는 구글 제한에 따라 5개까지입니다. 공식 API가 아니므로 구글이 응답 형식을 바꾸면 해당 키워드는 `unexpectedResponse`로 표시됩니다.

### Notes

- **Not offered:** absolute search volume, related topics (Google returned an empty list for them in our tests), "Trending now", Image, News, Shopping and YouTube search, and sub-categories (top-level categories only).
- **Values are sampled and rescaled by Google.** The same day can show a slightly different value on a later request.
- **Tested inputs** (2026-10-02): 10 geos including `worldwide`, `US`, `KR`, `JP` and `US-CA`, all nine time ranges, custom date ranges, all 25 top-level categories, and Korean, Japanese and Chinese keywords.
- **`datacenter` proxy mode** can be rate-limited on long keyword lists; `auto` is the recommended setting.
- **Public data only.** The Actor collects aggregated search interest. It does not log in to any account, does not collect personal data and does not solve captchas.
- Google Trends is a trademark of Google LLC. This Actor is an independent tool, not affiliated with or endorsed by Google. You are responsible for using the data in line with Google's terms and applicable law.

### Support

Missing a field, another input mode, a different output format? Tell us in the **Issues** tab with the run ID. We answer every issue.

# Actor input Schema

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

Search terms to look up on Google Trends, one per item, in any language. Example: \["bitcoin", "nvidia", "다이소"] (다이소 = Daiso, a Korean retail chain). Write the term as people type it into Google; do not add operators or quotes. Max 100 characters per keyword; duplicates are removed. Each keyword is looked up on its own 0-100 scale unless "Compare keywords" is on. You pay one "keyword" event per keyword and geo that completes with data.

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

Where the searches come from. "worldwide" (default) or a two-letter ISO country code in upper case: "US", "GB", "DE", "KR" (South Korea), "JP" (Japan), "TW" (Taiwan). Several countries: one string separated by commas, e.g. "US,KR,JP" - every keyword is then looked up (and billed) once per country. A region code such as "US-CA" (California) also works. Country names such as "Korea" are not accepted.

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

How far back to look. Use exactly one of: "now 1-H" (past hour), "now 4-H" (past 4 hours), "now 1-d" (past day), "now 7-d" (past 7 days), "today 1-m" (past 30 days), "today 3-m" (past 90 days, default), "today 12-m" (past 12 months), "today 5-y" (past 5 years), "all" (2004 - present). The range decides the resolution: past hour / 4 hours = per minute, past day = 8 minutes, past 7 days = hourly, past 30 / 90 days = daily, past 12 months / 5 years = weekly, all = monthly. For daily monitoring use "today 1-m" or "today 3-m"; for hourly monitoring "now 7-d".

## `include` (type: `array`):

Which detail rows to output, as an array. "interestOverTime" (default) = one row per point in time. "relatedQueries" = top and rising related searches (up to 25 each per keyword). "interestByRegion" = one row per country / region with data. Example: \["interestOverTime", "relatedQueries"]. The keywordSummary row (latest value, changes, spike flag) is always output; pass an empty array \[] to get only summary rows - the smallest output, good for AI agents. The price per keyword is the same whatever you include.

## `compareMode` (type: `boolean`):

false (default): every keyword gets its own 0-100 scale, where 100 is that keyword's own peak - use this for monitoring. true: keywords are sent to Google in groups of up to 5 (in list order) and share one scale, where 100 is the peak of the most searched keyword in the group - use this to see which keyword is searched more. Google allows at most 5 keywords per comparison; values from different groups, or from compare on and off, are not comparable.

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

Optional. Two dates as "YYYY-MM-DD YYYY-MM-DD" (start, space, end), for example "2026-01-01 2026-06-30". The start must be before the end. When set, it overrides "Time range".

## `category` (type: `string`):

Optional Google Trends category ID as a string, to narrow an ambiguous word such as "apple" or "jaguar". "0" = all categories (default). Examples: "7" Finance, "18" Shopping, "71" Food & Drink, "44" Beauty & Fitness, "5" Computers & Electronics, "67" Travel. Only the listed top-level categories are accepted.

## `historyStoreName` (type: `string`):

Name of the key-value store that remembers the latest value of every keyword, so the next run can report the change since your last run and flag spikes. Letters, digits and hyphens, 3-63 characters, e.g. "my-brand-keywords-daily". Runs that use the same name share one history; use different names for separate schedules. Set to an empty string "" to turn the comparison off. Default: "google-trends-monitor-history".

## `spikeThresholdPct` (type: `integer`):

The summary row gets spike = true when the latest value is at least this many percent - and at least 10 points - above the value at your last run (on a first run: above the previous period). Integer from 1 to 1000. Example: 50 flags a rise from 40 to 60 or more. Default 50.

## `proxyMode` (type: `string`):

"auto" (default, recommended): datacenter proxies first; retries and any rate-limited stretch go through residential proxies. "datacenter": datacenter proxies only - Google rate-limits a small proxy pool after about 100 keywords. "residential": every request through residential proxies. Proxy traffic is included in the price per keyword.

## `maxRequests` (type: `integer`):

Optional safety limit: the maximum number of HTTP requests in this run, retries included (integer, minimum 10, e.g. 200). Leave empty for an automatic limit of about 3x what the keywords need. Keywords that do not fit get status "budgetLimited" and are not charged.

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

Optional, advanced. Only used when you pick specific Apify Proxy groups or enter your own proxy URLs here; it then replaces "Proxy mode". Leave empty in normal use.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin"
  ],
  "geo": "worldwide",
  "timeRange": "today 3-m",
  "include": [
    "interestOverTime"
  ],
  "compareMode": false,
  "category": "0",
  "historyStoreName": "google-trends-monitor-history",
  "spikeThresholdPct": 50,
  "proxyMode": "auto"
}
```

# Actor output Schema

## `rows` (type: `string`):

Every row as dataset items. The "type" field tells them apart: keywordSummary, timelinePoint, relatedQuery, regionInterest.

## `summaries` (type: `string`):

The same dataset shown with the core columns of the keywordSummary rows (one per keyword and geo): status, latest value, changes, spike flag, charged.

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

Free key-value record: status, stop reason and charge flag for every keyword, totals (completed, noData, charged), request and retry counts, proxy fallback and charge limit.

# 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"
    ],
    "geo": "worldwide"
};

// Run the Actor and wait for it to finish
const run = await client.actor("magenta_courser/google-trends-scraper-monitor").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"],
    "geo": "worldwide",
}

# Run the Actor and wait for it to finish
run = client.actor("magenta_courser/google-trends-scraper-monitor").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"
  ],
  "geo": "worldwide"
}' |
apify call magenta_courser/google-trends-scraper-monitor --silent --output-dataset

```

## MCP server setup

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

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/xCij6QqRaie4fCEg9/builds/IIZcXO7xCRPagfdIf/openapi.json
