# Google Trends Daily Searches & Topics Scraper (`data-goose/google-trends-scraper`) Actor

Fast 128MB pure-HTTP scraper for Google Trends daily trending searches across 60+ countries and Knowledge Graph topic autocomplete. Extracts search volume, breakout rankings, related news articles, images, and topic MIDs without headless browsers or proxies.

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

## Pricing

from $0.65 / 1,000 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 Daily Searches & Topics Scraper

Fast 128MB pure-HTTP scraper for Google Trends daily trending searches across 60+ countries and Knowledge Graph topic autocomplete. Extracts search volume, breakout rankings, related news articles, images, and topic MIDs without headless browsers or proxies.

### Why choose this Actor?

- Queries Google Trends' real-time daily trending feed (`trends.google.com/trending/rss?geo={CC}`) and Knowledge Graph topic autocomplete API (`trends.google.com/trends/api/autocomplete/{query}`) over **pure HTTP (`HTTP 200`, zero 429 blocks, zero proxies)**.
- Normalizes `<ht:approx_traffic>` labels (`50,000+`, `1,000+`) into clean integer search volumes (`approxTraffic`) for instant sorting and threshold alerting.
- Extracts **all associated news articles** (`title`, `url`, `source`, `snippet`, `imageUrl`) explaining *why* each topic is trending right now.
- **128 MB Memory Footprint & Zero Browser Tax:** Engineered in async Python (`httpx`) to run comfortably inside a **128 MB container** (`<75 MB` peak RSS), cutting compute costs by **8x–32x** compared to 1,024 MB–4,096 MB headless-browser scrapers.
- **Deterministic Locked Schema (`_schemaVersion: "1.0"`):** Every dataset item contains the exact same keys in canonical order with ISO-8601 UTC timestamps and clean text (zero unescaped HTML entities or stray tags).
- **Built-in Delta Change Monitoring (`STATE-DELTA` + `RUN_SUMMARY`):** Enable `onlyNewItems` (or `onlyNewJobs`) on scheduled runs to emit only newly discovered records while tracking closed/deleted items in the Key-Value Store.

> **Building an automated B2B intelligence or GTM pipeline?** Combine this Actor with our live 128 MB pure-HTTP scrapers ([All-in-One ATS Job Scraper](https://apify.com/data-goose/career-site-job-scraper), [Workday Jobs Scraper](https://apify.com/data-goose/workday-job-scraper), [Greenhouse Jobs Scraper](https://apify.com/data-goose/greenhouse-job-scraper), [Lever Jobs Scraper](https://apify.com/data-goose/lever-job-scraper), [Ashby Job Scraper](https://apify.com/data-goose/ashby-job-scraper), [SmartRecruiters Jobs Scraper](https://apify.com/data-goose/smartrecruiters-job-scraper), [Rippling Jobs Scraper](https://apify.com/data-goose/rippling-job-scraper), [Workable Jobs Scraper](https://apify.com/data-goose/workable-job-scraper), [Recruitee Jobs Scraper](https://apify.com/data-goose/recruitee-job-scraper), [Breezy HR Jobs Scraper](https://apify.com/data-goose/breezyhr-job-scraper))—engineered with deterministic schemas and root corporate domains (`companyDomain`) for zero-maintenance n8n, Make, Clay, and Python workflows.

***

### Quick Start — Input Example

Click **Run** with the prefilled defaults to verify live output in under 10 seconds, or customize your JSON input:

```json
{
  "geos": [
    "US",
    "GB"
  ],
  "maxTrendsPerTarget": 5,
  "maxTotalTrends": 10
}
```

***

### Input Parameters

| Parameter | Type | Description |
| :--- | :--- | :--- |
| `geos` | `array` | 2-letter ISO country codes (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `IN`, `BR`, `JP`, `MX`) to extract real-time daily trending searches. |
| `keywords` | `array` | Optional keywords (`artificial intelligence`, `saas`, `bitcoin`) to resolve into Google Trends Knowledge Graph topic entities (`mid`, `title`, `type`). |
| `maxTrendsPerTarget` | `integer` | Maximum number of trending searches or topics to emit per target country or keyword. |
| `maxTotalTrends` | `integer` | Hard global ceiling on total trend records emitted across the run. |
| `minApproxTraffic` | `integer` | Only emit daily trending searches with `approxTraffic >= minApproxTraffic` (`0` disables filtering). |
| `keywordFilter` | `string` | Only emit trends whose query or top news article matches at least one keyword. |
| `onlyNewItems` | `boolean` | When enabled, only emit trending searches not seen in previous runs with the same `monitorName`. |
| `monitorName` | `string` | Identifier for the persistent Key-Value Store delta state (`STATE-DELTA-<monitorName>`). |

***

### Output Dataset Schema

Every item pushed to the default Dataset conforms to the locked schema below:

| Field | Type | Description |
| :--- | :--- | :--- |
| `id` | `string` | Trend ID (geo:date:slug) |
| `query` | `string` | Search Query / Topic Title |
| `trendType` | `string` | Trend Type |
| `geo` | `string` | Country Code (ISO-2) |
| `rank` | `integer` | Daily Rank |
| `approxTraffic` | `integer` | Approx Search Volume |
| `approxTrafficLabel` | `string` | Traffic Label (e.g. 50,000+) |
| `publishedAt` | `string` | Published At (ISO-8601) |
| `trendsUrl` | `string` | Google Trends Explore URL |
| `googleSearchUrl` | `string` | Google Search URL |
| `imageUrl` | `string` | Trend Image URL |
| `imageSource` | `string` | Image Source |
| `topArticleTitle` | `string` | Top News Article Title |
| `topArticleUrl` | `string` | Top News Article URL |
| `topArticleSource` | `string` | Top News Publisher |
| `topArticleSnippet` | `string` | Top News Snippet |
| `relatedArticlesCount` | `integer` | Related Articles Count |
| `relatedArticles` | `array` | Related News Articles |
| `topicMid` | `string` | Knowledge Graph Topic MID |
| `topicCategory` | `string` | Topic Category / Entity Type |
| `isNew` | `boolean` | Is New |
| `_schemaVersion` | `string` | Schema Version |

#### Sample Output Item

```json
{
  "id": "US:2026-11-05:openai",
  "query": "openai",
  "trendType": "daily_trending_search",
  "geo": "US",
  "rank": 1,
  "approxTraffic": 50000,
  "approxTrafficLabel": "50,000+",
  "publishedAt": "2026-11-05T14:20:00Z",
  "trendsUrl": "https://trends.google.com/trends/explore?q=openai&geo=US",
  "googleSearchUrl": "https://www.google.com/search?q=openai",
  "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR...",
  "imageSource": "Reuters",
  "topArticleTitle": "OpenAI unveils next-generation enterprise reasoning agents",
  "topArticleUrl": "https://www.reuters.com/technology/openai-agents-2026-11-05/",
  "topArticleSource": "Reuters",
  "relatedArticlesCount": 3,
  "topicMid": "/g/trend_us_openai",
  "topicCategory": "Daily Trending Search",
  "isNew": true,
  "_schemaVersion": "1.0"
}
```

***

### Stateful Delta Tracking (`RUN_SUMMARY` & `STATE-DELTA`)

Every run writes two diagnostic JSON records to the default Key-Value Store:

1. **`RUN_SUMMARY`**: Contains `targetsRequested`, `targetsSucceeded`, `targetsFailed`, `targetsByStatus`, `itemsPushed`, `newItems`, `closedItems`, `durationSec`, `peakRssMb`, and per-target breakdown.
2. **`STATE-DELTA`**: Contains `newItems`, `closedItems`, `closedKeys` (by target scope), `closedKeyList`, and `isFirstRun`.

Persistent seen-item sets are stored in a named Key-Value Store (`google-trends-scraper-state` under key `STATE-DELTA-<monitorName>`) so your scheduled hourly/daily runs automatically detect new and removed records.

***

### Platform Quirks & Coverage Boundaries

- **Real-Time Daily Trending RSS + Topic Autocomplete:** Combines Google Trends' daily trending searches feed (`trends.google.com/trending/rss?geo={CC}`) across 60+ 2-letter ISO country codes with Knowledge Graph entity autocomplete (`trends.google.com/trends/api/autocomplete/{query}`).
- **Daily Trending Window:** Google's trending RSS feed serves the top ~20–25 active breakout searches per country code with approximate search volume tiers (`100+` to `2,000,000+`) and top news articles.

***

### Pricing (Pay-Per-Event — No Monthly Subscription)

This Actor uses transparent **Pay-Per-Event** pricing. You only pay for items actually written to your dataset—**filtered-out records and already-seen records (`onlyNewItems: true`) cost $0**.

| Plan Tier | Per Item (`apify-default-dataset-item`) | Cost per **1,000 Items** | Actor Start Fee (`apify-actor-start`) | Proxy Cost |
|---|---|---|---|---|
| **Free** | `$0.00115` | **$1.15** | `$0.005` | **$0** (no proxy needed) |
| **Bronze** | `$0.00095` | **$0.95** | `$0.005` | **$0** |
| **Silver** | `$0.00080` | **$0.80** | `$0.005` | **$0** |
| **Gold / Platinum / Diamond** | `$0.00065` | **$0.65** | `$0.005` | **$0** |

- **128 MB Memory Footprint:** Runs in pure async HTTP (`128 MB` RAM instead of `1–4 GB` headless browsers), reducing Apify compute usage by **8x–32x**.
- **Built-in Spend Cap Protection:** Use the built-in `maxTotal*` / `max*Per*` input limits or Apify's **Maximum cost per run** setting to cap spend to the exact cent.

***

### API & Automation Usage (`Python`, `n8n / Make`, `cURL`)

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("data-goose/google-trends-scraper").call(run_input={
    "geos": [
        "US",
        "GB"
    ],
    "keywords": [],
    "maxTrendsPerTarget": 5,
    "maxTotalTrends": 10,
    "minApproxTraffic": 0,
    "monitorName": "default"
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["geo"], f"#{item['rank']}", "|", item["query"], "|", item["approxTrafficLabel"])
```

#### n8n / Make / Zapier (HTTP Request)

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/data-goose~google-trends-scraper/run-sync-get-dataset-items`
- **Headers:** `Authorization: Bearer {{APIFY_TOKEN}}`, `Content-Type: application/json`
- **Body:**

```json
{
  "geos": [
    "US",
    "GB"
  ],
  "keywords": [],
  "maxTrendsPerTarget": 5,
  "maxTotalTrends": 10,
  "minApproxTraffic": 0,
  "monitorName": "default"
}
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/data-goose~google-trends-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"geos": ["US", "GB"], "keywords": [], "maxTrendsPerTarget": 5, "maxTotalTrends": 10, "minApproxTraffic": 0, "monitorName": "default"}'
```

***

### Explore the Data Goose Scraper Suite (128 MB Pure-HTTP)

All published Actors below run in **128 MB RAM** with zero browser overhead and deterministic schemas (all ATS & Job scrapers share the **exact same 31-field output schema**):

| Actor | Target Platform & Primary Use Case |
| :--- | :--- |
| [All-in-One ATS Job Scraper (9 Platforms) (`data-goose/career-site-job-scraper`)](https://apify.com/data-goose/career-site-job-scraper) | **All-in-One Router**: auto-detects & scrapes all 9 ATS platforms from any company domain or URL |
| [Workday Jobs Scraper: Unlimited API & Salaries (`data-goose/workday-job-scraper`)](https://apify.com/data-goose/workday-job-scraper) | **Workday**: Fortune 500 & global enterprises (`>2,000` facet bypass + 100+ built-in boards) |
| [Greenhouse Jobs Scraper (Fast API & Salaries) (`data-goose/greenhouse-job-scraper`)](https://apify.com/data-goose/greenhouse-job-scraper) | **Greenhouse**: High-growth tech & unicorns (US + EU API, `pay_transparency` salaries) |
| [Lever Jobs Scraper (US & EU Postings API) (`data-goose/lever-job-scraper`)](https://apify.com/data-goose/lever-job-scraper) | **Lever**: Tech & scaleups (US + EU fallback, native `salaryRange` + combined lists) |
| [Ashby Job Scraper (YC Startups & Salaries) (`data-goose/ashby-job-scraper`)](https://apify.com/data-goose/ashby-job-scraper) | **Ashby**: AI startups & YC companies (`includeCompensation=true` structured salary tiers) |
| [SmartRecruiters Jobs Scraper (Enterprise API & Salaries) (`data-goose/smartrecruiters-job-scraper`)](https://apify.com/data-goose/smartrecruiters-job-scraper) | **SmartRecruiters**: Global enterprises (ServiceNow, Bosch, Experian, Eurofins) |
| [Rippling Jobs Scraper (ATS Boards & Salaries) (`data-goose/rippling-job-scraper`)](https://apify.com/data-goose/rippling-job-scraper) | **Rippling ATS**: Modern startups & scaleups (`/api/v1/board/{slug}/jobs` + pay ranges) |
| [Workable Jobs Scraper: Direct API & Salaries (`data-goose/workable-job-scraper`)](https://apify.com/data-goose/workable-job-scraper) | **Workable**: Mid-market & European tech (v3 list + v2 detail orchestration) |
| [Recruitee Jobs Scraper (Bulk API, Salaries & Emails) (`data-goose/recruitee-job-scraper`)](https://apify.com/data-goose/recruitee-job-scraper) | **Recruitee**: European & remote-first companies (single-call `/api/offers` JSON) |
| [Breezy HR Jobs Scraper (Salaries & Hiring Emails) (`data-goose/breezyhr-job-scraper`)](https://apify.com/data-goose/breezyhr-job-scraper) | **Breezy HR**: SMB & agencies (live `/json` feeds + full descriptions, no 100-item cap) |

> **Looking for our E-Commerce, Lead Enrichment, Financial & Trend Scrapers?** Browse all published 128 MB pure-HTTP scrapers on the [Data Goose Apify Store Profile](https://apify.com/data-goose).

***

### Support & Custom Contracting

- **Bugs & feature requests:** open an issue on the Actor's **Issues** tab or email us.
- **datagoosedev@gmail.com** — we reply within one business day.

# Actor input Schema

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

2-letter ISO country codes (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `IN`, `BR`, `JP`, `MX`) to extract real-time daily trending searches.

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

Optional keywords (`artificial intelligence`, `saas`, `bitcoin`) to resolve into Google Trends Knowledge Graph topic entities (`mid`, `title`, `type`).

## `maxTrendsPerTarget` (type: `integer`):

Maximum number of trending searches or topics to emit per target country or keyword.

## `maxTotalTrends` (type: `integer`):

Hard global ceiling on total trend records emitted across the run.

## `minApproxTraffic` (type: `integer`):

Only emit daily trending searches with `approxTraffic >= minApproxTraffic` (`0` disables filtering).

## `keywordFilter` (type: `string`):

Only emit trends whose query or top news article matches at least one keyword.

## `onlyNewItems` (type: `boolean`):

When enabled, only emit trending searches not seen in previous runs with the same `monitorName`.

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

Identifier for the persistent Key-Value Store delta state (`STATE-DELTA-<monitorName>`).

## Actor input object example

```json
{
  "geos": [
    "US",
    "GB"
  ],
  "keywords": [],
  "maxTrendsPerTarget": 5,
  "maxTotalTrends": 10,
  "minApproxTraffic": 0,
  "monitorName": "default"
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `jobs` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

## `stateDelta` (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 = {
    "geos": [
        "US",
        "GB"
    ],
    "keywords": [],
    "maxTrendsPerTarget": 5,
    "maxTotalTrends": 10,
    "minApproxTraffic": 0,
    "monitorName": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-goose/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",
        "GB",
    ],
    "keywords": [],
    "maxTrendsPerTarget": 5,
    "maxTotalTrends": 10,
    "minApproxTraffic": 0,
    "monitorName": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("data-goose/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",
    "GB"
  ],
  "keywords": [],
  "maxTrendsPerTarget": 5,
  "maxTotalTrends": 10,
  "minApproxTraffic": 0,
  "monitorName": "default"
}' |
apify call data-goose/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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