# Google Trends Scraper — Bulk Keywords + Related (`rudra_digital/google-trends-scraper`) Actor

Interest over time and related queries from Google Trends for up to 100 keywords per run, or up to 5 compared on one scale. Each keyword gets a clear status, and you pay $0.01 only for keywords that return data: no-data, low-volume, failed and unprocessed keywords are free.

- **URL**: https://apify.com/rudra_digital/google-trends-scraper.md
- **Developed by:** [Rudra Digital](https://apify.com/rudra_digital) (community)
- **Categories:** SEO tools, Marketing, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 keyword 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: bulk keywords, no charge for empty results

Get **interest over time** and **related queries** from Google Trends for up to 100 keywords per run. You can also compare
up to 5 keywords on one shared scale. **You pay only for keywords that return data**: a keyword Google has no data for,
one with too little search volume for a reliable series, or one that fails, is listed in the results and never charged.

### What you get

For each keyword, one dataset row with:

- **Interest over time:** Google's 0–100 series for your country, period, category and Google property.
- **Related queries:** Google's *top* and *rising* related searches, including "Breakout" terms.
- **Freshness:** the date of the latest point, and whether Google still marks that point as partial.
- **A clear status:**

  - `ok`: data delivered, and the only status that is charged;
  - `no_data`: Google has no data for this keyword;
  - `low_volume`: Google returned a series, but at most 2 of its points are above zero: too little search volume to be
    reliable. The points are still delivered, free. With `compare` on, see "Reading the numbers" below;
  - `failed`: the request failed;
  - `not_processed`: the run stopped before reaching this keyword.

  Every status except `ok` is free.

### Use cases

- **Product and e-commerce research:** which products are rising, and where.
- **SEO and content planning:** seasonal demand, plus the rising queries to write about.
- **Market and brand tracking:** compare up to 5 brands or terms on one scale, on a schedule.
- **Data pipelines:** a stable JSON shape for spreadsheets, BI tools and models.

### Input

| Field | What it does | Default |
|---|---|---|
| `keywords` | 1–100 search terms. Duplicates are removed (case-insensitive). | — |
| `compare` | Puts 2–5 keywords in one Google Trends comparison so they share one 0–100 scale. | off |
| `geo` | Empty for worldwide, a country (`GB`, `US`) or a region (`US-CA`). | worldwide |
| `timeRange` | Past hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months, 5 years, or 2004 to present. | past 12 months |
| `includeRelatedQueries` | Adds the top and rising related queries. | on |
| `category` | A Google Trends category ID (`0` = all). | 0 |
| `property` | Web search, Image search, News search, Google Shopping or YouTube search. | Web search |

Example:

```json
{
  "keywords": ["air fryer", "slow cooker", "kettle"],
  "geo": "GB",
  "timeRange": "today 12-m",
  "includeRelatedQueries": true
}
```

### Output

One row per keyword. A real row from a test run (shortened):

```json
{
  "keyword": "air fryer",
  "status": "ok",
  "billable": true,
  "geo": "GB",
  "timeRange": "today 12-m",
  "category": 0,
  "property": "web",
  "comparedWith": [],
  "scale": "this keyword alone",
  "points": [{ "date": "2025-10-12", "value": 66, "isPartial": false }, "…"],
  "pointCount": 53,
  "lastDate": "2026-10-11",
  "lastPointIsPartial": true,
  "relatedQueries": {
    "top": [{ "query": "ninja air fryer", "value": 100, "formattedValue": "100" }, "…"],
    "rising": [{ "query": "best air fryer 2026", "value": 13850, "formattedValue": "Breakout" }, "…"]
  },
  "error": null,
  "fetchedAt": "2026-10-15T23:56:57+00:00",
  "source": "Google Trends (https://www.google.com/trends)"
}
```

A keyword with no data still gets a row, and is not charged:

```json
{ "keyword": "zqxjv kwplm 3847", "status": "no_data", "billable": false, "pointCount": 0,
  "error": { "code": "NO_DATA", "message": "Google Trends has no data for this query" } }
```

The run's key-value store also holds a `SUMMARY` record. It lists the keywords requested, delivered, with no data,
failed and not processed, what this run charged, and why it stopped early (if it did).

Download the dataset as JSON, CSV, Excel or XML, or read it through the Apify API.

### Pricing

**$0.01 per keyword that returns data, which is $10 per 1,000 keywords.** There is no start fee and no charge for empty,
low-volume or failed keywords.

- With `compare` on, each keyword in the comparison that returns data counts once.
- Set a **maximum cost per run** and the Actor respects it. It checks your remaining budget before each keyword (or each
  comparison), then stops cleanly. The keywords it did not reach are marked `not_processed` and are not charged.
- A run that delivers nothing usable ends as **FAILED**, never as a "successful" run with no data.
- When a run reaches your maximum cost, Apify may show it as **ABORTED** rather than SUCCEEDED, even though the Actor
  had already stopped cleanly. The rows, the `SUMMARY` record and the charges are the same either way. We saw both
  outcomes on identical test runs.

### Reading the numbers

- **Each value is relative, not a search count.** 100 is the keyword's peak in the chosen place and period.
- **Without `compare`, each keyword has its own scale.** A 100 for one keyword and a 100 for another are not the same
  volume. Switch on `compare` (up to 5 keywords, a Google limit) to put them on one scale; then only the leader reaches
  100\.
- **Google samples its data,** so two fetches of the same query can differ by a few points.
- **Very rare terms are noisy.** For a term with almost no searches, Google can return a series that is zero
  everywhere except one or two points at 100, and which points those are can change from one fetch to the next. We
  tested this with invented nonsense terms: some came back with such a spike. That is why a series with at most 2
  non-zero points is marked `low_volume` and never charged.
- **In a comparison, small is not noisy.** Next to a much bigger keyword, a smaller one can read 0 in most periods.
  That is the comparison's answer, so it is `ok` and charged like the others. Only a compared keyword that is 0 at
  every point, or a whole comparison in which even the biggest keyword has at most 2 non-zero points, is
  `low_volume` (free).
- **Google often marks the latest point as partial** (`lastPointIsPartial: true`), because the period is still running.

**Accuracy check:** before launch we compared runs with series fetched directly from trends.google.com. We used 5 series:
UK 12 months, a 3-way US comparison over 90 days, and Japan over 5 years.

- The mean absolute difference was 0.4–1.5 points on the 0–100 scale.
- The correlation was 0.97 or higher.

### Reliability

- **Paced requests, one honest session.** No proxy rotation, no CAPTCHA solving and no disguised identity.
- **Rate limits:** if Google rate-limits a request, the Actor waits (30 s, then 60 s, then 120 s) instead of hammering.
  If two request groups in a row stay blocked, it stops. The rest of the keywords are marked `not_processed`, and you
  are not charged for them.
- **Restarts:** if the platform restarts a run, it resumes from saved progress and never charges a keyword twice. If
  the restart lands while a keyword's row is being written, that row can appear twice in the dataset; it is still
  charged once.
- **Unexpected responses:** if Google answers with something the Actor cannot read, that keyword is marked `failed`
  (not charged) and the run carries on with the next one.
- **Timeout:** the default run timeout is 1 hour, about twice what the slowest 100-keyword run we measured needed. If
  a run's timeout comes close, the Actor stops in time, even in the middle of a rate-limit wait. The keywords it did not reach are marked `not_processed`
  (not charged), and the `SUMMARY` record is written, instead of the run ending as TIMED-OUT with keywords missing.
- **Speed:** 11–17 seconds per keyword with related queries on, measured on Apify in October 2026. It depends on how
  much Google rate-limits Apify's shared servers at the time. 25 keywords take about 5–7 minutes, and 100 keywords
  (the per-run maximum) about 20–30 minutes. Rows appear in the dataset as they are fetched, so you can read results
  while the run is going. Switching off related queries saves one request per keyword.

### FAQ

**Why did a keyword return `no_data` or `low_volume`?** Search volume is too low for the place and period: Google has
no data (`no_data`) or only a sparse, unreliable series (`low_volume`). Try a wider region or a longer period. You are
not charged for either.

**Can I compare more than 5 keywords?** Not on one scale; Google allows 5. Without `compare`, you can send up to 100
keywords per run, each on its own scale.

**I have more than 100 keywords. What should I do?** Split the list across several runs of up to 100 keywords each.
Runs are independent, so you can start them at the same time: we tested 5 runs at once (25 keywords each), and every
keyword was answered. Each keyword is billed once, by the run that fetched it.

**Can I run it on a schedule?** Yes. Use Apify Schedules (daily or weekly, for example) together with webhooks or
integrations to send the results where you need them.

**Is this legal?** The Actor reads the public, aggregated search-interest figures that Google Trends shows on
trends.google.com. It reads them only from paths that site's robots.txt does not disallow, identifies itself
honestly, paces its requests and backs off when Google asks it to slow down: no proxy rotation, no CAPTCHA solving
and no disguised identity. It collects no personal data. Google allows reuse of Trends data subject to its Terms of
Service and asks for a citation, which every row carries. You are responsible for how you use the data, so check
that your use fits Google's terms. This is not legal advice.

**Something not working?** Open an issue on the Actor's Issues tab and include the run ID. The `SUMMARY` record and each
row's `error` field usually explain what happened.

This Actor is an independent service and is not affiliated with, endorsed by, or an official product of Google.
Google and Google Trends are trademarks of Google LLC.

# Actor input Schema

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

Search terms, 1–100 per run (a full run takes about 20–30 minutes; start several runs for a longer list). Each keyword gets its own interest-over-time series (0–100, its own scale) unless you switch on Compare.

## `compare` (type: `boolean`):

Put 2–5 keywords in one Google Trends comparison, so their values share one 0–100 scale (only the leader reaches 100).

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

Empty for worldwide, a country code such as GB or US, or a region such as US-CA.

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

The period Google Trends covers.

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

Add Google's top and rising related queries for each keyword.

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

A Google Trends category ID; 0 means all categories.

## `property` (type: `string`):

Web search (default), or Images, News, Shopping or YouTube search.

## Actor input object example

```json
{
  "keywords": [
    "air fryer",
    "slow cooker"
  ],
  "compare": false,
  "geo": "",
  "timeRange": "today 12-m",
  "includeRelatedQueries": true,
  "category": 0,
  "property": ""
}
```

# Actor output Schema

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

One row per keyword: interest over time, related queries, freshness, status and whether the row was charged.

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

Counts per status, charges, why the run stopped early, and HTTP/429 counts.

# 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": [
        "air fryer",
        "slow cooker"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rudra_digital/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": [
        "air fryer",
        "slow cooker",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rudra_digital/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": [
    "air fryer",
    "slow cooker"
  ]
}' |
apify call rudra_digital/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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