# Google Trends Scraper (`tacps126/google-trends`) Actor

Scrape Google Trends: interest over time, interest by region (countries, states, metros, cities) and related queries for any term or comparison of up to 5 terms, plus Trending Now searches with volume and growth for any country. Only-new trend alerts, instant API.

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

## Pricing

from $2.00 / 1,000 search results

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, Related Queries & Trending Now

Scrape **Google Trends** for any term or comparison of up to 5 terms: **interest over time**, **interest by region** (countries, states, US metro areas or cities), **top and rising related queries** and **related topics**, for any country or region, time range, category and search type (web, images, news, Google Shopping, YouTube). Also reads **Trending Now** for any country: what people search for right now, with **search volume, growth, start and end time, categories and related searches**.

**Built for** SEO and keyword research, content planning, product and market research, brand and competitor tracking, newsrooms, and datasets for AI and analytics.

**At a glance**

- **Price:** $2.50 per 1,000 searches (each search is one row with every part) and $1 per 1,000 Trending Now trends. Free plan: up to 100 results per run.
- **One row per search:** the chart, the regions, the related queries and topics come together, so a comparison of 5 terms is one result, not dozens.
- **Trend alerts:** schedule it with *Only new trends* and get each new trending search once, in Slack, Discord, a webhook or Google Sheets.
- **First run:** the prefilled input returns 2 searches and 25 US trends in a few seconds.

| searchTerms | geo | timeRange | averages | interestOverTime | relatedQueriesRising |
|---|---|---|---|---|---|
| n8n, zapier | US | today 3-m | n8n 48, zapier 49 | 93 daily points | 26 rising queries |

### What you get

**Searches** (`type: "search"`, one row per search):

| Field | Example |
|---|---|
| `searchTerm`, `searchTerms` | `chatgpt`; `["n8n", "zapier"]` for a comparison |
| `geo`, `timeRange`, `startDate`, `endDate`, `resolution` | `US`, `today 3-m`, `2026-08-14`, `2026-11-14`, `DAY` |
| `category`, `searchType` | `0`, `web` / `images` / `news` / `shopping` / `youtube` |
| `interestOverTime` | `[{"date": "2026-08-14", "timestamp": 1786665600, "value": 63, "values": {"chatgpt": 63}}, ...]`; the last point has `isPartial: true` while the period is still running |
| `averages` | `{"n8n": 48, "zapier": 49}` (comparisons) |
| `interestByRegion`, `regionResolution` | `[{"geoCode": "US-CA", "geoName": "California", "value": 100, "values": {...}}]`, `REGION`; cities come with `coordinates` |
| `relatedQueriesTop` | `[{"term": "chatgpt", "query": "chatgpt login", "value": 87, "mentionsTerm": true, "trendsUrl": "..."}]` |
| `relatedQueriesRising` | `[{"term": "chatgpt", "query": "...", "increasePercent": 1900, "formattedValue": "+1,900%", "breakout": false, "mentionsTerm": true}]` |
| `relatedTopicsTop`, `relatedTopicsRising` | `[{"term": "tesla", "title": "Tesla Model Y", "topicType": "SUV", "topicId": "/g/11gb_4f22x", "value": 11}]` |
| `trendsUrl`, `scrapedAt` | the Google Trends page for the search, when it was read |

Values are Google's 0 to 100 scale: 100 is the peak (or the top place) for the period. `mentionsTerm` tells you whether a related query contains a word of your term, handy because Google's rising lists sometimes include unrelated breakouts.

**Trending Now** (`type: "trend"`, one row per trend):

| Field | Example |
|---|---|
| `term`, `geo`, `window` | `warriors vs spurs`, `US`, `24h` |
| `searchVolume`, `searchVolumeText`, `increasePercent` | `200000`, `200K+`, `1000` |
| `active`, `startedAt`, `endedAt` | `true`, `2026-11-13T23:50:00Z`, `null` while still trending |
| `categories`, `categoryIds` | `["Sports"]`, `[17]` |
| `relatedSearches` | `["bucks vs magic", "stephon castle", ...]` |
| `trendsUrl`, `scrapedAt` | the term's Google Trends page, when it was read |

**X (Twitter) trends** (`type: "x-trend"`, one row per trend, from **X trends places**): `term`, `rank`, `postVolume` (when X shows a count), `isHashtag`, `place`, `country`, `geo`, `woeid`, `url` (search on X), `asOf`. Places: `worldwide`, country codes or names, about 400 big cities, or WOEIDs. Billed as trends.

### How to use it

```json
{
  "searchTerms": ["chatgpt", "n8n, zapier, make.com"],
  "geo": "US",
  "timeRange": "today 3-m",
  "regionResolution": "DMA",
  "trendingGeos": ["US", "GB", "IN"],
  "trendingHours": "24",
  "trendingCategories": ["18"],
  "onlyNew": true
}
```

- **Search terms.** One search per line. Separate up to 5 terms with commas to compare them on one chart, or tick *Compare all terms on one chart*.
- **Google Trends URLs.** Paste Explore or Trending Now page links; their terms, place, time range, category and search type are used as they are.
- **Place, time and type.** Worldwide or any country or region code (`US`, `GB`, `US-CA`); past hour to 2004 to present, or your own dates (`2024-01-01 2024-06-30`); any Trends category; web, image, news, Shopping or YouTube search.
- **Region detail.** Countries, subregions (states), US metro areas or cities, with or without low-volume places.
- **Pick the parts.** Interest over time, by region, related queries and related topics are all on by default; turn off what you don't need for faster runs.
- **Trending Now.** Add country or region codes; pick the window (4 hours to 7 days), categories, active trends only or a minimum search volume.
- **Follow new trends.** Turn on *Only new trends* and schedule the Actor: each run returns only trends earlier runs haven't delivered.

### Pricing

**$2.50 per 1,000 searches** and **$1 per 1,000 Trending Now trends**, plus a small start fee per run. A search is charged once, whatever it includes (up to 5 terms, the chart, the regions, the related queries and topics). Searches that fail are not charged; with *Only new trends*, trends you already received are not charged.

Free-plan runs return up to 100 results per run.

### Good to know

- Google Trends shows **relative interest (0 to 100), not search counts**. Compare terms in one search to put them on the same scale. Trending Now shows Google's rounded search volumes (`200K+`).
- Results can also come straight back in the API response (Apify's `run-sync-get-dataset-items` endpoint), handy for apps and AI agents; agents can run it through Apify's MCP server (`https://mcp.apify.com?tools=tacps126/google-trends`).
- Need another source or a custom feed? **Contact tacps126@gmail.com**.

### FAQ

**Does it need a Google account or an API key?** No.

**Why is a part of a search missing?** Google had too little data for it (for example a rare term in a small region), or it could not be read this time. The row lists it under `missingParts` and the run summary says why.

**Why do the numbers differ slightly from what I saw in the browser?** Google Trends samples its data, so values can move by a few points between requests, and the last point of a period is still filling up (`isPartial`).

**Can I get daily data for a long period?** Google picks the detail from the period: up to about 9 months gives daily points, longer gives weekly or monthly ones.

# Actor input Schema

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

One search per line. Put up to 5 terms on one line, separated by commas, to compare them on one chart (`n8n, zapier, make.com`).

## `isMultiple` (type: `boolean`):

Compare all search terms together (up to 5 per chart) instead of one search per line.

## `startUrls` (type: `array`):

Paste Google Trends Explore or Trending Now page URLs. Their terms, place, time range, category and search type are used as they are.

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

Period of the search.

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

Two dates, start and end: `2024-01-01 2024-06-30`. Overrides the time range above.

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

Two-letter country code (`US`, `GB`, `IN`) or region code (`US-CA`, `GB-ENG`). Leave empty for worldwide.

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

Google Trends category id, as in the `cat=` part of a Trends URL (for example 5 = Computers and Electronics, 71 = Food and Drink). 0 = all categories.

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

Which Google search the interest comes from.

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

The chart: search interest from 0 to 100 for each day, week or hour of the period.

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

Where the term is most popular.

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

How detailed interest by region is.

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

Also list places with little search volume.

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

Top and rising searches made by people who searched for the term.

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

Top and rising topics (people, companies, products, places) searched with the term, with Google's topic ids.

## `trendingGeos` (type: `array`):

Country or region codes to read Trending Now for (`US`, `IN`, `GB`, `US-CA`). Leave empty to skip Trending Now.

## `trendingHours` (type: `string`):

Window of the Trending Now list.

## `trendingCategories` (type: `array`):

Only trends in these categories. Leave empty for all.

## `trendingActiveOnly` (type: `boolean`):

Only trends that are still rising now.

## `trendingMinVolume` (type: `integer`):

Only trends with at least this many searches (Google rounds volumes: 100, 200, 500, 1000, 2000, 5000, ...).

## `maxTrendsPerGeo` (type: `integer`):

Cap per Trending Now country, in Google's order.

## `xTrendsPlaces` (type: `array`):

Places to read X trends for: `worldwide`, a country code or name (`US`, `India`), a big city (`New York`, `Mumbai`) or a WOEID number. Leave empty to skip X trends.

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

Language for region and topic names (`en-US`, `de`, `fr`, `ja`).

## `maxItems` (type: `integer`):

Maximum number of results in total (one per search, one per trend).

## `onlyNew` (type: `boolean`):

Trending Now: return only trends that no earlier run with the same input has delivered. Ideal for alerts - you pay only for new trends. Searches always return a fresh result.

## `monitorName` (type: `string`):

Optional name for the "only new" history, so several monitors can run side by side.

## `delivery` (type: `object`):

Webhook: {"webhookUrl": "https://...", "format": "json" | "slack" | "discord", "onlyWhenResults": true, "includeItems": 10}. Google Sheets: {"spreadsheetId": "<id from the sheet URL>", "sheetName": "Sheet1"} plus the service account key below; share the sheet with the service account's e-mail first. Leave empty to only save results in the dataset.

## `googleServiceAccountJson` (type: `string`):

Only for Google Sheets delivery: paste the service account's JSON key. Stored encrypted; the account sees only sheets you share with it.

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

Apify Proxy is used by default; you don't need to change this.

## `tenantId` (type: `string`):

Optional label used to keep separate histories for different clients or teams.

## `debug` (type: `boolean`):

Save extra diagnostics with the run (for support requests).

## Actor input object example

```json
{
  "searchTerms": [
    "chatgpt",
    "n8n, zapier"
  ],
  "isMultiple": false,
  "timeRange": "today 12-m",
  "geo": "",
  "category": 0,
  "searchType": "",
  "includeInterestOverTime": true,
  "includeInterestByRegion": true,
  "regionResolution": "",
  "includeLowVolumeRegions": false,
  "includeRelatedQueries": true,
  "includeRelatedTopics": true,
  "trendingGeos": [
    "US"
  ],
  "trendingHours": "24",
  "trendingActiveOnly": false,
  "maxTrendsPerGeo": 25,
  "language": "en-US",
  "maxItems": 1000,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

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

One row per search (interest over time, by region, related queries) and one per Trending Now trend.

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

Counts, warnings, and whether the run stopped early.

# 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",
        "n8n, zapier"
    ],
    "trendingGeos": [
        "US"
    ],
    "maxTrendsPerGeo": 25,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/google-trends").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",
        "n8n, zapier",
    ],
    "trendingGeos": ["US"],
    "maxTrendsPerGeo": 25,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tacps126/google-trends").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",
    "n8n, zapier"
  ],
  "trendingGeos": [
    "US"
  ],
  "maxTrendsPerGeo": 25,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tacps126/google-trends --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tacps126/google-trends"
        }
    }
}
```

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/Ch6hJzHJHAZzUNsjU/builds/z4mrEUdmFPJKgPQZn/openapi.json
