# Google Trends Daily Breakout Topics & Entity API (`parsegrid/google-trends-scraper`) Actor

Fast zero-proxy Google Trends API extracting real-time trending searches, traffic volume estimates, related news articles, and Knowledge Graph entities across 40+ countries.

- **URL**: https://apify.com/parsegrid/google-trends-scraper.md
- **Developed by:** [Parse Grid](https://apify.com/parsegrid) (community)
- **Categories:** SEO tools, News, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 trend or entity items

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 Daily Breakout Topics & Entity API

Built by **ParseGrid**.

Fast, zero-proxy Google Trends API that extracts real-time trending searches, normalized traffic volume estimates, related news articles, and Knowledge Graph topic entities across 40+ countries. Built for SEO teams, newsroom monitoring, ecommerce product discovery, and AI research agents.

### Why Use This Google Trends API

- **Zero Proxies Required**: Connects directly to Google Trends RSS feeds and Knowledge Graph autocomplete endpoints over lightweight HTTP with an 8-second timeout and automatic retry logic. Runs on `256 MB` RAM with zero proxy surcharge.
- **Parsed Search Volume Integers**: Converts raw strings such as `"200+"`, `"50K+"`, `"500,000+"`, and `"2M+"` into clean integer `approxTrafficMin` values ready for instant sorting, filtering, and threshold alerts.
- **Verified Publisher Context**: Captures the related news headlines, article URLs, publisher names, and thumbnail sources driving each breakout search.
- **Knowledge Graph Entity Resolution**: Maps seed keywords (such as `"artificial intelligence"` or `"shopify"`) to official Google Knowledge Graph machine IDs (`entityMid` like `"/m/0mkz"`), entity types, direct Google Trends Explore URLs, and active breakout overlap flags (`matchesActiveTrend`).
- **Multi-Country Coverage**: Query 40+ two-letter ISO country feeds (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `IN`, `BR`, `JP`, `MX`, and more) in a single run.

### Automation & AI Agent Workflows

- **SEO & Content Velocity Pipelines**: Schedule runs in **n8n** or **Make** to filter `approxTrafficMin >= 10000` and push high-velocity breakout topics straight into Slack, Notion, or Airtable editorial queues.
- **Clay & Market Signal Enrichment**: Cross-reference brand keywords and product categories against active national search spikes before launching campaigns.
- **AI Agents & MCP Tooling**: Give LLM agents deterministic real-time search demand signals and canonical Knowledge Graph entity IDs without browser rendering overhead.

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `geos` | `string[]` | `["US", "GB"]` | Two-letter ISO country codes for real-time trending search feeds (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `IN`, `BR`, `JP`, `MX`). |
| `seedKeywords` | `string[]` | `["artificial intelligence", "electric vehicles"]` | Optional keywords resolved into Google Trends Knowledge Graph topic entities (`entityMid` and Explore URLs). |
| `includeRelatedNews` | `boolean` | `true` | Include related news articles (`title`, `url`, `source`, `snippet`) on each `trending_search` item. |
| `language` | `string` | `"en-US"` | Locale code used for Knowledge Graph topic resolution and Google Trends Explore links. |
| `maxItems` | `integer` | `50` | Maximum total records pushed to the dataset (`5` to `500`). |

### Input Example

```json
{
  "geos": ["US", "GB", "CA"],
  "seedKeywords": ["artificial intelligence", "shopify"],
  "includeRelatedNews": true,
  "language": "en-US",
  "maxItems": 50
}
```

### Output Examples

#### 1. Real-Time Trending Search (`recordType: "trending_search"`)

```json
{
  "recordType": "trending_search",
  "query": "nvidia earnings",
  "geo": "US",
  "rank": 1,
  "approxTrafficRaw": "50K+",
  "approxTrafficMin": 50000,
  "publishedAt": "2026-11-13T18:20:00.000Z",
  "pictureUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcExample",
  "pictureSource": "Reuters",
  "relatedNews": [
    {
      "title": "Nvidia shares climb ahead of quarterly data center report",
      "url": "https://www.reuters.com/technology/nvidia-quarterly-preview/",
      "source": "Reuters",
      "snippet": null
    }
  ],
  "newsCount": 1,
  "scrapedAt": "2026-11-13T20:00:00.000Z"
}
```

#### 2. Knowledge Graph Topic Entity (`recordType: "topic_entity"`)

```json
{
  "recordType": "topic_entity",
  "query": "Artificial intelligence",
  "seedKeyword": "artificial intelligence",
  "entityMid": "/m/0mkz",
  "entityType": "Professional field",
  "trendsExploreUrl": "https://trends.google.com/trends/explore?q=%2Fm%2F0mkz&hl=en-US",
  "matchesActiveTrend": false,
  "scrapedAt": "2026-11-13T20:00:00.000Z"
}
```

### MCP Server Integration

Call this Actor from Claude Desktop, Cursor, or any MCP-compatible AI agent client via the Apify MCP server:

```json
{
  "tool": "call-actor",
  "arguments": {
    "actor": "parsegrid/google-trends-scraper",
    "input": {
      "geos": ["US", "GB"],
      "seedKeywords": ["artificial intelligence"],
      "includeRelatedNews": true,
      "language": "en-US",
      "maxItems": 25
    }
  }
}
```

# Actor input Schema

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

ISO 2-letter country codes for real-time trending search feeds (e.g. US, GB, CA, AU, DE, FR, IN, BR, JP, MX).

## `seedKeywords` (type: `array`):

Optional keywords to resolve into Google Trends Knowledge Graph entities and related topic suggestions.

## `includeRelatedNews` (type: `boolean`):

Include publisher headlines, article URLs, sources, and snippets attached to each trending search.

## `language` (type: `string`):

BCP-47 language tag used for Knowledge Graph topic resolution and Google Trends Explore links (e.g. en-US, en-GB, de, es, fr, ja).

## `maxItems` (type: `integer`):

Maximum total records (trending searches plus Knowledge Graph topic entities) written to the dataset (5 to 500).

## Actor input object example

```json
{
  "geos": [
    "US",
    "GB"
  ],
  "seedKeywords": [
    "artificial intelligence",
    "electric vehicles"
  ],
  "includeRelatedNews": true,
  "language": "en-US",
  "maxItems": 50
}
```

# Actor output Schema

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

JSON dataset containing trending_search and topic_entity records.

# 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"
    ],
    "seedKeywords": [
        "artificial intelligence",
        "electric vehicles"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parsegrid/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",
    ],
    "seedKeywords": [
        "artificial intelligence",
        "electric vehicles",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("parsegrid/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"
  ],
  "seedKeywords": [
    "artificial intelligence",
    "electric vehicles"
  ]
}' |
apify call parsegrid/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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