# Google Trends Daily Scraper (`khanhnh/google-trends-scraper`) Actor

Scrape Google Trends daily trending topics with related news articles, traffic estimates, and OG metadata for 50+ countries. No API key required. Perfect for SEO research, content planning, social media monitoring, and market intelligence.

- **URL**: https://apify.com/khanhnh/google-trends-scraper.md
- **Developed by:** [Khanh Nguyen](https://apify.com/khanhnh) (community)
- **Features:** Limited permissions
- **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 Daily Scraper

Scrape **real-time trending topics** from Google Trends for 50+ countries — no API key required.

Each result includes the trend title, estimated search traffic, publication date, and **all related news articles** with their source names and URLs.

### Use cases

- **SEO & content planning** — find what people are searching for right now and create timely content
- **Social media monitoring** — spot viral topics before they peak
- **Market intelligence** — track trending products, brands, and competitors by region
- **Journalism & research** — monitor breaking news across multiple countries
- **Ad campaign timing** — align paid campaigns with surging search interest

### Features

- Scrape multiple countries in a single run (comma-separated geo codes)
- Optional **Open Graph metadata enrichment** — fetch title, description, and image from each news article URL
- Lightweight and fast — direct RSS parsing, no browser needed
- 50+ supported countries including US, GB, JP, KR, FR, DE, BR, VN, IN, and more

### Sample output

```json
{
  "title": "palm beach county schools",
  "approxTraffic": "10000+",
  "link": "https://trends.google.com/trending/rss?geo=US",
  "pubDate": "Thu, 19 Nov 2026 02:00:00 -0800",
  "geo": "US",
  "newsItemCount": 3,
  "newsItems": [
    {
      "title": "Historic flooding in South Florida closes schools, leaves residents stranded",
      "url": "https://www.nbcmiami.com/news/local/...",
      "source": "NBC 6 South Florida"
    },
    {
      "title": "Miami-Dade schools to close Thursday after heavy rain",
      "url": "https://www.miamiherald.com/news/...",
      "source": "Miami Herald"
    }
  ],
  "scrapedAt": "2026-11-19T10:09:00.000Z"
}
```

With `includeOgMetadata` enabled, each news item also includes `ogTitle`, `ogDescription`, and `ogImage`.

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `geo` | string | `US` | Country code(s), comma-separated. E.g. `US`, `US,GB,JP` |
| `includeOgMetadata` | boolean | `false` | Fetch OG metadata for each news URL (slower but richer) |

### Pricing

$0.005 per trending topic returned (~$0.05 per country, ~10 trends per country).

### Integrations

Results are stored in the Apify dataset. Export as JSON, CSV, or Excel. Connect to Google Sheets, Slack, Zapier, Make, or use the Apify API for programmatic access.

# Actor input Schema

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

One or more ISO country codes, comma-separated. Examples: US, VN, GB, JP, KR, FR, DE, ES, IT, BR, RU, TH, ID, CN, TW, IN, AR, PL, NL, TR, AU, CA, MX, EG, SA, PH, MY, SG, ZA, NG

## `includeOgMetadata` (type: `boolean`):

Fetch Open Graph metadata (title, description, image) for each news article URL. Slower but provides richer data for content analysis.

## Actor input object example

```json
{
  "geo": "US",
  "includeOgMetadata": false
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing trending topics with traffic estimates, news articles, and metadata for each country

# 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"
};

// Run the Actor and wait for it to finish
const run = await client.actor("khanhnh/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 = { "geo": "US" }

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

```

## MCP server setup

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