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

Scrape Google Trends reliably: interest over time, interest by region, related & rising queries and Trending Now, plus average, peak and trend direction per keyword. Bulk keywords, any country, CSV/Excel/API.

- **URL**: https://apify.com/orbifetch/google-trends-scraper.md
- **Developed by:** [Orbifetch](https://apify.com/orbifetch) (community)
- **Categories:** SEO tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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** pulls data from [Google Trends](https://trends.google.com) for any list of keywords, in any country, time range, category or search type (web, YouTube, news, images, shopping). **Each keyword comes back as one complete row:**

- 📈 **Interest over time**: the full 0–100 timeline
- 🧮 **Ready-made metrics**: average interest, peak value and peak date, latest value, % change and a **rising / stable / falling** label
- 🗺️ **Interest by region**: countries, states/provinces, cities or US metros (DMA)
- 🔎 **Related queries**: top searches and **rising / breakout** searches
- 🔥 **Trending Now**: today's trending searches per country, with traffic estimates and news links

It's built for **reliability**. Google Trends rate-limits scrapers hard, so the Actor warms up sessions, rotates residential IPs and retries automatically. Your runs finish instead of failing halfway.

### Why use it?

- **SEO & content marketing**: find rising keywords and breakout queries before competitors do, and prioritize content by seasonality.
- **E-commerce & product research**: check whether a product or niche is growing, peaking or dying, and where demand is strongest.
- **Market & investment research**: track brand, product and category interest over years across countries.
- **Data science & AI agents**: get clean JSON with no parsing of Google's odd widget formats. It plugs straight into pipelines, Make, Zapier, n8n or an LLM agent via the Apify API or MCP.
- **News & social media**: monitor what's trending today in any country.

### How much does it cost?

You pay only for results. Keywords that fail are **free**.

| Result | Price |
|---|---|
| Keyword analyzed (timeline + metrics + regions + related queries, all included) | **$0.005** |
| Trending Now search | **$0.0005** |

**1,000 keywords cost $5**, all data included. Other Trends scrapers charge per timeline point or per widget.

### How to use it

1. Click **Try for free**.
2. Enter your **search terms**, one per line.
3. Pick a **time range**, **location** (e.g. `US`, `GB`, `US-CA`, or empty for worldwide) and optionally a **category** or **search type**.
4. Turn on **Compare terms** if you want keywords on a shared 0–100 scale, as when you type them together into Google Trends.
5. Optionally add countries under **Trending now**.
6. Click **Start** and export as **Excel, CSV, JSON or HTML**, or fetch the data through the API.

### Input example

```json
{
    "searchTerms": ["chatgpt", "claude ai"],
    "timeRange": "today 3-m",
    "geo": "US",
    "regionResolution": "REGION",
    "includeRelatedQueries": true,
    "trendingNowCountries": ["US", "GB"]
}
```

### Output example

```json
{
    "type": "keyword",
    "keyword": "chatgpt",
    "geo": "US",
    "timeRange": "today 3-m",
    "averageInterest": 63.5,
    "peakInterest": 100,
    "peakDate": "2026-09-03T00:00:00.000Z",
    "latestInterest": 71,
    "trendChangePercent": 14.3,
    "trendDirection": "rising",
    "topRegion": "California",
    "topRelatedQuery": "chatgpt ai",
    "topRisingQuery": "chatgpt astra",
    "interestOverTime": [
        { "date": "2026-06-27T00:00:00.000Z", "label": "Jun 27, 2026", "value": 58, "isPartial": false }
    ],
    "interestByRegion": [
        { "geoCode": "US-CA", "geoName": "California", "value": 100 }
    ],
    "relatedQueries": {
        "top": [{ "query": "chatgpt ai", "value": 100, "formattedValue": "100", "isBreakout": false }],
        "rising": [{ "query": "chatgpt astra", "value": 1500, "formattedValue": "+1,500%", "isBreakout": false }]
    },
    "trendsUrl": "https://trends.google.com/trends/explore?q=chatgpt&date=today+3-m&geo=US"
}
```

The **Keywords** table view shows one row per keyword with the summary metrics. The full JSON holds the complete timeline, regions and query lists.

### FAQ

**What do the numbers mean?** Google Trends values are relative, not absolute search volumes. 100 is the peak popularity of a term within the chosen time and location. With **Compare terms**, all keywords in a group share one scale.

**How is `trendDirection` calculated?** It compares the average interest in the last quarter of the period with the first quarter. A change above +10% is `rising`, below −10% is `falling`, and anything in between is `stable`.

**Why residential proxies?** Google blocks data-center IPs from Trends within a few requests. Residential proxies are the default because they are what makes runs reliable. The traffic per keyword is tiny, so the cost is already included in the price.

**Can I schedule it?** Yes. Use Apify **Schedules** to track keywords daily or weekly, and **integrations** to push results to Google Sheets, Slack, a webhook or your database.

**Something not working?** Open an issue on the **Issues** tab. We usually fix problems within days.

# Actor input Schema

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

Keywords to look up in Google Trends. Each keyword returns one row with its interest over time, regions and related queries.

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

Compare keywords in groups of up to 5 on the same 0-100 scale, like typing them into Google Trends together. When off, each keyword is scaled independently.

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

Period to analyze.

## `customTimeRange` (type: `string`):

Optional. Overrides the time range, e.g. "2024-01-01 2024-06-30".

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

Country or region code, e.g. US, GB, DE, TR, US-CA. Leave empty for worldwide.

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

Google Trends category ID (0 = all categories). Examples: 3 = Arts & Entertainment, 7 = Finance, 12 = Business & Industrial, 45 = Health, 71 = Food & Drink, 5 = Computers & Electronics.

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

Which Google search to analyze.

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

Timeline of search interest (0-100) plus average, peak and trend direction.

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

Where the keyword is most popular.

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

Granularity of interest by region. Inside a country, 'Country' automatically becomes 'Subregion'. City and Metro (DMA) are available for large countries such as the US.

## `includeLowVolumeRegions` (type: `boolean`):

Also return regions with low search volume.

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

Top related searches and rising (breakout) searches for each keyword.

## `trendingNowCountries` (type: `array`):

Optional. Country codes (e.g. US, GB, IN) to fetch today's Trending Now searches with traffic estimates and news links.

## `maxConcurrency` (type: `integer`):

Keywords processed in parallel. Higher values may trigger Google rate limits; the Actor retries automatically.

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

Google Trends blocks data-center IPs quickly. Residential proxies (default) give the most reliable results.

## Actor input object example

```json
{
  "searchTerms": [
    "chatgpt",
    "claude ai"
  ],
  "compareTerms": false,
  "timeRange": "today 12-m",
  "geo": "",
  "category": 0,
  "property": "",
  "includeInterestOverTime": true,
  "includeInterestByRegion": true,
  "regionResolution": "COUNTRY",
  "includeLowVolumeRegions": false,
  "includeRelatedQueries": true,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `keywords` (type: `string`):

One row per keyword with summary metrics, timeline, regions and related queries.

## `trending` (type: `string`):

Trending searches per country.

# 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": [
        "chatgpt",
        "claude ai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("orbifetch/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": [
        "chatgpt",
        "claude ai",
    ] }

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

```

## MCP server setup

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