# Google Trends Scraper: Daily Trending Searches & Keywords (`salmon_chaparral/google-trends-fast-scraper`) Actor

Google Trends scraper for daily trending searches, search traffic volumes & linked news across any country, plus Knowledge Graph autocomplete topics, Hacker News & Wikipedia velocity — no browser or API key. Export JSON/CSV via API. $0 start, $1/1K records ($0.001); errors free.

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

## Pricing

from $0.60 / 1,000 google trends item or keyword velocity records

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/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 Fast Scraper

Pure-HTTP Google Trends scraper at 256MB RAM with zero headless browser overhead. Click **Start** with default inputs to immediately fetch live US daily trending searches plus keyword autocomplete entities, Hacker News discussion velocity, and Wikipedia pageview momentum.

### Data Sources

- **Google Trends Daily RSS** (`trends.google.com/trending/rss?geo={GEO}`): Real-time trending queries, approximate search traffic (`2000+`, `50K+`, etc.), publication timestamps, and linked news articles across any ISO-2 country code (single or multi-geo).
- **Google Trends Autocomplete** (`trends.google.com/trends/api/autocomplete/{query}`): Structured Knowledge Graph entity IDs (`mid`), titles, and topic types.
- **Hacker News Algolia API** (`hn.algolia.com/api/v1/search_by_date`): 30-day story mention counts, peak points, and top discussion links.
- **Wikipedia Pageviews REST API** (`wikimedia.org/api/rest_v1/metrics/pageviews`): 14-day article traffic and 7-day vs. prior 7-day momentum percentage.

### Input Example

```json
{
  "geo": "US",
  "geos": [],
  "keywords": ["ai agents", "apify"],
  "hl": "en-US",
  "includeDailyTrends": true,
  "includeAutocomplete": true,
  "includeHnVelocity": true,
  "includeWikiPageviews": true,
  "maxTrendsPerGeo": 20
}
```

Pass `geos: ["US", "GB", "DE", "JP"]` to scrape multiple countries concurrently in one run.

### Output Schema

Every dataset item shares a normalized table view:

- `recordType`: `"daily_trend"` or `"keyword_trend"`
- `geo`: ISO-2 country code or `"GLOBAL"`
- `title`: Trending search query or input keyword
- `approxTraffic` / `approxTrafficNum`: Raw traffic string (e.g. `"2000+"`) and parsed numeric volume
- `topNewsTitle`, `topNewsUrl`, `newsSource`: Top linked article or Hacker News discussion
- `relatedTopicsCount`: Count of linked news items or autocomplete entities
- `hnMentions30d`, `hnTopPoints`: Hacker News 30-day velocity metrics
- `wikiViews14d`, `wikiVelocityPct`: Wikipedia 14-day pageviews and 7d-over-7d momentum %
- `details`: Full nested news items, autocomplete topics, HN stories, and Wikipedia daily series

### Pricing

Pay-Per-Event: **$0 start fee**, **$0.001 per returned trend record** (`$1.00 / 1,000 trends`). Invalid geo codes, empty matches, and upstream errors are never charged.

# Changelog

This Actor's version history is a separate document: https://apify.com/salmon_chaparral/google-trends-fast-scraper/changelog.md

# Actor input Schema

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

Two-letter country code for Google Trends daily RSS feed (e.g. US, GB, DE, JP, IN, CA, AU).

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

Optional list of ISO-2 country codes to scrape in parallel (e.g. \["US", "GB", "DE"]). When provided, overrides single geo.

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

Keywords to enrich with Google Trends autocomplete entities, Hacker News Algolia discussion velocity, and Wikipedia 14-day pageview momentum.

## `hl` (type: `string`):

Locale parameter for Google Trends autocomplete (e.g. en-US, en-GB, de-DE).

## `includeDailyTrends` (type: `boolean`):

Fetch live Google Trends daily trending searches and linked news articles for each geo.

## `includeAutocomplete` (type: `boolean`):

Fetch Knowledge Graph topic entities from Google Trends autocomplete for each keyword.

## `includeHnVelocity` (type: `boolean`):

Enrich keywords with 30-day Hacker News story mentions, points, and top discussion link.

## `includeWikiPageviews` (type: `boolean`):

Enrich keywords with 14-day English Wikipedia pageviews and 7d-over-7d momentum percentage.

## `maxTrendsPerGeo` (type: `integer`):

Maximum number of daily trend items to return per country (1-50).

## `requestTimeoutSecs` (type: `integer`):

Per-HTTP request timeout in seconds (5-30).

## Actor input object example

```json
{
  "geo": "US",
  "geos": [],
  "keywords": [
    "ai agents",
    "apify"
  ],
  "hl": "en-US",
  "includeDailyTrends": true,
  "includeAutocomplete": true,
  "includeHnVelocity": true,
  "includeWikiPageviews": true,
  "maxTrendsPerGeo": 20,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

## `items` (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 = {
    "geo": "US",
    "geos": [],
    "keywords": [
        "ai agents",
        "apify"
    ],
    "hl": "en-US",
    "includeDailyTrends": true,
    "includeAutocomplete": true,
    "includeHnVelocity": true,
    "includeWikiPageviews": true,
    "maxTrendsPerGeo": 20,
    "requestTimeoutSecs": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("salmon_chaparral/google-trends-fast-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 = {
    "geo": "US",
    "geos": [],
    "keywords": [
        "ai agents",
        "apify",
    ],
    "hl": "en-US",
    "includeDailyTrends": True,
    "includeAutocomplete": True,
    "includeHnVelocity": True,
    "includeWikiPageviews": True,
    "maxTrendsPerGeo": 20,
    "requestTimeoutSecs": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("salmon_chaparral/google-trends-fast-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 '{
  "geo": "US",
  "geos": [],
  "keywords": [
    "ai agents",
    "apify"
  ],
  "hl": "en-US",
  "includeDailyTrends": true,
  "includeAutocomplete": true,
  "includeHnVelocity": true,
  "includeWikiPageviews": true,
  "maxTrendsPerGeo": 20,
  "requestTimeoutSecs": 15
}' |
apify call salmon_chaparral/google-trends-fast-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,salmon_chaparral/google-trends-fast-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/6OEAOwIJVmIgVJnsk/builds/fhWFQmQx2OuDvYiBu/openapi.json
