# Google Trends Scraper - Interest, Regions & Rising Queries (`mmdincer/google-trends-scraper-monitor`) Actor

Read Google Trends interest over time, by region, and related or rising queries for up to five terms. Compares many geos in one run. Rising-query alert mode writes only queries new since the saved run. Results as JSON, CSV or Excel. Access through API or MCP.

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

## Pricing

from $0.35 / 1,000 result rows

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

> 🔎 Looking for keyword suggestions instead of interest data? 👉 [Autocomplete Keyword Scraper](https://apify.com/mmdincer/autocomplete-keyword-scraper)

### 🤖 What does Google Trends Scraper do?

This Google Trends Scraper reads public Google Trends data for up to five terms and up to ten regions in one run. It writes interest over time, interest by subregion, related queries and rising queries into one dataset.

It can:

- **Compare one to five terms** in a single interest chart, so their values stay relative to the strongest term in that chart.
- **Check many regions** such as US, GB, DE, TR and IN, or WORLD, without starting a separate run for each country.
- **Return 90 days, 12 months, 5 years or the full 2004-onward history** for every term and region.
- **Add top and rising queries** for each term, with Google's score and a Breakout flag.
- **Add subregions** such as states, provinces or regions when you turn on the slower option.
- **Run a rising-query alert** that keeps a baseline per watchlist and writes only rising queries that were not in the saved run.

The Actor does not log in to a Google account. It reads the same public Trends pages and widget responses a browser uses.

### 💡 Why scrape Google Trends?

Google Trends shows what people search for more or less often over time. The values in a Google Trends comparison are relative, not absolute search volumes, but the direction is useful when you need to see demand move before it reaches a keyword tool.

- **Content and SEO planning.** Compare a topic with its alternatives in Google Trends and see which related queries are rising before they appear in a monthly keyword report.
- **Market research.** Check whether Google Trends interest in a product, brand or category is growing in the countries you sell to.
- **Newsroom and trend monitoring.** A schedule with rising-query alert mode turns this Google Trends Scraper into a low-noise feed of new breakout and rising queries.
- **Brand and campaign checks.** Watch a launch term in several regions and compare the shape of the interest curve, not only a single number.
- **Academic and data work.** Keep a dated record of Google Trends interest points and related queries for a fixed list of terms.

The Google Trends dataset is ordinary JSON, so a spreadsheet, a BI tool or an MCP client can read it without a second parsing step.

### 🚀 How to scrape Google Trends

1. Click **Try for free**.
2. Enter one to five **Search terms**. The sample uses `bitcoin`.
3. Set the **Regions**. The sample checks `US`; add more two-letter country codes or `WORLD` when you need them.
4. Pick a **Time range**. The sample uses the last 12 months, which gives weekly points.
5. Leave **Related and rising queries** on if you want the query rows.
6. Click **Run**.
7. Download the dataset as JSON, CSV or Excel, or read it through the API.

For a scheduled alert, set **Rising-query alert mode** to true and give the watchlist a name. The first run saves a baseline. Later runs write only rising queries that are not in that baseline, plus error and notice rows when something needs attention.

You can call the same input from the Apify API, a schedule, Make, Zapier or an MCP client.

### ⚠️ Limits

- **Five terms per comparison.** Google compares all terms on one relative scale. If you need comparable absolute-looking numbers, run one term per run instead of five.
- **Ten regions per run.** A run with five terms and ten regions is 50 term-region checks. Each dataset row written is a separate charged event, so a run that also returns related queries and subregions writes and charges more rows than it has checks. Start with one region while you tune the input.
- **Interest is relative.** A Google Trends value of 100 is the peak inside that comparison and window, not a count of searches. Do not add values from different Google Trends comparisons.
- **Google rate-limits.** Public Trends endpoints answer HTTP 429 when they see too many requests from one address. The Actor retries with backoff and uses the residential proxy group, which returned real rows in testing. `GOOGLE_SERP` does not work for trends.google.com. A direct local run can still be limited.
- **Cookie warm-up.** Trends needs a consent cookie and an NID cookie before its API answers. The Actor fetches the public explore page once per run to obtain them. If Google does not set the cookie, the run logs a warning and the retries decide the outcome.
- **Subregions are slower.** Each term needs one more request. The option is off in the sample.
- **Alert mode is deliberately quiet.** It writes only new rising queries after the baseline. A zero-row alert run is a valid result and explains itself in RUN_SUMMARY and the status message.
- **No private data.** The Actor does not read a Google account, a Search Console property or a paid Google Trends export.

### 💳 How much will it cost to scrape Google Trends?

Pay-per-event. The event names below are the keys in `pricing-ppe.json` and the strings passed to `Actor.charge`.

| Event name (`Actor.charge`) | Event title | When the code charges it | Price (USD) |
|---|---|---|---|
| `apify-actor-start` | Actor Start | Once when the Actor starts, on every tier | 0.0005 |
| `result-row` | Result row | Once for each dataset row written: an interest row, a related or rising query row, a subregion row or a rising-query alert row | 0.0005 FREE, 0.00045 BRONZE, 0.0004 SILVER, 0.00035 GOLD, PLATINUM and DIAMOND |

The actor charges per row, not per term and region. One term in one region with related queries on writes about 37 rows: one interest row plus the top and rising queries. At the FREE price that is about **$0.0185**, and **1,000 rows cost about $0.50 on FREE, $0.45 on BRONZE, $0.40 on SILVER and $0.35 on GOLD, PLATINUM or DIAMOND**. A run with five terms in ten regions writes many more rows, so watch the row count rather than the check count when you size a schedule.

Error rows, notice rows, an empty answer and any row skipped because the run reached its maximum charge are not charged. The run reads the affordable row count before each write, stops cleanly at the limit and logs it, and never writes a row it cannot bill. A related-queries request that fails after the interest row was read still writes only the interest row it charged for; the failure is an error row and is free.

### 📝 Input

| Field | Required | What the code does with it |
|---|---|---|
| Search terms (up to 5) | Yes | Sends one to five terms in one Google Trends comparison. Duplicates are removed. |
| Regions (up to 10) | Yes | Sends each term in each two-letter region, or in `WORLD`. |
| Time range | No | One of `now 7-d`, `today 1-m`, `today 3-m`, `today 12-m`, `today 5-y`, `all`. |
| Category | No | Google Trends category id, `0` for all categories. |
| Related and rising queries | No | Adds top and rising query rows for each term. |
| Interest by subregion, slower | No | Adds one row per subregion for each term. |
| Rising-query alert mode | No | Writes only rising queries that are new since the saved baseline. |
| Watchlist name | No | Keeps a separate baseline per name. |
| Proxy configuration | No | Apify Proxy settings. The default is the residential group. `GOOGLE_SERP` does not work for trends.google.com. |

A small full run:

```json
{
  "terms": ["bitcoin"],
  "geos": ["US"],
  "timeRange": "today 12-m",
  "includeRelatedQueries": true,
  "alertMode": false,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

A rising-query alert for two markets:

```json
{
  "terms": ["heat pump", "air conditioner"],
  "geos": ["DE", "NL"],
  "timeRange": "today 3-m",
  "alertMode": true,
  "monitorName": "hvac-europe"
}
```

### 📊 Output

One shortened interest row from a real run:

```json
{
  "recordType": "interest",
  "term": "bitcoin",
  "geo": "US",
  "geoName": "United States",
  "timeRange": "today 12-m",
  "category": 0,
  "points": [
    { "date": "2025-11-23", "value": 46, "hasData": true },
    { "date": "2025-11-30", "value": 50, "hasData": true }
  ],
  "average": 31.6,
  "latest": 24,
  "peak": 100,
  "changePercent": -47.8,
  "checkedAt": "2026-11-23T21:18:45.080Z",
  "charged": true,
  "chargeOutcome": "ignored"
}
```

The `chargeOutcome` field says `ignored` in a local run without pay-per-event. On the platform with PPE it is `succeeded`. The code writes the billing outcome for each Google Trends check rather than guessing it.

| Field | Meaning |
|---|---|
| `recordType` | `interest`, `relatedQuery`, `regionInterest`, `error` or `notice`. |
| `term`, `geo`, `geoName` | The comparison term and the region it was checked in. |
| `points` | One object per Google interval with `date`, `value` and `hasData`. |
| `average`, `latest`, `peak`, `changePercent` | Summary values from the points that have data. |
| `query`, `listType`, `score`, `isBreakout` | Query rows: the text, `top` or `rising`, Google's score, and whether Google printed Breakout. |
| `isNew` | Query rows: true when the query was not in the saved baseline. Null on a first run. |
| `regionCode`, `regionName`, `regionValue` | Subregion rows. |
| `errorKind`, `httpStatus`, `message` | Error and notice rows: what failed and why. |

### 🔌 Integrations and API

Run this Google Trends Scraper with the Apify API, a schedule, or the Apify MCP server. Apify can send the dataset to Make, Zapier or a webhook. The Actor uses the standard dataset and key-value store, so no custom integration is required.

The input object uses keys from `.actor/input_schema.json`. The slug is `mmdincer/google-trends-scraper-monitor`.

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('mmdincer/google-trends-scraper-monitor').call({
  terms: ['bitcoin'],
  geos: ['US'],
  timeRange: 'today 12-m',
  alertMode: false,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("mmdincer/google-trends-scraper-monitor").call(run_input={
    "terms": ["bitcoin"],
    "geos": ["US"],
    "timeRange": "today 12-m",
    "alertMode": False,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items))
```

For an alert, put the Actor on a daily schedule and connect a webhook to the run. A run report is also written to `RUN_SUMMARY` with checks, baselines, new rising queries, charges and warnings.

### ❓ FAQ

#### How do I scrape Google Trends without a Google account?

Keep the input public and leave the proxy default on. The Google Trends Scraper fetches the public explore page for its cookies, then reads the public Google Trends widget endpoints. It never asks for a Google email, password or cookie from you.

#### How many terms and regions can one run compare?

Google Trends accepts up to five terms and this input allows up to ten regions. That is 50 term-region checks in the worst case. The Actor charges per row written, not per check, so a run that returns related queries and subregions costs more than a run with those options off.

#### Why did Google Trends return HTTP 429?

Google rate-limits the public Trends endpoints by address. The Actor retries with exponential backoff and uses the residential proxy group. The GOOGLE_SERP proxy group does not work for trends.google.com and fails every request with a network error, so it is not the default. If every attempt is blocked, the run writes one error row per term and fails with the first message instead of pretending the result was empty.

#### Does rising-query alert mode report every query again?

No. The first Google Trends run saves top and rising queries for each term and region under the watchlist name. Later runs compare against that set and write only rising queries that were not there. Use a new watchlist name when you want a fresh Google Trends baseline.

#### Can I get absolute search volumes from Google Trends?

No. Google Trends returns a relative index from 0 to 100 inside each comparison and time window. The Google Trends Scraper reports that index and its summary values. It does not invent search volumes, and it warns you when a first point is zero, because a percent change from zero is undefined.

#### What happens when a term has no data?

The run writes a notice row for that term and region saying Google returned no usable points. That check is not charged. Other terms in the same run continue.

### ⚖️ Is it legal to scrape Google Trends?

This Actor reads public Google Trends pages and widget responses. It does not log in, does not use a private API key, and does not store personal data. Interest values and queries are aggregate search data.

Google's terms still apply to your use of the source. Rate limits are respected with retries and backoff, but you are responsible for the volume you request and for how you use the output. This is not legal advice.

Not affiliated with Google. Google and Google Trends are trademarks of Google LLC. Google does not endorse this Actor.

Apify's overview of web scraping and the law: <https://blog.apify.com/is-web-scraping-legal/>.

### 🔗 Related actors

| Actor | What it does |
|---|---|
| [Autocomplete Keyword Scraper](https://apify.com/mmdincer/autocomplete-keyword-scraper) | Reads Google, YouTube and Bing autocomplete suggestions for seed keywords. |
| [Similarweb Traffic Monitor](https://apify.com/mmdincer/similarweb-traffic-monitor) | Reads public Similarweb traffic estimates and month-over-month changes for a list of domains. |

# Changelog

This Actor's version history is a separate document: https://apify.com/mmdincer/google-trends-scraper-monitor/changelog.md

# Actor input Schema

## `terms` (type: `array`):

1 to 5 words or topics compared in one request, in the same order you want them returned. Google compares all five in one interest chart, so the values are relative to the strongest term. Use one term when you want comparable numbers across geos.

## `geos` (type: `array`):

ISO 3166-1 alpha-2 country codes such as US, GB, DE, TR, IN. Use WORLD for worldwide. Each term is checked in each region, so five terms and ten regions is 50 checks.

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

Google Trends window for the whole run. The sample uses the last 12 months, which gives weekly points.

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

Optional Google Trends category id. 0 is all categories. Common ids: 0 all, 3 business, 7 finance, 8 games, 12 law and government, 13 news, 16 shopping, 18 technology, 44 health, 45 travel, 71 food and drink. Leave 0 unless you need a narrower market.

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

Adds the top and rising queries for each term and region. Rising queries carry a score; Google prints Breakout when growth is above 5,000%. The sample leaves this on.

## `includeSubregions` (type: `boolean`):

Adds one row per subregion (state, province or region) for each term. This is an extra request per term and region. Leave it off for the quick run.

## `alertMode` (type: `boolean`):

Writes only rising queries that were not in the saved run for this watchlist, plus error rows. The first run saves a baseline and writes nothing else. Turn this on in a schedule. Leave it off for the sample so the run returns interest and query rows.

## `monitorName` (type: `string`):

Seen rising queries are stored per watchlist and per term, region and time range. Use a new name to start a fresh baseline without deleting the old one.

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

Google Trends rate-limits repeated requests from one address. The default is the Apify residential proxy group, which returned real Trends rows in testing. The GOOGLE_SERP group does not work for trends.google.com: every request ends in a network error. Direct requests often receive HTTP 429. A local run without an Apify token can set useApifyProxy to false.

## Actor input object example

```json
{
  "terms": [
    "bitcoin"
  ],
  "geos": [
    "US"
  ],
  "timeRange": "today 12-m",
  "category": 0,
  "includeRelatedQueries": true,
  "includeSubregions": false,
  "alertMode": false,
  "monitorName": "default",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Interest, related query, subregion, error and notice rows.

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

Checks, baselines, new rising queries, charges and warnings.

# 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 = {
    "terms": [
        "bitcoin"
    ],
    "geos": [
        "US"
    ],
    "timeRange": "today 12-m",
    "category": 0,
    "includeRelatedQueries": true,
    "includeSubregions": false,
    "alertMode": false,
    "monitorName": "default",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mmdincer/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 = {
    "terms": ["bitcoin"],
    "geos": ["US"],
    "timeRange": "today 12-m",
    "category": 0,
    "includeRelatedQueries": True,
    "includeSubregions": False,
    "alertMode": False,
    "monitorName": "default",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("mmdincer/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 '{
  "terms": [
    "bitcoin"
  ],
  "geos": [
    "US"
  ],
  "timeRange": "today 12-m",
  "category": 0,
  "includeRelatedQueries": true,
  "includeSubregions": false,
  "alertMode": false,
  "monitorName": "default",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call mmdincer/google-trends-scraper-monitor --silent --output-dataset

```

## MCP server setup

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