# Google Trends Scraper - Regions, Related & Trending Now (`trakk/google-trends-scraper`) Actor

Get Google Trends data for any keyword: interest over time, interest by region and city, related and breakout searches, side-by-side comparisons with share of search, plus the full Trending Now list with search volume and growth. Adds trend direction, momentum, year-over-year change and seasonality.

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

## Pricing

from $1.90 / 1,000 keyword reports

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

## Google Trends Scraper - Interest, Regions, Related Searches & Trending Now

Get everything Google Trends shows for any keyword, in clean JSON, CSV or Excel, plus ready-made analysis that Google Trends itself does not give you: trend direction, recent momentum, year-over-year change, seasonality and share of search.

The Actor has two modes:

| Mode | What you get |
|---|---|
| 📈 **Keyword trends** | For each search term: interest over time, interest by region, city and metro area, top and rising related searches, and a full set of calculated metrics. Optionally compare up to 5 terms on one scale. |
| 🔥 **Trending now** | The searches that are rising right now in a country: search volume, growth percentage, when the trend started, whether it is still rising, its categories, related searches and news articles. Up to several thousand trends per country. |

### What makes this Actor different

- **Complete Trending now data.** Each trend comes with its search volume (for example `500K+`), growth percentage, start time, active status, categories and all related searches. You get the full list Google shows (300-500 trends per country for the past 24 hours, several thousand for the past 7 days), not just the top 10-20.
- **Analysis included.** Every keyword report already contains the trend direction, change over the period, momentum of the last few points, year-over-year change, best and worst month of the year, volatility, and a list of breakout searches. No spreadsheet work needed.
- **Real comparisons.** With *Compare terms on one chart* the terms are measured on the same scale, exactly like the Google Trends comparison view, and you get share of search, the overall winner, the current leader, how often the lead changed, and which term wins in each region.
- **Topics, not only words.** Google Trends topics group all spellings, languages and synonyms of the same thing. Turn on *Analyse as a topic* for a broader, language-independent measure.
- **Rank any number of terms on one scale.** Google compares at most 5 terms at once. With more terms, the first term is added to every group as an anchor, and all terms (10, 50, 200) are ranked against it in a single table.
- **Change tracking for scheduled runs.** Turn on *Track changes since the last run* and each result shows what moved since the previous run: interest, trend direction, new breakout searches, a new winner, and which trending searches are new.
- **Spikes and seasonal outlook.** Each keyword report lists the dates of sudden bursts of interest and says whether interest usually rises or falls in the coming month.
- **Several countries in one run.** Select multiple countries and receive a separate result for each one.
- **Rate limits handled for you.** Google Trends often refuses requests with "too many requests". Each refused request is repeated automatically on a fresh connection, so you receive complete results instead of rows with missing parts. A row that still misses its core data is clearly marked and is not charged.

### How to use it

1. Choose the mode: **Keyword trends** or **Trending now**.
2. For keyword trends, enter one or more search terms. You can also paste a Google Trends explore URL.
3. Pick countries, the time period, and optionally a category and search type.
4. Click **Start**. Results appear in the **Output** tab, grouped into ready-made views.

#### Example input: analyse keywords

```json
{
  "mode": "keywords",
  "searchTerms": ["bitcoin", "ethereum"],
  "countries": ["US", "GB"],
  "timeRange": "today 12-m",
  "includeRegions": true,
  "includeRelatedQueries": true
}
```

#### Example input: compare brands on one scale

```json
{
  "mode": "keywords",
  "searchTerms": ["nike", "adidas", "puma"],
  "compareTerms": true,
  "countries": ["DE"],
  "timeRange": "today 5-y",
  "category": "18"
}
```

#### Example input: what is trending in sports right now

```json
{
  "mode": "trendingNow",
  "countries": ["US"],
  "trendingHours": "24",
  "trendingCategories": ["17"],
  "minSearchVolume": 10000,
  "maxTrends": 100
}
```

### Input explained

#### Keyword trends

| Field | What it does |
|---|---|
| **Search terms** | The words or phrases to analyse, one per line. A Google Trends explore URL is also accepted: it is analysed exactly as the link shows it (its terms, country, period, category and search type), independently of the other fields. A link with several terms gives a comparison. |
| **Compare terms on one chart** | Off: every term gets its own report on its own 0-100 scale. On: the terms share one scale, so you can see which one is searched more. Google compares at most 5 terms at once; with more terms, the first term is added to every group of 4 others as an anchor, and a ranking of all terms is added (see *Ranking* below). Choose a well-known, steady term as the first one. |
| **Countries** | Empty means Worldwide. Select several countries to get one result per country. |
| **Time period** | From the past hour up to 2004 to today. Short periods give hourly or daily points, long ones weekly or monthly points. |
| **Custom period** | Exact dates, for example `2025-01-01 2025-06-30`. Overrides the time period. |
| **Category** | Restricts the analysis to searches in one category. Useful for words with several meanings. |
| **Search type** | Web, Image, News, YouTube or Google Shopping search. |
| **Analyse as a topic** | Uses the Google Trends topic whose name matches the term exactly. The matched topic is shown in the result (`topicTitle`, `topicType`). If no topic has exactly that name, the exact words are analysed and `notes` says so. You can also enter a topic id such as `/m/05p0rrx` directly. |
| **Interest by region** | Adds states or provinces (or countries for Worldwide), ordered from the highest interest. |
| **Interest by city and metro area** | Adds cities with coordinates and, for the United States, metro areas (DMA). Google shows cities only for a selected country, not for Worldwide. |
| **Related searches** | Adds the top and rising related searches. |

#### Monitoring

| Field | What it does |
|---|---|
| **Track changes since the last run** | Remembers the results of each run in a store in your own Apify account (`google-trends-monitor`). The next run with the same settings adds `changesSinceLastRun` to keyword and comparison results and marks new trending searches. Use it with a schedule. |

#### Trending now

| Field | What it does |
|---|---|
| **Countries** | Trending now is published per country. Empty means United States. |
| **Trending in the past** | 4 hours, 24 hours, 48 hours or 7 days. |
| **Trending categories** | Keep only trends in the selected categories, for example Sports or Technology. |
| **Minimum search volume** | Keep only trends with at least this many searches. |
| **Only trends that are still rising** | Skip trends Google marks as finished. |
| **Max trends per country** | Upper limit of saved trends per country, in Google's ranking order. |
| **Attach news articles** | Attaches the news articles Google shows next to the top trends. |

### Output explained

Each result has a `type`: `keyword`, `comparison` or `trending`. The Output tab offers four views: **Keyword trends**, **Comparisons**, **Trending now** and **Interest over time (raw)**.

#### Keyword report (`type: keyword`)

Google Trends values are **relative**: 100 is the highest interest for the chosen term, place and period, 50 means half of that, 0 means not enough data. They are not absolute search counts.

| Field | Meaning |
|---|---|
| `keyword`, `geoName`, `timeRangeLabel`, `categoryName`, `searchType` | What was measured. |
| `searchedAs`, `topicTitle`, `topicType` | Whether the term was searched as exact words or as a topic. |
| `interestOverTime` | The full series: `date`, `timestamp`, `formattedTime`, `value`, `isPartial`. The last point is often partial, because the current week or day is not over yet. |
| `averageInterest`, `peakInterest`, `peakDate`, `lowestInterest`, `latestInterest` | Basic statistics of the series. `latestInterest` uses the last complete point. |
| `trendDirection` | `rising`, `falling` or `stable`. Compares the average of the last quarter of the period with the first quarter; a change of 15% or more counts as rising or falling. |
| `periodChangePercent` | The same comparison as a percentage. |
| `recentMomentumPercent` | The last few points compared with the few points before them. Shows whether interest is accelerating right now, even inside a long falling trend. |
| `slopePerPoint` | The average change per point from a straight-line fit. |
| `yearOverYearPercent` | The last 12 months compared with the 12 months before, when the period covers at least two years. |
| `bestMonth`, `worstMonth`, `seasonalityIndex`, `monthlyAverages` | Seasonality, when the period covers about a year or more. `seasonalityIndex` is the best month's average divided by the worst month's. A value near 1 means no seasonality. |
| `volatility` | Standard deviation divided by the average. Higher means a more spiky series. |
| `spikeCount`, `spikes` | Sudden bursts: points where interest reached at least twice the level of the four points before it (and at least 25). Each spike has its `date`, `value` and `timesNormalLevel`. Usually caused by news, launches or events. |
| `nextMonthSeasonalChangePercent`, `seasonalOutlook` | How interest in the coming calendar month usually compares with the current month in this series: `usually rises`, `usually falls` or `usually flat`. A seasonal pattern, not a forecast of news. |
| `topicSuggestions` | When *Analyse as a topic* finds no topic with exactly the entered name, the closest topics with their `topicId`. Enter a `topicId` as a search term to analyse that topic. |
| `changesSinceLastRun` | With change tracking: `latestInterestChange`, `averageInterestChange`, `trendDirectionChanged`, `newBreakoutQueries`, `topRegionChanged` and the previous values. `firstRun: true` on the first run. |
| `isBreakoutPeriod` | `true` when the latest point is near the top while the average is low, a typical sign of a sudden spike. |
| `interestByRegion`, `topRegions`, `regionsWithData` | Where the term is most popular. |
| `interestByCity`, `interestByMetro` | Cities with `latitude` and `longitude`, and US metro areas. |
| `relatedQueriesTop`, `relatedQueriesRising` | Related searches with `value`, `formattedValue`, `isBreakout` and a Google Trends link. |
| `topQueries`, `breakoutQueries`, `fastestRisingQueries` | Short lists for quick reading. A breakout is a search that grew by more than 5000%. |
| `dataStatus`, `missingData` | `complete`, `partial` (an optional block could not be read) or `no_search_interest` (Google has too little data for this term). |
| `trendsUrl` | Opens the same view on Google Trends. |

Example (shortened):

```json
{
  "type": "keyword",
  "keyword": "bitcoin",
  "geoName": "United States",
  "timeRangeLabel": "Past 12 months",
  "averageInterest": 32.17,
  "peakInterest": 100,
  "peakDate": "2026-02-01",
  "latestInterest": 24,
  "trendDirection": "falling",
  "periodChangePercent": -55.6,
  "recentMomentumPercent": 23.1,
  "bestMonth": "February",
  "worstMonth": "October",
  "topRegions": ["Wyoming", "Nevada", "Florida", "Arizona", "Texas"],
  "breakoutQueries": ["spcx stock"],
  "dataStatus": "complete"
}
```

#### Comparison report (`type: comparison`)

| Field | Meaning |
|---|---|
| `keywords` | The compared terms. |
| `timeline` | One point per date with a `values` object holding every term's value on the shared scale. |
| `averageInterest`, `peakInterest` | Per term, on the shared scale. |
| `shareOfSearchPercent` | Each term's share of the combined average interest. A common way to estimate brand share of search. |
| `leadOverRunnerUpPercent` | How much higher the winner's average is than the second term's. |
| `anchorTerm` | The anchor term, when more than 5 terms were compared. |
| `changesSinceLastRun` | With change tracking: `winnerChanged`, `previousWinner` and the change of each term's share of search. |
| `winner`, `currentLeader`, `leaderChanges` | The term with the highest average, the leader at the latest complete point, and how many times the lead switched. |
| `recentMomentumPercent` | Momentum of each term. |
| `interestByRegion`, `regionsWon` | Each region's values per term with its `leader`, and how many regions each term wins. |
| `relatedQueries` | Top, rising and breakout searches for each term. |

#### Trending search (`type: trending`)

| Field | Meaning |
|---|---|
| `position`, `rank` | Position in your filtered list and in Google's full list. |
| `title` | The trending search. |
| `searchVolume`, `searchVolumeLabel` | Approximate number of searches in the period, for example `500000` / `500K+`. |
| `increasePercent` | How much searches grew compared with normal, in percent. |
| `startedAt`, `endedAt`, `isActive`, `trendingForHours` | When the trend started, whether it has ended, and how long it has been trending. |
| `categories` | Google's categories for the trend, for example Sports or Technology. |
| `relatedQueries`, `relatedQueryCount` | All searches Google groups into this trend. |
| `newsArticles`, `picture`, `newsArticleCount` | News Google shows next to the trend (title, link, source, image). Google publishes article details only for its top 10 trends per country, so other trends have an empty list. `newsArticleCount` is the number of articles Google links to the trend. |
| `isNewSinceLastRun`, `firstSeenAt` | With change tracking: whether the trend appeared since the previous run, and when it was first seen (history is kept for 14 days). |
| `trendsUrl` | Opens the trend on Google Trends. |

#### Ranking (`type: ranking`)

Added when more than 5 terms are compared. One row per term and country, also saved as the `RANKING` record.

| Field | Meaning |
|---|---|
| `rank`, `term` | Position in the ranking. |
| `interestVsAnchorPercent` | The term's average interest as a percentage of the anchor term's average, measured in the same comparison. 200 means searched twice as much as the anchor, 50 means half. |
| `anchorTerm`, `isAnchor` | The anchor term (always 100). |
| `averageInterestInGroup` | The term's average in its own comparison group. |

### Run summary

The `OUTPUT` record in the key-value store contains the run status, how many results of each type were saved, any keyword or country that could not be collected, input warnings and request statistics. For Trending now it also has `trendingSummary`: the number of trends, active trends, trends per category and, with change tracking, new trends per country. Ranking rows are free.

### Pricing

You pay per result. Results are charged only after they are saved; rows with missing core data, failed items and diagnostics are free.

| Event | Price | When |
|---|---|---|
| Keyword report | $0.0019 | One saved keyword report for one country, with all requested blocks. |
| Comparison report | $0.0035 | One saved comparison of up to 5 terms for one country. |
| Trending search | $0.0008 | One saved trending search. |
| Actor start | $0.00005 | Once per run. |

For example, 10 keywords in 3 countries cost 30 × $0.0019 = $0.057. The full 24-hour Trending now list for one country (about 450 trends) costs about $0.36; use *Max trends per country* or the filters to keep only what you need.

### Tips

- To rank a long list of keywords, turn on **Compare terms on one chart** and put a popular, steady term first; it becomes the anchor.
- Use **Compare terms on one chart** whenever you want to know which term is searched more. Separate reports are each scaled to their own peak, so their values cannot be compared directly.
- Add a **category** for ambiguous words, for example "jaguar" in Autos & Vehicles.
- Long periods (5 years or 2004 to today) unlock **year-over-year** and **seasonality** metrics.
- For daily monitoring, schedule the Actor and connect it to Google Sheets, Slack, Make or Zapier from the **Integrations** tab.

### Limitations

- Google Trends publishes relative interest, not exact search counts. Only Trending now publishes approximate search volumes.
- Very rare terms can have no data in small countries or short periods; such rows are marked `no_search_interest` and are free.
- Google currently returns no related topics, so the Actor reports related searches only.

# Actor input Schema

## `mode` (type: `string`):

Keyword trends analyses your search terms. Trending now lists the searches that are rising right now in the selected countries, with search volume and growth.

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

Words or phrases to analyse, one per line. You can also paste a Google Trends explore URL; its terms, country, period and category are used. Used in Keyword trends mode.

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

Put the terms on the same 0-100 scale, exactly like the Google Trends comparison view. Adds share of search, the winner and which term leads in each region. Google compares up to 5 terms at once; with more terms the first term is added to every group as an anchor and all terms are ranked on one scale.

## `countries` (type: `array`):

Leave empty for Worldwide (Keyword trends) or United States (Trending now). Select several countries to get a separate result for each one in a single run.

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

The period Google Trends covers. Short periods give hourly or daily points, long periods give weekly or monthly points.

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

Exact dates instead of a preset period, written as start and end: 2025-01-01 2025-06-30. Overrides Time period.

## `category` (type: `string`):

Limit the analysis to searches in one category, for example to separate Apple the company (Computers & Electronics) from apple the fruit (Food & Drink).

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

Which Google search property to measure. YouTube search shows video demand, Google Shopping shows product demand.

## `searchAsTopic` (type: `boolean`):

Google Trends topics group every spelling, language and synonym of the same thing (for example Bitcoin the cryptocurrency). Turn on for a broader, language-independent measure. The matched topic is shown in the result.

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

Add where the term is most popular: states or provinces for a country, countries for Worldwide.

## `includeCities` (type: `boolean`):

Add the cities with the highest interest, with coordinates. For the United States, metro areas (DMA) are added too.

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

Add the top and rising related searches, with breakout searches (growth above 5000%) highlighted.

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

How far back Trending now looks. The past 24 hours usually returns 300-500 trends per country, the past 7 days several thousand.

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

Keep only trends in these categories. Leave empty for all categories.

## `minSearchVolume` (type: `integer`):

Keep only trends with at least this many searches in the period, for example 10000. Leave empty to keep all.

## `onlyActiveTrends` (type: `boolean`):

Skip trends that Google marks as finished.

## `maxTrends` (type: `integer`):

Upper limit of trending searches saved for each country, in Google's ranking order.

## `includeNews` (type: `boolean`):

Attach the news articles Google shows next to the top trends.

## `trackChanges` (type: `boolean`):

For scheduled runs: each result shows what changed since the previous run with the same settings (interest, trend direction, new breakout searches, new winner), and Trending now marks trends that are new. History is kept in your own Apify account.

## Actor input object example

```json
{
  "mode": "keywords",
  "searchTerms": [
    "bitcoin",
    "ethereum"
  ],
  "compareTerms": false,
  "timeRange": "today 12-m",
  "category": "0",
  "searchType": "web",
  "searchAsTopic": false,
  "includeRegions": true,
  "includeCities": false,
  "includeRelatedQueries": true,
  "trendingHours": "24",
  "onlyActiveTrends": false,
  "maxTrends": 50,
  "includeNews": true,
  "trackChanges": false
}
```

# Actor output Schema

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

No description

## `comparison` (type: `string`):

No description

## `ranking` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "mode": "keywords",
    "searchTerms": [
        "bitcoin",
        "ethereum"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("trakk/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 '{
  "mode": "keywords",
  "searchTerms": [
    "bitcoin",
    "ethereum"
  ]
}' |
apify call trakk/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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