# Google Trends Scraper — Interest, Queries & Trending Now (`jadey_orbit/google-trends-scraper`) Actor

Extract Google Trends data fast: interest over time, interest by region, related queries and topics, and real-time trending searches. Pay per result.

- **URL**: https://apify.com/jadey\_orbit/google-trends-scraper.md
- **Developed by:** [Matt Sparks](https://apify.com/jadey_orbit) (community)
- **Categories:** SEO tools, Marketing
- **Stats:** 2 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 data rows

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Trends Scraper — Interest Over Time, Related Queries & Trending Now

Extract **Google Trends data** for any keyword: interest over time, interest by region, related queries, related topics, and real-time trending searches. Built API-first (no slow browser automation), so runs finish in **seconds** and cost less.

### What data does it extract?

| Data type | What you get |
|---|---|
| **Interest over time** | 0–100 search-interest index per date for your timeframe |
| **Interest by region** | Interest by country, state/region, city, or US metro area |
| **Related queries** | Top & rising queries with values and growth ("Breakout") |
| **Related topics** | Top & rising topics with type (e.g. Cryptocurrency, Company) |
| **Trending now** | Current trending searches with approximate traffic, start time, and related queries — 300+ entries per region |

Any timeframe Google Trends supports: `now 1-H` … `today 5-y`, `all`, or explicit date ranges. Any country or region. Category filtering supported.

### Why this scraper?

- ⚡ **API-first, not browser-based** — most Google Trends actors drive a headless Chrome through the Trends UI; this one talks to Trends data endpoints directly. Faster runs, lower compute, fewer flaky failures.
- 📊 **All five datasets in one actor** — no need for separate actors for trending searches.
- 💰 **$1.50 per 1,000 rows** — pay only for delivered results.
- 🔁 **Automatic session rotation** — rate limits are handled with retries, backoff, and fresh sessions.

### Pricing

| Event | Price | When charged |
|---|---|---|
| Actor start | $0.02 | Once per run |
| Data row | $0.0015 | Per result row ($1.50 / 1,000) |

**Example**: 12 months of weekly interest + 51 US states + related queries & topics for one keyword ≈ 230 rows ≈ **$0.37**.

### Input

```json
{
    "queries": ["bitcoin", "ethereum"],
    "dataTypes": ["interestOverTime", "interestByRegion", "relatedQueries", "relatedTopics"],
    "timeframe": "today 12-m",
    "geo": "US",
    "regionResolution": "REGION",
    "includeTrendingNow": true,
    "trendingHours": 24
}
````

Leave `queries` empty and enable `includeTrendingNow` to get only trending searches.

### Output examples

```json
{ "type": "interestOverTime", "keyword": "bitcoin", "geo": "US", "date": "2026-04-17T00:00:00.000Z", "value": 86, "isPartial": false }
{ "type": "interestByRegion", "keyword": "bitcoin", "geoCode": "US-WY", "geoName": "Wyoming", "value": 100 }
{ "type": "relatedQueries", "keyword": "bitcoin", "rankType": "RISING", "query": "bitcoin etf", "formattedValue": "+250%" }
{ "type": "trendingNow", "geo": "US", "keyword": "taylor farms", "approxTraffic": 200000, "startedAt": "2026-07-16T21:20:00.000Z", "relatedQueries": ["taylor farms lettuce"] }
```

Download as **JSON, CSV, Excel**, or fetch via API.

### Use from code or AI agents

- **API / SDKs**: run and fetch results with the [Apify API](https://docs.apify.com/api/v2).
- **MCP**: works out of the box with the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) — Claude, Cursor, and other AI agents can call it as a tool.
- **Scheduling**: run it daily/hourly with Apify Schedules for keyword monitoring.

### Common use cases

- **SEO & content planning** — find rising queries before they peak
- **Market research** — compare brand interest across regions and time
- **Trend monitoring** — feed trending-now data into news/content pipelines
- **Trading signals** — track search interest for tickers and products
- **Ad timing** — schedule campaigns around seasonal interest curves

### Notes & troubleshooting

- Values are Google's relative 0–100 index per query context, not absolute volumes.
- Residential proxy (the default) is strongly recommended; Google rate-limits datacenter IPs.
- A query returning no rows usually means Google has no data for that keyword/region/timeframe combination.
- Issues or feature requests (multi-keyword comparison, categories list, hourly granularity)? Open an issue in the **Issues** tab — answered within 24 hours.

# Actor input Schema

## `queries` (type: `array`):

Keywords to get Google Trends data for (e.g. <code>bitcoin</code>). Each term is processed separately. Not needed in Trending-now mode.

## `dataTypes` (type: `array`):

Which Trends datasets to extract per search term.

## `timeframe` (type: `string`):

Trends time range: <code>now 1-H</code>, <code>now 4-H</code>, <code>now 1-d</code>, <code>now 7-d</code>, <code>today 1-m</code>, <code>today 3-m</code>, <code>today 12-m</code>, <code>today 5-y</code>, <code>all</code>, or explicit dates <code>2025-01-01 2025-06-30</code>.

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

Two-letter country code (e.g. <code>US</code>, <code>GB</code>, <code>DE</code>) or region code (<code>US-NY</code>). Empty = worldwide.

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

Google Trends category ID to narrow results (0 = all categories).

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

Granularity for interest-by-region data.

## `includeTrendingNow` (type: `boolean`):

Also extract current trending searches for the selected region (works even with no search terms).

## `trendingHours` (type: `integer`):

How far back to look for trending searches (1–191 hours).

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

Residential proxies are strongly recommended — Google rate-limits datacenter IPs.

## Actor input object example

```json
{
  "queries": [
    "bitcoin"
  ],
  "dataTypes": [
    "interestOverTime"
  ],
  "timeframe": "today 12-m",
  "geo": "",
  "category": 0,
  "regionResolution": "REGION",
  "includeTrendingNow": false,
  "trendingHours": 24,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "queries": [
        "bitcoin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jadey_orbit/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 = { "queries": ["bitcoin"] }

# Run the Actor and wait for it to finish
run = client.actor("jadey_orbit/google-trends-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "bitcoin"
  ]
}' |
apify call jadey_orbit/google-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jadey_orbit/google-trends-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Trends Scraper — Interest, Queries & Trending Now",
        "description": "Extract Google Trends data fast: interest over time, interest by region, related queries and topics, and real-time trending searches. Pay per result.",
        "version": "0.1",
        "x-build-id": "VEeFOlJuYspNTKnNb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jadey_orbit~google-trends-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jadey_orbit-google-trends-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jadey_orbit~google-trends-scraper/runs": {
            "post": {
                "operationId": "runs-sync-jadey_orbit-google-trends-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jadey_orbit~google-trends-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-jadey_orbit-google-trends-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "queries": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Keywords to get Google Trends data for (e.g. <code>bitcoin</code>). Each term is processed separately. Not needed in Trending-now mode.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "dataTypes": {
                        "title": "Data to extract",
                        "type": "array",
                        "description": "Which Trends datasets to extract per search term.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "interestOverTime",
                                "interestByRegion",
                                "relatedQueries",
                                "relatedTopics"
                            ],
                            "enumTitles": [
                                "Interest over time",
                                "Interest by region",
                                "Related queries",
                                "Related topics"
                            ]
                        },
                        "default": [
                            "interestOverTime"
                        ]
                    },
                    "timeframe": {
                        "title": "Timeframe",
                        "type": "string",
                        "description": "Trends time range: <code>now 1-H</code>, <code>now 4-H</code>, <code>now 1-d</code>, <code>now 7-d</code>, <code>today 1-m</code>, <code>today 3-m</code>, <code>today 12-m</code>, <code>today 5-y</code>, <code>all</code>, or explicit dates <code>2025-01-01 2025-06-30</code>.",
                        "default": "today 12-m"
                    },
                    "geo": {
                        "title": "Region",
                        "type": "string",
                        "description": "Two-letter country code (e.g. <code>US</code>, <code>GB</code>, <code>DE</code>) or region code (<code>US-NY</code>). Empty = worldwide.",
                        "default": ""
                    },
                    "category": {
                        "title": "Category ID",
                        "type": "integer",
                        "description": "Google Trends category ID to narrow results (0 = all categories).",
                        "default": 0
                    },
                    "regionResolution": {
                        "title": "Region resolution",
                        "enum": [
                            "COUNTRY",
                            "REGION",
                            "CITY",
                            "DMA"
                        ],
                        "type": "string",
                        "description": "Granularity for interest-by-region data.",
                        "default": "REGION"
                    },
                    "includeTrendingNow": {
                        "title": "Include trending searches",
                        "type": "boolean",
                        "description": "Also extract current trending searches for the selected region (works even with no search terms).",
                        "default": false
                    },
                    "trendingHours": {
                        "title": "Trending window (hours)",
                        "minimum": 1,
                        "maximum": 191,
                        "type": "integer",
                        "description": "How far back to look for trending searches (1–191 hours).",
                        "default": 24
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Residential proxies are strongly recommended — Google rate-limits datacenter IPs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
