# Google Trends Scraper: Interest Over Time & Related Queries (`scrape-lads/google-trends-scraper`) Actor

Google Trends data for many search terms at once: interest over time, interest by region, related queries and related topics, in 213 countries or worldwide. Compare up to 5 terms on one scale. No captchas or rate limits.

- **URL**: https://apify.com/scrape-lads/google-trends-scraper.md
- **Developed by:** [Scrape Lads](https://apify.com/scrape-lads) (community)
- **Categories:** SEO tools, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 search term with data

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

### What does Google Trends Scraper do?

**Google Trends Scraper** gets Google Trends data for a whole list of search terms in one run: **interest over time**, **interest by region**, **related queries** and **related topics** (top and rising), in 213 countries or worldwide. Compare up to 5 terms on one scale, or look up hundreds of terms each on its own scale.

It doesn't open Google Trends in a browser, so there are no captchas, no "429 Too Many Requests" and no half-empty runs. Results come from a Google Trends data provider and usually arrive within 20 seconds to 2 minutes, however many terms you send.

### What Google Trends data can you get?

| 🔑 Search term | 📈 Interest over time (0-100) | ⏱️ Past hour to past 5 years, or any dates since 2004 |
|---|---|---|
| 📊 Average, latest and peak interest | 🚀 Rising, falling or stable trend | 🗺️ Interest by state, region or country |
| 🔍 Top related queries | 🔥 Rising related queries | 🧩 Top and rising related topics |
| ⚖️ Compare up to 5 terms on one scale | 🔎 Web, News, YouTube, Images or Shopping search | 🌍 213 countries or worldwide |

### Output fields explained

| Field | What it is |
| --- | --- |
| `interestOverTime` | Every point of the Google Trends line: date, value 0-100, and whether the latest point is still partial |
| `averageInterest`, `latestInterest`, `peakInterest`, `peakDate` | The line summed up in four numbers |
| `trendChangePercent`, `trendDirection` | Last quarter of the period against the first: `rising`, `falling` or `stable` |
| `interestByRegion` | States or regions (or countries for Worldwide) ranked by interest |
| `relatedQueriesTop`, `relatedQueriesRising` | What people also search for; rising values are % growth |
| `relatedTopicsTop`, `relatedTopicsRising` | Related Google topics with their type |
| `comparedWith` | The other terms on the same scale, when comparing |
| `googleTrendsUrl` | The same chart on trends.google.com, to check by eye |

### How to use it

1. Add your **Search terms**, one per line.
2. Pick a **Country** (or Worldwide) and a **Time range**, from the past hour to the past 5 years, or set your own start and end dates back to 2004.
3. Optional: **Compare terms on one scale** to see which of up to 5 terms is searched more, a **Search type** (web, news, YouTube, images or Google Shopping) and a **Category code**.
4. Run it and download the results as JSON, CSV or Excel, or read them through the API.

#### Example input

```json
{
    "searchTerms": ["air fryer", "instant pot", "slow cooker"],
    "country": "United States",
    "timeRange": "past_12_months"
}
```

#### Example output (shortened)

```json
{
    "keyword": "air fryer",
    "status": "ok",
    "country": "United Kingdom",
    "timeRange": "past_90_days",
    "averageInterest": 70.4,
    "latestInterest": 86,
    "peakInterest": 100,
    "peakDate": "2026-11-01",
    "trendChangePercent": 4.4,
    "trendDirection": "stable",
    "interestOverTime": [{ "date": "2026-08-15", "dateTo": "2026-08-15", "value": 61, "partial": false }],
    "interestByRegion": [{ "geoId": "GB-WLS", "region": "Wales", "value": 100 }],
    "relatedQueriesRising": [{ "query": "philips dual basket air fryer lidl", "value": 17800 }],
    "googleTrendsUrl": "https://trends.google.com/trends/explore?hl=en&geo=GB&date=today%203-m&q=air%20fryer"
}
```

### Quick start: copy-paste inputs

Paste one of these into the **Input** tab (switch it to **JSON**) and click **Start**.

**Interest over time for a list of terms, past 12 months (US):**

```json
{
    "searchTerms": ["air fryer", "instant pot", "slow cooker"],
    "country": "United States",
    "timeRange": "past_12_months"
}
```

**Which term is searched more (compared on one scale, worldwide, 5 years):**

```json
{
    "searchTerms": ["chatgpt", "gemini", "claude"],
    "compareTerms": true,
    "country": "Worldwide",
    "timeRange": "past_5_years"
}
```

**YouTube search trends for the past 30 days (UK):**

```json
{
    "searchTerms": ["minecraft", "fortnite"],
    "searchType": "youtube",
    "country": "United Kingdom",
    "timeRange": "past_30_days"
}
```

**Custom date range, interest over time only:**

```json
{
    "searchTerms": ["black friday"],
    "startDate": "2025-10-01",
    "endDate": "2025-12-31",
    "includeRegions": false,
    "includeRelated": false
}
```

### Each term alone, or compared

Google Trends values are relative: 100 is the busiest moment of whatever is on the chart.

- **Each term on its own scale** (default): every term gets its own chart, its own regions and its own related queries and topics. Best for trend research over long keyword lists.
- **Compared**: terms go in groups of up to 5, in the order you give them, exactly like typing them together into Google Trends. Values then show which term is searched more. Related queries and topics aren't available in this mode.

### How much does it cost?

You pay **$5 per 1,000 search terms with data** ($0.005 each) plus **$0.01 per run**. Terms Google Trends has no data for, invalid terms and requests that fail are free.

| Run | Cost |
| --- | --- |
| 10 search terms | $0.06 |
| 100 search terms | $0.51 |
| 1,000 search terms | $5.01 |

On the free Apify plan you get 10 full runs a month with up to 5 search terms each; after that, runs that month return a small sample (1 search term). Any paid Apify plan removes the limits.

### Good to know

- Values are Google's own 0-100 index, not search counts. For monthly search volume, use [Keyword Search Volume](https://apify.com/scrape-lads/keyword-search-volume).
- The latest point of a series is often marked `partial: true`: Google is still collecting it, and it is left out of the averages.
- Very rare terms have no Google Trends data. They come back with `status: "no_data"` and cost nothing.
- Commas aren't allowed inside a search term (Google Trends uses them to separate terms).

### Use cases

- **Content and SEO planning:** find seasonal peaks and rising related queries before you write.
- **Product research:** compare products or brands and see where demand is growing.
- **Market and regional analysis:** see which states or countries search most for a topic.
- **Monitoring:** schedule the Actor weekly and track `trendDirection` for your keywords.

### Google Trends Scraper API: use it in your app or SaaS

Add this data to your own product without building or maintaining a scraper, for example in SEO and content tools, trend dashboards, product research apps or an AI agent that spots rising topics. Your backend calls the Apify API, the Actor does the scraping, proxies and retries, and you get clean JSON back. You pay per result, so your cost grows with your usage and you can price your own plans on top. It also covers what the official APIs don't: Google Trends has no public API for most developers, and scraping trends.google.com directly runs into 429 errors and captchas.

#### One request, results back

For small jobs, the synchronous endpoint runs the Actor and returns the dataset rows in the same HTTP response (it waits up to 5 minutes):

```bash
curl -X POST "https://api.apify.com/v2/acts/scrape-lads~google-trends-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["air fryer","instant pot"],"country":"United States","timeRange":"past_12_months"}'
```

Get your token under **Settings > API & Integrations** in Apify Console, and keep it on your server, never in a browser or mobile app.

#### Python and JavaScript

With the official `apify-client` package (`pip install apify-client` or `npm install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrape-lads/google-trends-scraper").call(run_input={
    "searchTerms": [
        "air fryer",
        "instant pot"
    ],
    "country": "United States",
    "timeRange": "past_12_months"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["interestOverTime"])
```

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrape-lads/google-trends-scraper').call({
    "searchTerms": [
        "air fryer",
        "instant pot"
    ],
    "country": "United States",
    "timeRange": "past_12_months"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => console.log(item.interestOverTime));
```

The **API** tab on this page has the same snippets for other languages, with your token filled in.

#### Long jobs: start a run and get a webhook

For bigger batches, start the run with `POST https://api.apify.com/v2/acts/scrape-lads~google-trends-scraper/runs` and return right away. Add a [webhook](https://docs.apify.com/platform/integrations/webhooks) for `ACTOR.RUN.SUCCEEDED` so Apify calls your server when the run ends, then read the rows from `https://api.apify.com/v2/datasets/<defaultDatasetId>/items`. Add `?format=csv` (or `xlsx`, `jsonl`) to get another format.

#### Handling results and failures in your code

Every search term you send comes back as one row (duplicates are merged), so you can match results to your own records by `keyword`. With `compareTerms`, rows of the same group list each other in `comparedWith`. Check `status` on each row: `ok`, `no_data` (Google Trends has no data for the term), `invalid_keyword` (empty, over 100 characters or containing a comma) or `failed` (the data service did not answer; run it again). Only `ok` rows are charged, and `error` holds a readable reason for the rest.

#### Cost at volume

$5 per 1,000 search terms with data, plus a $0.01 start fee per run. Send your whole list in one run rather than one run per term: you pay the start fee once and all terms are requested together, so a run of 100 terms takes about as long as a run of one. To cap what one run can spend, pass `maxTotalChargeUsd` when you start it (for example `?maxTotalChargeUsd=5`); the run stops cleanly at that amount. Your Apify plan sets how many runs can go at once.

### Use it in n8n, Make, Zapier or Google Sheets

No code needed:

- **n8n**: add the **Apify** node, choose **Run an Actor and get dataset**, pick `scrape-lads/google-trends-scraper` and pass the input JSON from above. Send the rows to Google Sheets, Slack or a database node.
- **Make**: use the **Apify** app, module **Run an Actor** with "Run synchronously" on, then **Get Dataset Items**.
- **Zapier**: use the **Apify** app, action **Run Actor**, then **Find Last Run Dataset Items**.
- **Google Sheets**: in Apify Console open **Integrations** on a saved task and connect Google Sheets, so every run appends its trend rows to a sheet.

A common setup: a daily scheduled task watches your product or brand terms for the past 7 days and posts the rising related queries to Slack, so new demand shows up the day it starts.

### Use it with Claude, ChatGPT or Cursor (MCP)

Add this Actor as a tool in Claude, ChatGPT, Cursor, VS Code or any other MCP client. Use this server URL:

```
https://mcp.apify.com?tools=scrape-lads/google-trends-scraper
```

Sign in with your Apify account when asked. Then ask your agent in plain words, for example:

> Show the Google Trends interest over time and rising related queries for "air fryer" in the US over the past 12 months.

The agent runs this Actor and reads the results for you. Runs are billed to your Apify account at this Actor's prices.

In Claude Code, add it with one command:

```bash
claude mcp add --transport http google-trends-scraper "https://mcp.apify.com?tools=scrape-lads/google-trends-scraper"
```

### FAQ

#### Is this the same data as trends.google.com?

Yes. Values are Google Trends' own 0-100 index for the same term, place, time range and search type, and every row links to the matching chart on trends.google.com (`googleTrendsUrl`) so you can compare. Google samples its data, so two lookups of the same chart can differ by a point or two.

#### Why does a term come back as `no_data`?

Google Trends only shows terms with enough searches. Very rare terms, typos and very narrow places or time ranges often have no data. Those rows are free.

#### Can I use it from an AI agent?

Yes. See the MCP section above: Claude, ChatGPT or Cursor can call it with a sentence such as "how has interest in air fryers changed this year?".

### Privacy

To see which inputs are useful, this Actor sends anonymous run inputs and a hashed account ID to the developer. When a run fails, is stopped or ends with errors, it also sends a short error message so we can fix problems quickly. Tokens, cookies and proxy settings are never sent. Nothing from your results is collected.

# Actor input Schema

## `searchTerms` (type: `array`):

Words or phrases to look up in Google Trends, one per line.

## `compareTerms` (type: `boolean`):

Off: each term gets its own 0-100 scale, regions and related queries. On: terms are compared in groups of up to 5 (in the order given), so values show which is searched more, like typing several terms into Google Trends. Related queries and topics are only available when terms are not compared.

## `country` (type: `string`):

Where the searches come from. Worldwide covers all countries; interest by region then lists countries.

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

How far back to look. Ignored when a start date is set.

## `startDate` (type: `string`):

Optional. A custom range from this date (2004-01-01 or later). Replaces the time range.

## `endDate` (type: `string`):

Optional end of the custom range. Default: today.

## `searchType` (type: `string`):

Which Google search to measure.

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

Optional Google Trends category number to narrow the meaning (for example 71 = Food & Drink, 18 = Shopping). Leave empty for all categories.

## `includeRegions` (type: `boolean`):

Add the regions (states or countries) where each term is most searched.

## `includeRelated` (type: `boolean`):

Add top and rising related queries and topics for each term (not available when comparing terms).

## `includeNoDataRows` (type: `boolean`):

Also output a row (free) for terms Google Trends has no data for.

## `maxSearchTerms` (type: `integer`):

Optional cap on how many search terms to look up. 0 = all.

## Actor input object example

```json
{
  "searchTerms": [
    "air fryer",
    "instant pot",
    "slow cooker"
  ],
  "compareTerms": false,
  "country": "United States",
  "timeRange": "past_12_months",
  "searchType": "web",
  "includeRegions": true,
  "includeRelated": true,
  "includeNoDataRows": true
}
```

# Actor output Schema

## `trends` (type: `string`):

No description

## `fullResults` (type: `string`):

No description

## `runSummary` (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 = {
    "searchTerms": [
        "air fryer",
        "instant pot"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrape-lads/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 = { "searchTerms": [
        "air fryer",
        "instant pot",
    ] }

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

```

## MCP server setup

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