# Google Trends Scraper: Interest Over Time, Regions & Queries (`datadesk-io/google-trends-scraper`) Actor

Get Google Trends data for any keyword: interest over time, interest by country or region, top and rising related queries and topics. Compare up to 5 terms, any country, time range, category or YouTube/News/Shopping search. No login. $1.50 per 1,000 terms.

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

## Pricing

from $1.20 / 1,000 search terms

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: Interest Over Time, Regions & Queries

Get **Google Trends data** for any keyword as clean JSON/CSV: **interest over time** (0-100 timeline with dates), **interest by country, region, city or US metro**, **top and rising related queries** (with growth % and Breakout) and **related topics**, plus quick summary columns (**average, latest, peak date, top region, top and rising query**). **Compare up to 5 terms** on one scale, pick **any country and time range** (past hour to 2004), a **category**, or **YouTube, News, Images and Shopping** search. No login, no key. **$1.50 per 1,000 search terms.**

### Try it now (one click)

1. Click **Start**. The prefilled input looks up 2 terms worldwide for the past 12 months. In our latest check (Nov 16, 2026) it returned **2 search terms in about 10 seconds**. An empty input runs a small demo too.
2. Type your keywords (one per line), choose country, time range and the data you need.
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 search terms = **$0.155**, 1,000 search terms = **$1.505** ($1.50 per 1,000 search terms + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per search term. Apify's free plan includes $5 of usage every month, enough for about 3,330 search terms. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 16, 2026 (some columns). Each search term also includes the other fields listed below.*

| Term | Geo | Avg. interest | Peak date | Top region | Top related query |
|---|---|---|---|---|---|
| chatgpt | US | 69.5 | 2026-09-03 | Mississippi | chatgpt ai |
| gemini | US | 29.4 | 2026-10-15 | Ohio | gemini google |
| claude | US | 19.2 | 2026-11-12 | District of Columbia | claude ai |
| web scraping | WORLDWIDE | 56.3 | 2026-05-03 | St. Helena | web data scraping |

### What you get

| Field group | Fields |
|---|---|
| Summary | average, latest and peak interest, top region, top and rising query |
| Timeline | interest over time: date, label, value 0-100, partial flag |
| Geography | interest by country / region / city / DMA with geo codes |
| Related | top and rising related queries (with links) and topics |
| Context | term, geo, time range, category, search type, compared terms, Trends URL |

### Why this Actor

- **Cheaper and simpler:** $1.50 per 1,000 terms with all widgets in one record (popular Trends scrapers charge ~$6 per 1,000).
- **Summary columns** so the table view is useful without opening nested JSON.
- **Compare mode** reproduces typing several terms in Google Trends.
- **YouTube, News, Images and Shopping** search interest, not just web search.

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Type your keywords (one per line), choose country, time range and the data you need.
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Two terms, worldwide, past 12 months:**

```json
{"searchTerms": ["web scraping", "artificial intelligence"]}
```

**Compare 3 AI assistants in the US (past 90 days):**

```json
{"searchTerms": ["chatgpt", "gemini", "claude"], "compareTerms": true, "timeRange": "past_90_days", "geo": "US"}
```

**YouTube search interest by state, past 5 years:**

```json
{"searchTerms": ["minecraft"], "searchProperty": "youtube", "geo": "US", "regionResolution": "REGION", "timeRange": "past_5_years"}
```

**Only related queries for keyword research:**

```json
{"searchTerms": ["crm software", "email marketing"], "includeInterestOverTime": false, "includeInterestByRegion": false, "includeRelatedTopics": false}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `searchTerms` | array | Keywords or topics to look up in Google Trends, one per line. Each term becomes one dataset record. Leave empty for a demo (web scraping, artificial intelligence). |
| `compareTerms` | boolean | Off: each term gets its own 0-100 scale. On: terms are compared in groups of up to 5, like typing them together in Google Trends, so values are relative to each other. |
| `timeRange` | string | Period for interest over time and the other widgets. |
| `geo` | string | Leave empty for worldwide, or use a country code (US, GB, MX, BR, EC) or region code (US-CA, BR-SP). |
| `searchProperty` | string | Which Google search property to measure. |
| `category` | integer | Google Trends category ID to narrow ambiguous terms (0 = all categories). Examples: 5 Computers & Electronics, 7 Finance, 18 Shopping, 71 Food & Drink. |
| `includeInterestOverTime` | boolean | Add the timeline of 0-100 interest values with dates. |
| `includeInterestByRegion` | boolean | Add the list of countries (or regions/cities inside the chosen country) with their 0-100 interest. |
| `regionResolution` | string | Level of the interest-by-region list. Default: countries for worldwide, regions inside a country. |
| `includeRelatedQueries` | boolean | Add top and rising related search queries (rising shows % growth or Breakout). |
| `includeRelatedTopics` | boolean | Add top and rising related topics (entities such as companies, people, products). |
| `language` | string | Language for topic names and date labels, e.g. en-US, es, pt-BR. |
| `maxTerms` | integer | Maximum number of search terms processed in this run (hard cap on cost). |

### Output example

*Example record from a local test run (long lists shortened).*

```json
{
  "searchTerm": "chatgpt",
  "geo": "US",
  "timeRange": "past_90_days",
  "timeRangeCode": "today 3-m",
  "category": 0,
  "searchProperty": "web",
  "comparedWith": [
    "gemini",
    "claude"
  ],
  "interestOverTime": [
    {
      "date": "2026-08-16T00:00:00+00:00",
      "label": "Aug 16, 2026",
      "value": 47,
      "isPartial": false
    },
    {
      "date": "2026-08-17T00:00:00+00:00",
      "label": "Aug 17, 2026",
      "value": 69,
      "isPartial": false
    }
  ],
  "averageInterest": 69.5,
  "peakInterestDate": "2026-09-03",
  "latestInterest": 77,
  "interestByRegion": [
    {
      "geoCode": "US-MS",
      "name": "Mississippi",
      "value": 72
    },
    {
      "geoCode": "US-DE",
      "name": "Delaware",
      "value": 69
    }
  ],
  "topRegion": "Mississippi",
  "relatedQueriesTop": [
    {
      "query": "chatgpt ai",
      "value": 100,
      "formattedValue": "100",
      "link": "https://trends.google.com/trends/explore?q=chatgpt+ai&date=today+3-m&geo=US"
    },
    {
      "query": "chatgpt login",
      "value": 81,
      "formattedValue": "81",
      "link": "https://trends.google.com/trends/explore?q=chatgpt+login&date=today+3-m&geo=US"
    }
  ],
  "relatedQueriesRising": [
    {
      "query": "sam altman chatgpt water usage",
      "value": 8700,
      "formattedValue": "Breakout",
      "link": "https://trends.google.com/trends/explore?q=sam+altman+chatgpt+water+usage&date=today+3-m&geo=US"
    },
    {
      "query": "chatgpt astra",
      "value": 1950,
      "formattedValue": "+1,950%",
      "link": "https://trends.google.com/trends/explore?q=chatgpt+astra&date=today+3-m&geo=US"
    }
  ],
  "relatedTopicsTop": null,
  "relatedTopicsRising": null,
  "url": "https://trends.google.com/trends/explore?q=chatgpt,gemini,claude&date=today 3-m&geo=US",
  "topRelatedQuery": "chatgpt ai",
  "topRisingQuery": "sam altman chatgpt water usage",
  "source": "trends.google.com",
  "scrapedAt": "2026-11-16T23:26:44.168804+00:00",
  "isNew": false
}
```

#### Output fields

| Field | Description |
|---|---|
| `searchTerm` | Keyword looked up |
| `geo` | Country/region code, or WORLDWIDE |
| `timeRange` | Time range option used, e.g. past_12_months |
| `timeRangeCode` | Google Trends time code, e.g. today 12-m |
| `category` | Google Trends category ID (0 = all) |
| `searchProperty` | web, youtube, news, images or shopping |
| `comparedWith` | Other terms on the same scale (compare mode) |
| `averageInterest` | Average of the 0-100 interest values over the period |
| `latestInterest` | Most recent interest value (can be partial data) |
| `peakInterestDate` | Date with the highest interest (100 unless compared) |
| `topRegion` | Country or region with the highest interest |
| `topRelatedQuery` | Most searched related query |
| `topRisingQuery` | Fastest-growing related query |
| `interestOverTime` | Timeline: date, label, 0-100 value and partial flag |
| `interestByRegion` | Countries/regions with geo code and 0-100 value, highest first |
| `relatedQueriesTop` | Top related queries with 0-100 value and link |
| `relatedQueriesRising` | Rising related queries with growth % or Breakout |
| `relatedTopicsTop` | Top related topics: title, type and value |
| `relatedTopicsRising` | Rising related topics with growth |
| `url` | Open the same query on trends.google.com |
| `source` | Data source |
| `isNew` | Always false (no alerts mode) |
| `scrapedAt` | When this record was collected (UTC) |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.0015 per search term** ($1.50 / 1,000). Runs that save nothing are not charged.

| Search terms saved | Approx. cost |
|---|---|
| 20 | $0.035 |
| 100 | $0.155 |
| 1,000 | $1.505 |
| 10,000 | $15.005 |

### Use cases

- Keyword and content research: rising queries before competitors see them
- Compare brands, products or candidates over time
- Seasonality analysis for e-commerce and marketing calendars
- Market sizing by country, state or city
- Feed trend signals into dashboards and AI agents

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~google-trends-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"searchTerms": ["web scraping", "artificial intelligence"]}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/google-trends-scraper").call(run_input={"searchTerms": ["web scraping", "artificial intelligence"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/google-trends-scraper`).

### FAQ

**Are the numbers search volumes?** No. Google Trends gives relative interest from 0 to 100 (100 = peak in the chosen period and place), the same as the Trends website.

**Why are values different when I compare terms?** In compare mode all terms share one scale, exactly like typing them together on trends.google.com.

**What does Breakout mean?** In rising queries, Breakout means growth above 5,000%.

**Why are related topics sometimes empty?** Google does not return related topics for every term and period; the record still includes the other data.

### Limitations

- Values are relative (0-100), not absolute search volumes.
- Low-volume terms can return no data; those terms are skipped and not charged.
- Google may slow down very large runs; the Actor retries automatically.
- Related topics are only included when Google provides them.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Datos de Google Trends: interés en el tiempo, por país o región, consultas y temas relacionados. Compara hasta 5 términos. **$1,50 / 1.000 términos.**
**PT:** Dados do Google Trends: interesse ao longo do tempo, por país ou região, consultas e tópicos relacionados. Compare até 5 termos. **$1,50 / 1.000 termos.**

# Actor input Schema

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

Keywords or topics to look up in Google Trends, one per line. Each term becomes one dataset record. Leave empty for a demo (web scraping, artificial intelligence).

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

Off: each term gets its own 0-100 scale. On: terms are compared in groups of up to 5, like typing them together in Google Trends, so values are relative to each other.

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

Period for interest over time and the other widgets.

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

Leave empty for worldwide, or use a country code (US, GB, MX, BR, EC) or region code (US-CA, BR-SP).

## `searchProperty` (type: `string`):

Which Google search property to measure.

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

Google Trends category ID to narrow ambiguous terms (0 = all categories). Examples: 5 Computers & Electronics, 7 Finance, 18 Shopping, 71 Food & Drink.

## `includeInterestOverTime` (type: `boolean`):

Add the timeline of 0-100 interest values with dates.

## `includeInterestByRegion` (type: `boolean`):

Add the list of countries (or regions/cities inside the chosen country) with their 0-100 interest.

## `regionResolution` (type: `string`):

Level of the interest-by-region list. Default: countries for worldwide, regions inside a country.

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

Add top and rising related search queries (rising shows % growth or Breakout).

## `includeRelatedTopics` (type: `boolean`):

Add top and rising related topics (entities such as companies, people, products).

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

Language for topic names and date labels, e.g. en-US, es, pt-BR.

## `maxTerms` (type: `integer`):

Maximum number of search terms processed in this run (hard cap on cost).

## Actor input object example

```json
{
  "searchTerms": [
    "chatgpt",
    "gemini"
  ],
  "compareTerms": true,
  "timeRange": "past_5_years",
  "geo": "US",
  "searchProperty": "youtube",
  "category": 0,
  "includeInterestOverTime": true,
  "includeInterestByRegion": true,
  "regionResolution": "REGION",
  "includeRelatedQueries": true,
  "includeRelatedTopics": true,
  "language": "en-US",
  "maxTerms": 50
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "web scraping",
        "artificial intelligence"
    ],
    "maxTerms": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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": [
        "web scraping",
        "artificial intelligence",
    ],
    "maxTerms": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/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": [
    "web scraping",
    "artificial intelligence"
  ],
  "maxTerms": 50
}' |
apify call datadesk-io/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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