# Google Trends Scraper: Trending Searches & Keyword Trends API (`scrapepilot/google-trends-scraper-trending-searches-keyword-trends-api`) Actor

Scrape real-time Google Trends at scale without getting blocked. Extract live trending searches across 125 countries, estimated search volumes, and keyword interest over time with regional breakdowns. Instant export to JSON, CSV, or Excel with zero proxy setup.

- **URL**: https://apify.com/scrapepilot/google-trends-scraper-trending-searches-keyword-trends-api.md
- **Developed by:** [Scrape Pilot](https://apify.com/scrapepilot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 google trends scrape results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 - Trending Searches & Keyword Trends, Fast & Reliable

Extract real-time Google Trends data at scale without getting blocked. This enterprise-grade **Google Trends Scraper** turns Google Trends into a clean, predictable API: pull real-time trending searches for 125 countries, or analyze keyword interest over time and interest by region for any search term. Export ready-to-use JSON, CSV, or Excel for SEO keyword research, market analysis, competitor intelligence, and content ideation with zero complex setup.

***

### ⚡ What This Google Trends Scraper Does

- 🔥 **Real-Time Trending Searches**: Discover what is trending right now across 125 countries with search volumes and rising query clusters.
- 📊 **Keyword Trend Analysis**: Historical interest-over-time metrics for any keyword, from the past hour down to 2004.
- 🌍 **Regional & Geo Insights**: Discover search interest breakdown region-by-region inside a country, or country-by-country worldwide.
- 🎯 **Category Filtering**: Filter trending searches across 19 categories (Sports, Technology, Entertainment, Health, Business, Science, and more).
- ⏱️ **Flexible Timeframes**: 4h, 24h, 48h, or 7 days for trending searches; minute, day, week, and month granularity for keyword trends.
- 📈 **Search Volume & Related Queries**: Each trend comes with estimated search volume metrics and related search queries.
- 🛡️ **Built-in Smart Transport**: Intelligent request management, automatic retries, and high-fidelity TLS impersonation for reliable, uninterrupted scraping.

***

### 🎯 Popular Use Cases

- **SEO & Content Marketing**: Identify breakout topics, rising search queries, and seasonal keywords before your competitors to dominate search rankings.
- **Market & Competitive Research**: Monitor brand awareness, consumer demand, product sentiment, and competitor momentum across multiple regions.
- **Social Media & Newsrooms**: Surface viral news and breaking trends immediately to craft timely social posts and high-engagement headlines.
- **E-Commerce & Retail**: Predict seasonal spikes, spot trending products, and identify regional buying interest.
- **Finance, Crypto & Trading**: Track market sentiment and retail investor attention around stocks, tickers, cryptocurrencies, and macro themes.
- **AI Agents & Automated Workflows**: Connect live search interest into LLM workflows, automated daily alerts, and business intelligence dashboards.

***

### 💎 Why Choose This Scraper?

- ✅ **Two Modes in One Solution**: Seamlessly toggle between real-time Trending Searches and historical Keyword Analysis.
- ✅ **125-Country Global Coverage**: Comprehensive international coverage across all continents and languages.
- ✅ **Sub-Second Speed**: Direct backend data querying ensures lightning-fast execution without heavy browser overhead.
- ✅ **Clean, Structured Output**: Uniform, predictable datasets ready for instant export to CSV, Excel, JSON, or API consumption.
- ✅ **Full Backward Compatibility**: Compatible with legacy integration parameters so existing workflows continue running without interruption.

***

### 📋 Choosing a Mode

The scraper operates in two dedicated modes:

1. **`trending` (Trending Searches)**: Extracts the top trending searches, approximate search volume, and related query clusters for any supported country.
2. **`keyword` (Keyword Analysis)**: Extracts historical interest over time (0–100 scale), sub-region rankings, and rising queries for any search term.

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `trending` | Which mode to run: `trending` (Trending Searches) or `keyword` (Keyword Analysis). |
| `trendingSearchesCountry` | String | `US` | Two-letter country code for trending searches (supports 125 countries, e.g. `US`, `GB`, `DE`, `JP`, `IN`, `CA`, `AU`, `FR`, `BR`). |
| `trendingSearchesTimeframe` | String | `24` | Time window for trending searches: `4` (Past 4h), `24` (Past 24h), `48` (Past 48h), or `168` (Past 7 days). |
| `trendingSearchesCategories` | Array | `[]` | Filter trending searches by category IDs (e.g. `["20"]` for Sports, `["6"]` for Tech, `["7"]` for Finance). Leave empty for all categories. |
| `trendingSearchesMaxItems` | Integer | `50` | Maximum trending search results to return (1 to 1000). Free Tier users are capped at 50 results; paid subscribers get up to 1000 results. |
| `keyword` | String | `bitcoin` | The search term to analyze in keyword mode (e.g. `bitcoin`, `artificial intelligence`, `nvidia`). |
| `predefinedTimeframe` | String | `today 12-m` | Timeframe for keyword analysis (see available timeframes table below). |
| `geo` | String | `""` | Two-letter country code (e.g. `US`, `GB`, `DE`). Leave empty for worldwide keyword data. |
| `fetchRegionalData` | Boolean | `false` | Enable to retrieve interest breakdown by region (sub-regions if country chosen, or countries if worldwide). |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Proxy configuration settings. Residential proxies are recommended for heavy usage. |

***

#### ⏱️ Available Time Periods for Keyword Analysis

| Timeframe Value | Description | Data Granularity |
|---|---|---|
| `now 1-h` | Past hour | Minute |
| `now 4-h` | Past 4 hours | Minute |
| `now 1-d` | Past day | Day |
| `now 7-d` | Past 7 days | Day |
| `today 1-m` | Past 30 days | Day |
| `today 3-m` | Past 90 days | Day |
| `today 12-m` | Past 12 months (Default) | Week |
| `today 5-y` | Past 5 years | Week |
| `all` | 2004 – present | Month |

***

### 📥 Example Inputs

#### Example 1: Real-Time Trending Searches

```json
{
  "mode": "trending",
  "trendingSearchesCountry": "US",
  "trendingSearchesTimeframe": "24",
  "trendingSearchesCategories": [],
  "trendingSearchesMaxItems": 50
}
```

#### Example 2: Keyword Interest Over Time & Regional Breakdown

```json
{
  "mode": "keyword",
  "keyword": "bitcoin",
  "predefinedTimeframe": "today 12-m",
  "geo": "US",
  "fetchRegionalData": true
}
```

***

### 📤 Example Output

#### Mode: Trending Searches

```json
{
  "mode": "trending",
  "geo": "US",
  "language": "en-US",
  "trending_searches": [
    {
      "rank": 1,
      "term": "dana white",
      "trend_volume": "500K+",
      "trend_volume_formatted": 500000,
      "related_terms": [
        "dana white",
        "dana white press secretary",
        "who is dana white",
        "trump dana white"
      ],
      "categories": [14, 10],
      "explore_url": "https://trends.google.com/trends/explore?geo=US&q=dana%20white&hl=en-US"
    },
    {
      "rank": 2,
      "term": "mi state vs michigan",
      "trend_volume": "500K+",
      "trend_volume_formatted": 500000,
      "related_terms": [
        "michigan vs michigan state",
        "michigan football",
        "msu football"
      ],
      "categories": [20],
      "explore_url": "https://trends.google.com/trends/explore?geo=US&q=mi%20state%20vs%20michigan&hl=en-US"
    }
  ],
  "trends_url": "https://trends.google.com/trending?geo=US&hl=en-US&hours=24",
  "timeframe_hours": "24",
  "max_items": 50,
  "timestamp": "2026-11-08 15:45:00",
  "top_trending_terms": ["dana white", "mi state vs michigan"],
  "total_trends_found": 597
}
```

#### Mode: Keyword Analysis

```json
{
  "mode": "keyword",
  "keyword": "bitcoin",
  "timeframe": "today 12-m",
  "geo": "US",
  "language": "en-US",
  "trends_url": "https://trends.google.com/trends/explore?geo=US&q=bitcoin&hl=en-US",
  "timeline_data": {
    "bitcoin": {
      "2026-10-18": 15,
      "2026-10-25": 18,
      "2026-11-01": 17,
      "2026-11-08": 14
    },
    "isPartial": {
      "2026-10-18": false,
      "2026-10-25": false,
      "2026-11-01": false,
      "2026-11-08": true
    }
  },
  "region_data": [
    {
      "rank": 1,
      "region": "Wyoming",
      "value": 100
    },
    {
      "rank": 2,
      "region": "Kansas",
      "value": 44
    },
    {
      "rank": 3,
      "region": "Nevada",
      "value": 41
    }
  ],
  "data_granularity": "week",
  "average_interest": 28.5,
  "peak_interest_date": "2026-11-22",
  "current_interest": 14,
  "related_queries": {
    "top": [
      {"query": "bitcoin price", "value": 100},
      {"query": "bitcoin stock", "value": 45}
    ],
    "rising": [
      {"query": "spcx stock", "value": "+1,250%"}
    ]
  }
}
```

***

### 📊 Understanding Google Trends Metrics

- **`timeline_data`**: Values range from 0 to 100, where 100 represents peak search popularity for that term in the selected timeframe, and 50 represents half that popularity.
- **`isPartial`**: Indicates whether a time period is still ongoing (e.g. current week or current day) where final numbers may adjust.
- **`region_data`**: Normalized interest score (0–100) per region or country, showing geographic concentration of search interest.
- **`trend_volume` and `trend_volume_formatted`**: The estimated search volume (e.g. `500K+` as text, and `500000` as a clean number).
- **`related_terms`**: Queries and keywords frequently searched in tandem with the trending topic.

***

### 🔗 Integrations & Automation

Connect this scraper seamlessly to your favorite data pipelines, automation platforms, and AI agents:

- **Make & Zapier**: Schedule daily trend reports sent straight to your Slack, Discord, or email.
- **Google Sheets & Airtable**: Automatically append trending topics every morning.
- **N8N & Webhooks**: Trigger downstream automated content creation whenever a new trend emerges.
- **AI Agents (MCP)**: Provide real-time Google search trends to Claude, Cursor, and LLM applications.

***

### ❓ Frequently Asked Questions

**How many countries are supported for trending searches?**\
Trending searches cover 125 countries worldwide, and keyword analysis supports over 150 countries plus worldwide aggregation.

**Does Google Trends give absolute search volume?**\
Google Trends uses relative popularity indices (0–100) for keyword trends, and approximate volume tiers (`100K+`, `500K+`, `1M+`) for real-time trending searches.

**Can I compare regions for a keyword?**\
Yes! Set `fetchRegionalData` to `true` to receive a ranked breakdown of interest across all states, provinces, or countries.

***

**Keywords**: google trends scraper, google trends api, trending searches, trending topics, keyword trends, google trends data, search trends, seo keyword research, market research tool, trends by country, real-time trends, keyword interest over time, google trends export.

# Actor input Schema

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

Choose between real-time Trending Searches for a country or Keyword Analysis (interest over time & regional breakdown) for a search term.

## `trendingSearchesCountry` (type: `string`):

Two-letter country code for trending searches (supports 125 countries, e.g. 'US', 'GB', 'DE', 'JP', 'IN', 'CA', 'AU', 'FR', 'BR'). Used in trending mode.

## `trendingSearchesTimeframe` (type: `string`):

Trending time window in hours: 4 (Past 4 hours), 24 (Past 24 hours), 48 (Past 48 hours), or 168 (Past 7 days).

## `trendingSearchesCategories` (type: `array`):

Filter trending searches by category IDs (e.g. \['20'] for Sports, \['6'] for Tech, \['7'] for Finance, \['1'] for Entertainment, \['10'] for Health). Leave empty for all categories.

## `trendingSearchesMaxItems` (type: `integer`):

Maximum number of trending search results to return (1 to 1000). Free Tier users are capped at 50 results per run; paid subscribers get up to 1000 results.

## `keyword` (type: `string`):

The search term to analyze in keyword mode (e.g. 'bitcoin', 'chatgpt', 'nvidia', 'python').

## `predefinedTimeframe` (type: `string`):

Time period for keyword interest analysis: hourly, daily, weekly, or monthly historical data.

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

Two-letter country code (e.g. 'US', 'GB', 'DE', 'FR'). Leave empty for worldwide data.

## `fetchRegionalData` (type: `boolean`):

Enable to retrieve interest by sub-region (states/provinces) or by country when worldwide alongside timeline data.

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

Apify Proxy configuration. RESIDENTIAL proxy group is recommended for reliable, high-volume Google Trends scraping.

## Actor input object example

```json
{
  "mode": "trending",
  "trendingSearchesCountry": "US",
  "trendingSearchesTimeframe": "24",
  "trendingSearchesCategories": [],
  "trendingSearchesMaxItems": 50,
  "keyword": "bitcoin",
  "predefinedTimeframe": "today 12-m",
  "geo": "US",
  "fetchRegionalData": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Extracted Google Trends data including real-time trending searches, search volumes, related terms, interest over time, and regional interest.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapepilot/google-trends-scraper-trending-searches-keyword-trends-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("scrapepilot/google-trends-scraper-trending-searches-keyword-trends-api").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 '{}' |
apify call scrapepilot/google-trends-scraper-trending-searches-keyword-trends-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapepilot/google-trends-scraper-trending-searches-keyword-trends-api"
        }
    }
}
```

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/MBgQdJTDyrudi6Hgo/builds/uhOo1HCac0xpmJVoe/openapi.json
