# Google Trends Fast Scraper (Pure HTTP JSON & RSS Engine) (`keenedigitalstudio/google-trends-fast-scraper`) Actor

Extract Google Trends Interest Over Time, Interest by Region, Related Queries/Topics, Autocomplete Topics, and Daily Trending Searches in <2 seconds with zero headless browsers. $1.00/1,000 results ($0.001/item), $0 start fee — 67-96% cheaper than existing scrapers. Built by Keene Digital Studio.

- **URL**: https://apify.com/keenedigitalstudio/google-trends-fast-scraper.md
- **Developed by:** [Keene Digital Studio](https://apify.com/keenedigitalstudio) (community)
- **Categories:** SEO tools, Marketing, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 JSON & RSS Engine — <2s Runtime)

**Publisher:** Keene Digital Studio\
**Pricing:** **$1.00 per 1,000 results** (`$0.001` per result) · **$0.00 Actor start fee** · **Platform Usage Included**\
**Speed:** **<500ms–1,500ms** per query (zero headless browser, zero Chromium startup overhead).

***

### Why Switch to This Actor? (Transparent Pricing & Reliability Comparison)

The primary Google Trends incumbent on Apify (`apify/google-trends-scraper`) spins up a heavy headless Chromium browser that frequently hangs on Google's consent/rate-limit walls — resulting in a **44.8% non-success rate** over the last 30 days (`19.9%` timed out, `23.0%` aborted by users, `1.8%` failed) while charging **$3.00/1k results PLUS passing all platform compute/proxy costs onto the user**.

Meanwhile, alternative Actors like `agenscrape/google-trends-scraper` and `data_xplorer/google-trends-fast-scraper` charge a predatory **$25.00 per 1,000 Actor starts** (`$0.025` just to start a run).

Our engine talks directly to Google Trends' lightweight internal JSON widget APIs (`/trends/api/explore`, `/trends/api/widgetdata/multiline`, `/trends/api/widgetdata/comparedgeo`, `/trends/api/widgetdata/relatedsearches`, `/trends/api/autocomplete`) and official Daily Trending RSS feeds (`https://trends.google.com/trending/rss`) with automatic `NID` session cookie priming and exponential retry.

| Feature / Metric | **Keene Digital Studio**<br>`google-trends-fast-scraper` | **Incumbent #1**<br>`apify/google-trends-scraper` | **Incumbent #2**<br>`data_xplorer/google-trends-fast-scraper` | **Incumbent #3**<br>`agenscrape/google-trends-scraper` |
| :--- | :---: | :---: | :---: | :---: |
| **Price per 1,000 Results** | **$1.00 / 1k** (`$0.001`/item) | $3.00 / 1k + User Pays Compute/Proxy | $2.00 / 1k | $25.00 / 1k |
| **Actor Start Fee (per 1k starts)** | **$0.00** | $0.00 (high browser compute cost) | **$25.00 / 1k starts** (`$0.025`/run) | **$25.00 / 1k starts** (`$0.025`/run) |
| **Your Savings** | **Baseline** | **67%+ Cheaper (No Browser CU)** | **50%–96% Cheaper ($0 Start Fee)** | **96% Cheaper** |
| **30-Day Run Reliability** | **>=98%+ Verified** | **55.2% Succeeded** (44.8% timeout/abort/fail) | Good, but penalizes small runs | Low volume |
| **Typical Execution Speed** | **0.3s – 1.2s (Pure HTTP JSON)** | 45s – 300s+ (Headless Browser) | 2s – 8s | 5s – 20s |
| **Endpoints Covered** | **Timeline + Geo + Related + Autocomplete + Daily RSS** | Browser DOM scrape | Partial widget API | Partial widget API |

***

### Supported Extraction Modes

1. **`all` (Default):** Fetches Interest Over Time (`multiline`), Interest By Region (`comparedgeo`), Related Queries & Topics (`relatedsearches` Top & Rising), and Knowledge Graph Autocomplete Entities (`autocomplete`) in parallel in **<1 second**.
2. **`interest_over_time`:** Fetches high-resolution timeline data (`timestamp`, `formattedTime`, `value`, `isPartial`) plus summary statistics (`averageInterest`, `peakInterest`, `latestInterest`).
3. **`interest_by_region`:** Fetches regional/state/country breakdown sorted by search interest (`geoCode`, `geoName`, `value`).
4. **`related_queries`:** Fetches both `top` and `rising` related search queries and topics (including Breakout `%` queries).
5. **`autocomplete`:** Resolves a keyword into Google Knowledge Graph `mid` entities and topic types (`Artificial intelligence -> /m/0mkz`).
6. **`daily_trends`:** Fetches real-time Daily Trending Searches for any country (`US`, `GB`, `CA`, `DE`, `IN`, `JP`, `BR`, `FR`, `AU`, etc.) including traffic volume (`approxTraffic`) and related news articles.

***

### Input Example

```json
{
  "keywords": ["artificial intelligence", "python"],
  "mode": "all",
  "geo": "US",
  "timeframe": "today 12-m",
  "category": 0,
  "hl": "en-US"
}
```

***

### Output Example

```json
[
  {
    "queryType": "all",
    "keyword": "python",
    "geo": "US",
    "timeframe": "today 12-m",
    "category": 0,
    "interestOverTime": [
      {
        "timestamp": 1761436800,
        "formattedTime": "Oct 26 – Nov 1, 2025",
        "formattedAxisTime": "Oct 26, 2025",
        "value": 84,
        "isPartial": false
      }
    ],
    "interestByRegion": [
      {
        "geoCode": "US-WA",
        "geoName": "Washington",
        "value": 100,
        "hasData": true
      }
    ],
    "relatedQueries": {
      "top": [
        { "query": "what is python", "value": 100, "formattedValue": "100" }
      ],
      "rising": [
        { "query": "python 3.13", "value": 450, "formattedValue": "+450%" }
      ]
    },
    "autocompleteTopics": [
      {
        "mid": "/m/05z1_",
        "title": "Python",
        "type": "Programming language"
      }
    ],
    "summaryStats": {
      "timelinePointsCount": 53,
      "averageInterest": 78.42,
      "peakInterest": 100,
      "latestInterest": 81,
      "regionsCount": 51,
      "relatedQueriesTopCount": 25,
      "relatedQueriesRisingCount": 25,
      "autocompleteTopicsCount": 5
    },
    "elapsedMs": 412
  }
]
```

***

### Local CLI Usage

```bash
## Full keyword intelligence (timeline + geo + related + autocomplete)
python3 -m src.main --input '{"keywords": ["python"], "mode": "all", "geo": "US"}'

## Real-time daily trending searches
python3 -m src.main --input '{"mode": "daily_trends", "geo": "US"}'
```

Built and maintained by **Keene Digital Studio**.

# Actor input Schema

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

List of keywords or phrases to query on Google Trends (ignored when mode is 'daily_trends').

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

Which Google Trends endpoints to query: 'all' (timeline + geo + related + autocomplete), 'interest_over_time', 'interest_by_region', 'related_queries', 'autocomplete', or 'daily_trends'.

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

Two-letter country code (e.g. 'US', 'GB', 'CA', 'DE', 'IN', 'AU', 'FR', 'BR', 'JP') or empty string '' for Worldwide.

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

Google Trends timeframe string: 'now 1-d', 'now 7-d', 'today 1-m', 'today 3-m', 'today 12-m', 'today 5-y', or 'all'.

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

Google Trends numeric category ID (0 = All categories, 5 = Computers & Electronics, 7 = Finance, 13 = Internet & Telecom, etc.).

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

Locale code for Google Trends responses (e.g. 'en-US', 'en-GB', 'es-ES').

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

Optional Apify Proxy or custom proxy URLs. Not required for normal runs; enable only if running high-volume batches from rate-limited shared IPs.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence",
    "python"
  ],
  "mode": "all",
  "geo": "US",
  "timeframe": "today 12-m",
  "category": 0,
  "hl": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all extracted Google Trends results.

## `overview` (type: `string`):

Tabular overview of Google Trends results and summary statistics.

# 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": [
        "artificial intelligence",
        "python"
    ],
    "mode": "all",
    "geo": "US",
    "timeframe": "today 12-m",
    "category": 0,
    "hl": "en-US",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("keenedigitalstudio/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 = {
    "keywords": [
        "artificial intelligence",
        "python",
    ],
    "mode": "all",
    "geo": "US",
    "timeframe": "today 12-m",
    "category": 0,
    "hl": "en-US",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("keenedigitalstudio/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 '{
  "keywords": [
    "artificial intelligence",
    "python"
  ],
  "mode": "all",
  "geo": "US",
  "timeframe": "today 12-m",
  "category": 0,
  "hl": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call keenedigitalstudio/google-trends-fast-scraper --silent --output-dataset

```

## MCP server setup

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