# Google Trends Scraper - Trending Searches & Keyword Interest (`pink_comic/google-trends-scraper`) Actor

Scrape Google Trends: daily trending searches with traffic and news, plus keyword interest over time, top and rising related queries and regions. No login.

- **URL**: https://apify.com/pink_comic/google-trends-scraper.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** SEO tools, News, AI
- **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 trend or keyword results

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 - Trending Searches & Keyword Interest

Get **Google Trends data as clean JSON**: today's trending searches with approximate traffic and the news stories behind them, plus per-keyword **interest over time, top and rising related queries and interest by region**. No Google account, no API key, no browser. Pay only for the rows you get.

### What you get

- **Trending now** for any country (US, GB, DE, FR, IN, BR, JP and more): trend, approximate search traffic (e.g. 20,000+), start time and linked news articles with sources.
- **Keyword mode**: one row per keyword and country with the 0-100 interest index over time, average / peak / latest interest, top and rising related queries ("Breakout" flagged) and optional interest by region.
- **Search types**: web, news, YouTube, images and Google Shopping.
- **Timeframes** from the past hour to 2004 - present, or any custom date range.
- **Fair pricing**: $0.002 per row + $0.002 per run, no minimum.

### Use cases

- **SEO and content teams**: find rising queries before they peak and validate topics.
- **Newsrooms and social teams**: monitor what is trending in each market, with sources.
- **E-commerce and trading**: track seasonal demand, product interest and breakout searches.
- **Researchers and AI agents**: feed time series and trend lists into notebooks, dashboards and LLM workflows.

### Input examples

Trending searches in three countries:

```json
{ "mode": "trending", "geos": ["US", "GB", "DE"] }
```

Keyword research with interest over time and related queries:

```json
{ "mode": "keywords", "keywords": ["bitcoin", "chatgpt"], "geos": ["US"], "timeframe": "12m" }
```

News search interest for the past week, with regions:

```json
{ "mode": "keywords", "keywords": ["ozempic"], "geos": ["GB", "worldwide"], "timeframe": "7d", "property": "news", "includeRegions": true }
```

### Sample output (trending)

```json
{
  "approxTraffic": "20000+",
  "approxTrafficNumber": 20000,
  "geo": "US",
  "news": [
    {
      "snippet": "",
      "source": "The New York Times",
      "title": "The World Prepares for Grand Theft Auto VI, an Outlaw Blockbuster",
      "url": "https://www.nytimes.com/2026/11/17/arts/grand-theft-auto-vi-hype-success.html"
    }
  ],
  "newsCount": 3,
  "publishedAt": "2026-11-17T17:20:00Z",
  "rank": 1,
  "scrapedAt": "2026-11-17T17:39:48Z",
  "trend": "grand theft auto vi",
  "url": "https://trends.google.com/trending?geo=US"
}
```

### Sample output (keywords)

```json
{
  "averageInterest": 32.7,
  "category": 0,
  "dataPoints": 53,
  "geo": "US",
  "interestOverTime": [
    {
      "isPartial": false,
      "time": "Nov 16 – 22, 2025",
      "timestamp": "1763251200",
      "value": 68
    },
    {
      "isPartial": false,
      "time": "Nov 23 – 29, 2025",
      "timestamp": "1763856000",
      "value": 47
    },
    {
      "isPartial": false,
      "time": "Nov 30 – Dec 6, 2025",
      "timestamp": "1764460800",
      "value": 50
    }
  ],
  "keyword": "bitcoin",
  "latestInterest": 23,
  "peakInterest": 100,
  "property": "web",
  "relatedQueriesRising": [
    {
      "formattedValue": "Breakout",
      "query": "how to buy bitcoin safely",
      "value": 7800
    },
    {
      "formattedValue": "+2,950%",
      "query": "space x stock price",
      "value": 2950
    },
    {
      "formattedValue": "+2,700%",
      "query": "spacex stock",
      "value": 2700
    }
  ],
  "relatedQueriesTop": [
    {
      "formattedValue": "100",
      "query": "bitcoin price",
      "value": 100
    },
    {
      "formattedValue": "19",
      "query": "bitcoin today",
      "value": 19
    },
    {
      "formattedValue": "18",
      "query": "bitcoin stock",
      "value": 18
    }
  ],
  "relatedTopicsRising": null,
  "relatedTopicsTop": null,
  "scrapedAt": "2026-11-17T17:39:48Z",
  "timeframe": "today 12-m",
  "url": "https://trends.google.com/trends/explore?q=bitcoin&geo=US&date=today+12-m"
}
```

### FAQ

**How many trending searches per country?** Google's public trending feed lists the current top searches (about 10 per country per run). Schedule the actor to build a history.

**What does the interest value mean?** Google Trends indexes interest from 0 to 100 relative to the peak in the chosen range; it is not an absolute search volume. Trending rows carry Google's approximate traffic label instead.

**Why can some keywords return fewer fields?** Google withholds related queries or regions when there is too little search volume. Those fields come back empty rather than failing the run.

**Does it need a login or proxy?** No. Data is requested anonymously from Google's public Trends endpoints. Google throttles aggressive use, so the actor paces requests and retries automatically; very large keyword lists are best split across several runs.

**Is the data public?** Yes, everything is what anyone sees on trends.google.com. Use it according to Google's terms and your local laws.

**How do I run it often?** Use Apify schedules, the API, or integrations (Make, n8n, Zapier, Google Sheets) to collect trends daily.

# Actor input Schema

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

Trending now returns the current trending searches per country with approximate traffic and news stories. Keywords returns one row per keyword and country with interest over time and related queries.

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

Used in Keywords mode. One row per keyword and country, e.g. 'bitcoin', 'electric car', 'chatgpt'.

## `geos` (type: `array`):

Country codes like US, GB, DE, FR, IN, BR, JP or sub-regions like US-CA. Use 'worldwide' (Keywords mode) for global data. Default: US.

## `timeframe` (type: `string`):

Time range for interest over time. You can also enter a raw Google value such as '2024-01-01 2024-06-30' in the API.

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

Which Google property to measure.

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

Optional Google Trends category ID (0 = all categories, 7 = Finance, 3 = Arts & Entertainment, 45 = Health, 5 = Computers & Electronics).

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

Time series (0-100 index) for each keyword. Turn off for faster runs when you only need related queries.

## `includeRelated` (type: `boolean`):

Top and rising related queries for each keyword.

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

Interest by sub-region (state, province or country) for each keyword.

## `maxResults` (type: `integer`):

Maximum rows (trending searches or keyword rows). Default 100 = about $0.20.

## Actor input object example

```json
{
  "mode": "trending",
  "geos": [
    "US"
  ],
  "timeframe": "12m",
  "property": "web",
  "category": 0,
  "includeInterestOverTime": true,
  "includeRelated": true,
  "includeRegions": false,
  "maxResults": 100
}
```

# Actor output Schema

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

All records from this run in the default dataset, shown with the Overview table view.

# 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 = {
    "geos": [
        "US"
    ],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/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 = {
    "geos": ["US"],
    "maxResults": 100,
}

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

```

## MCP server setup

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