# Google Trends Scraper, Keyword Ideas & Alerts · $1.5/1K (`xpandalabs/google-trends-monitor`) Actor

Google Trends from $1.50 per 1,000 keywords, no start fee. Rising/falling verdict, interest over time, regions, rising and breakout searches; long-tail keyword ideas from Google and YouTube autocomplete scored on Trends; compare unlimited keywords and countries; trending now; alerts.

- **URL**: https://apify.com/xpandalabs/google-trends-monitor.md
- **Developed by:** [Weijie Xiong](https://apify.com/xpandalabs) (community)
- **Categories:** SEO tools, Agents, MCP servers
- **Features:** Limited permissions
- **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.
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, Keyword Ideas & Alerts

**$1.50 per 1,000 keywords. No start fee, no proxy fee.** One row per keyword with the answer already worked out: is it **rising, falling or stable** (and by how much), current and average interest, peak date, interest over time, top countries or regions, top and **rising related searches** with breakout flags. Compare **any number of keywords on one 0–100 scale** (not just 5) and **across countries**, find **long-tail keyword ideas** from Google and YouTube autocomplete with an **opportunity score**, see what is **trending now** in any country, and get alerts when **new rising searches** or **new ideas** appear.

### What you can do with it

| You want to | Set this |
|---|---|
| Is "Claude" rising or falling? | Keywords `Claude` |
| Reuse a comparison you set up on Google Trends | Paste the Google Trends link into Keywords |
| Compare 20 brands or products on one scale | Keywords: all 20, Compare keywords **Together** |
| Track 100 unrelated keywords | Compare keywords **Separately** |
| Find new search terms before they take off | Related searches on, Track changes on, daily schedule: read `newRisingQueries` and `breakoutQueries` |
| What is trending in the US and Japan right now | Trending now `US`, `JP` |
| Long-tail ideas for a niche, ranked by opportunity | Seed keywords for ideas `ai video` |
| Where a product is taking off: US, UK, Germany, Japan | Countries `US`, `GB`, `DE`, `JP` |
| Seasonality over 5 years, or a custom date range | Time range `Past 5 years`, or Start date / End date |
| One country, state or city | Location `US`, `US-CA`, `GB-ENG`; Region level `Cities` |
| YouTube, news, image or shopping searches | Search type |

### How to use it

1. Enter your **keywords**, one per line, in any language.
2. Pick a **time range** and **location** (empty = worldwide).
3. Click **Start**. A few keywords usually take 10–60 seconds, depending on how hard Google Trends is rate-limiting at that moment; 40 keywords take about 2 minutes.
4. Download JSON, CSV or Excel, or open the **Report (HTML)** in the Output tab: sparklines, trend verdicts and rising searches at a glance.

Empty input runs an example (ChatGPT, Claude, Gemini over the past 12 months) so you can see the output first.

### Keyword ideas (long-tail finder)

Give one or more **seed keywords**. For each seed the Actor:

1. Collects **Google** (and optionally **YouTube**) autocomplete suggestions for the seed, seed + a…z, question forms (how, what, best, free…) and modifiers (for, with, vs, alternative…). One seed usually yields 100–300 real searches.
2. Ranks the ideas by how often and how high Google suggests them, and counts each idea's **long-tail depth** (how many longer searches extend it).
3. Checks the top ideas (20 by default) on **Google Trends** against the seed: rising or falling, growth %, and **search interest relative to the seed**.
4. Combines that into an **opportunity score** from 0 to 100: growth (up to 55), interest vs the seed (up to 30), long-tail depth (up to 15). Many long-tail searches are too small for Google Trends to measure: they show `trend: "no data"` and no score, but they are still real searches people type (Google suggests them). Ideas with under 1% of the seed's interest are marked `low volume` (Google's whole-number data is too coarse to measure their growth) and get no growth credit.

```json
{
  "type": "idea", "seed": "ai video", "idea": "ai video generator", "rank": 1,
  "opportunityScore": 24, "trend": "falling", "changePct": -15.3, "interestVsSeedPct": 16.1,
  "longTailCount": 8, "timesSuggested": 7, "sources": ["google", "youtube"], "foundVia": ["alphabet", "questions", "seed"],
  "seedTrend": "stable", "isNew": true
}
```

Run it on a schedule with **Only return changes** to get only ideas that were not suggested before: a radar for new search terms in your niche. Ideas use the first location (or first of Countries) and the language you set; non-English seeds work too.

### Compare countries

Put several codes in **Countries** (`US`, `GB`, `DE`, `JP`, `BR`, or `WORLDWIDE`) and every keyword is checked in each one, one row per keyword and country, so you can see where it is rising and where it is fading.

### Pricing

Pay only for results: one result = one keyword row, one keyword idea checked on Google Trends, or one trending search. Ideas that are only collected from autocomplete (beyond the top ones checked on Trends) cost a third. Apify's free plan includes $5 of credit every month, about 3,300 keywords.

| | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| Per result | $0.0015 | $0.00135 | $0.0012 | $0.00105 |
| Keyword idea not checked on Trends | $0.0005 | $0.00045 | $0.0004 | $0.00035 |

No **start fee**, so a single-keyword lookup costs $0.0015, which suits AI agents and automations that check one or two keywords at a time. With **Only return changes** on, unchanged keywords are free. Set a maximum cost per run in the run options and the Actor stops there.

### Output

```json
{
  "type": "keyword",
  "keyword": "Claude",
  "geo": "worldwide",
  "timeRange": "past_12_months",
  "trend": "rising",
  "changePct": 29.1,
  "currentInterest": 28,
  "averageInterest": 16.3,
  "peakInterest": 28,
  "peakDate": "2026-11-08",
  "comparedWith": ["ChatGPT", "Gemini"],
  "sharedScale": true,
  "timeline": [{ "date": "2025-11-16", "value": 5 }, "..."],
  "topRegions": [{ "geo": "CN", "name": "China", "value": 100 }, { "geo": "SG", "name": "Singapore", "value": 47 }],
  "topQueries": [{ "query": "ai claude", "value": 100 }, { "query": "claude code", "value": 54 }],
  "risingQueries": [{ "query": "claude cowork", "growth": "Breakout", "growthPct": null, "isBreakout": true }],
  "breakoutQueries": ["claude cowork", "claude fable 5", "claude mythos"],
  "newRisingQueries": ["claude fable 5"],
  "changeType": "new rising queries",
  "googleTrendsUrl": "https://trends.google.com/trends/explore?q=ChatGPT%2CClaude%2CGemini&date=today+12-m"
}
```

| Field | Meaning |
|---|---|
| `trend`, `changePct` | `rising` / `falling` / `stable`: the latest sixth of the period vs the sixth before it (for 12 months: the last 2 months vs the 2 before). ±15% or more counts as rising or falling. |
| `currentInterest`, `averageInterest`, `peakInterest`, `peakDate` | Google's 0–100 interest. The partial current day or week is excluded from these numbers but kept in `timeline` with `isPartial: true`. |
| `sharedScale`, `comparedWith` | `true` when keywords were compared together, so their values are directly comparable |
| `topRegions` | Where the keyword is searched most (0–100) |
| `topQueries`, `risingQueries`, `breakoutQueries` | Related searches; "Breakout" means growth above 5,000% |
| `newRisingQueries`, `changeType` | Rising searches that were not there on the previous run; `new`, `new rising queries`, `trend changed` or `unchanged` |
| `hasData` | `false` when Google has too little search volume for this keyword, place and time |
| `keywordName` | Google's display name when the keyword is a topic ID from a Trends link (e.g. `/m/07c1v` → `Technology`) |

Trending now rows (`"type": "trending"`): `geo`, `rank`, `title`, `approxTraffic` (e.g. `200K+`), `approxTrafficNumber`, `startedAt`, `news` (title, url, source), `isNew`.

### Comparing more than 5 keywords

Google Trends compares at most 5 terms at a time. With **Together**, this Actor compares any number: it picks the strongest of the first 5 as an anchor, repeats it in every further group of 4, and rescales each group through the anchor, so all keywords end up on one 0–100 scale. Values for keywords that are tiny next to the anchor are approximate; the run log warns when that happens.

### Alerts on a schedule

1. Set your keywords (and/or trending countries), turn on **Only return changes**.
2. Save it as a task and add a daily or hourly schedule.
3. Add an integration (email, Slack, webhook, Make, Zapier, n8n) on "run succeeded".

The first run is the baseline. After that you only get, and only pay for, keywords with new rising searches or a changed trend, and newly trending searches.

### API

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("xpandalabs/google-trends-monitor").call(run_input={
    "keywords": ["ChatGPT", "Claude", "Gemini"],
    "timeRange": "past_90_days",
    "geo": "US",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["keyword"], row["trend"], row["changePct"], row["breakoutQueries"][:3])
```

More runnable examples (Python, JavaScript, cURL, n8n): [github.com/bigxiong001-pixel/google-trends-api](https://github.com/bigxiong001-pixel/google-trends-api).

AI assistants (Claude, ChatGPT, Cursor and others) can call it as a tool through the [Apify MCP server](https://mcp.apify.com) to answer "is X getting more popular?", "where is Y searched most?" or "what's trending in Japan?" with live data.

### What it does not do

So you know before you run it:

- **No absolute search volumes.** Google Trends only publishes relative interest from 0 to 100. *Trending now* rows give Google's approximate counts (e.g. 200K+).
- **Related topics are not included**, only related searches (top and rising).
- **Small keywords often have no data.** Google needs a minimum volume; these rows show `hasData: false`, and many long-tail keyword ideas show `trend: "no data"`.
- **Comparing more than 5 keywords is stitched through an anchor keyword.** Values for keywords that are tiny next to the anchor are approximate (the log warns you).
- **Run time depends on Google's rate limits.** A few keywords usually take 10–60 seconds, but when Google is throttling it can take a few minutes; the Actor waits and retries rather than failing.
- **Keyword ideas come from autocomplete**, not from an ads keyword planner: they are real searches people type, without monthly search volumes or cost-per-click.

### FAQ

**Is there an official Google Trends API?** Google opened an alpha Trends API to a small group of testers; most people cannot get access. This Actor reads the same data the Google Trends website shows.

**Why 0–100 and not search volumes?** Google Trends only publishes relative interest: 100 is the peak for the chosen keywords, place and time. Trending now gives approximate search counts (e.g. 200K+).

**Why does a keyword show `hasData: false`?** Google needs a minimum search volume. Try a wider location, a longer time range or a more common spelling.

**How reliable is it?** Google Trends limits fast requests; the Actor retries automatically through fresh IPs and falls back to residential proxies, so you don't need to manage that.

### Notes

The data is the public Google Trends website. You are responsible for using it in line with applicable laws and Google's terms. Questions or feature requests: open an issue on the Issues tab, usually answered within a day.

### In other languages

- **中文**：Google 趋势数据爬虫 / API：关键词热度走势、上升或下降判断、地区分布、飙升搜索词、长尾关键词挖掘、各国实时热搜、新词提醒。
- **Deutsch**: Google Trends Scraper: Suchinteresse, steigende Suchanfragen, Keyword-Ideen, aktuelle Trends nach Land.
- **Français** : scraper Google Tendances : intérêt de recherche, requêtes en hausse, idées de mots-clés, tendances du moment.
- **Español**: scraper de Google Trends: interés de búsqueda, búsquedas en aumento, ideas de palabras clave, tendencias actuales.
- **Italiano**: scraper di Google Trends: interesse di ricerca, query in crescita, idee di parole chiave.
- **日本語**：Google トレンドのデータ取得：検索インタレスト、急上昇ワード、ロングテールキーワード、国別の急上昇。

### More from XPanda Labs

- [Google Hotels Scraper & Rate Monitor](https://apify.com/xpandalabs/google-hotels-rate-monitor): hotel prices, every booking site's rate, rate parity, competitor rate shopping
- [Google Flights Scraper & Fare Monitor](https://apify.com/xpandalabs/google-flights-fare-monitor): flight prices, cheapest-day fare calendar, price drop alerts
- [Google Shopping Scraper & Price Monitor](https://apify.com/xpandalabs/google-shopping-price-monitor): product prices, discounts, sellers, price-drop alerts in 31 countries

### Changelog

- **0.3** (November 2026): paste Google Trends explore links as input; each link keeps its own keywords, location, dates, category and search type.
- **0.2** (November 2026): keyword ideas from Google and YouTube autocomplete with Trends validation and opportunity score; compare keywords across countries.
- **0.1** (November 2026): first release. Trend verdict, compare any number of keywords on one scale, regions down to city level, rising and breakout searches, trending now by country, new-rising-search alerts, HTML report.

# Actor input Schema

## `keywords` (type: `array`):

Search terms, one per line, in any language. Each keyword returns one row: interest over time, trend (rising / falling / stable), peak, top regions and related searches. Any number of keywords.<br>You can also paste <b>Google Trends links</b> (trends.google.com/trends/explore?q=...): each link is run with its own keywords, location, dates, category and search type, exactly as on the website.

## `compareMode` (type: `string`):

<b>Together</b>: keywords are directly comparable, as when you compare terms on Google Trends. Works for any number of keywords, not only 5.<br><b>Separately</b>: each keyword scaled on its own, best for watching many unrelated keywords.

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

Ignored when you set a start or end date.

## `startDate` (type: `string`):

Custom range, YYYY-MM-DD, from 2004-01-01.

## `endDate` (type: `string`):

Custom range, YYYY-MM-DD. Empty = today.

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

Empty = worldwide. A 2-letter country code (US, GB, JP, DE, TW, ...) or a region such as US-CA or GB-ENG.

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

Check every keyword in each of these countries (2-letter codes; WORLDWIDE for worldwide) and see where it is rising or falling. Overrides Location.

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

Which Google search to measure: web (default), images, news, Google Shopping or YouTube.

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

Google Trends category number, e.g. 0 = all, 5 = Computers & Electronics, 7 = Finance, 71 = Food & Drink. Use it to separate meanings (apple the fruit vs Apple the company).

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

Top and rising related searches per keyword, with breakout flags. Rising searches are where new topics show up first.

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

Where each keyword is searched most.

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

Level of detail for top regions.

## `maxRegions` (type: `integer`):

0 = all.

## `includeTimeline` (type: `boolean`):

The full time series (date and 0–100 value). Turn off for smaller rows when you only need the headline numbers.

## `ideaSeeds` (type: `array`):

Find long-tail keyword ideas: each seed is expanded through Google (and optionally YouTube) autocomplete with a–z, question and modifier variations. The top ideas are then checked on Google Trends: rising or falling, interest relative to the seed, and an opportunity score.

## `ideaSources` (type: `array`):

Where to collect autocomplete suggestions.

## `ideaModifiers` (type: `array`):

Variations sent to autocomplete for every seed. More variations = more ideas.

## `maxIdeasPerSeed` (type: `integer`):

Ideas are ranked by how often and how high Google suggests them.

## `validateTopIdeas` (type: `integer`):

How many of the top ideas per seed get a Google Trends check (trend, growth, interest vs seed, opportunity score). 0 = suggestions only.

## `trendingNow` (type: `array`):

2-letter country codes. Returns what is trending in Google Search right now in each country: search, approximate searches, start time and the news behind it. Works with or without keywords.

## `maxTrendingPerCountry` (type: `integer`):

How many of the current top trending searches to return per country.

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

Compare with the previous run: <code>newRisingQueries</code> lists rising searches that were not there last time, <code>changeType</code> flags new rising searches or a changed trend, trending searches get <code>isNew</code>.

## `onlyChanges` (type: `boolean`):

Return only keywords with new rising searches or a changed trend, and only newly trending searches. Unchanged rows are not saved and not charged. The first run returns everything as a baseline. Combine with a daily schedule for alerts.

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

Language for region and topic names, e.g. en-US, de, ja, zh-TW.

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

Keep low: Google Trends limits fast requests.

## `maxRetries` (type: `integer`):

Fresh IP retries when Google Trends rate-limits a request.

## `residentialFallback` (type: `boolean`):

Retry through residential proxies if datacenter IPs keep being rate-limited.

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

Apify Proxy (datacenter) works; keep the default.

## Actor input object example

```json
{
  "keywords": [
    "ChatGPT",
    "Claude",
    "Gemini"
  ],
  "compareMode": "together",
  "timeRange": "past_12_months",
  "geo": "US",
  "countries": [
    "US",
    "GB",
    "DE",
    "JP",
    "BR"
  ],
  "searchType": "web",
  "category": 0,
  "includeRelatedQueries": true,
  "includeRegions": true,
  "regionResolution": "auto",
  "maxRegions": 15,
  "includeTimeline": true,
  "ideaSeeds": [
    "ai video",
    "air fryer"
  ],
  "ideaSources": [
    "google"
  ],
  "ideaModifiers": [
    "alphabet",
    "questions"
  ],
  "maxIdeasPerSeed": 50,
  "validateTopIdeas": 20,
  "trendingNow": [
    "US",
    "GB",
    "JP"
  ],
  "maxTrendingPerCountry": 25,
  "trackChanges": true,
  "onlyChanges": false,
  "language": "en-US",
  "maxConcurrency": 3,
  "maxRetries": 8,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per keyword: trend verdict, interest over time, regions and related searches.

## `ideas` (type: `string`):

Long-tail ideas with opportunity score.

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

What is trending in Google Search now, per country.

## `report` (type: `string`):

Sparklines, trend verdicts and rising searches at a glance.

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

Counts, failures and settings used.

# 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 = {
    "keywords": [
        "ChatGPT",
        "Claude",
        "Gemini"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xpandalabs/google-trends-monitor").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 = {
    "keywords": [
        "ChatGPT",
        "Claude",
        "Gemini",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("xpandalabs/google-trends-monitor").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 '{
  "keywords": [
    "ChatGPT",
    "Claude",
    "Gemini"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call xpandalabs/google-trends-monitor --silent --output-dataset

```

## MCP server setup

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

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/6D0Dg5OoC7qKIFi3Y/builds/022im5FbTldjhBkJX/openapi.json
