# Google Trending Searches & Related Queries JSON ($0.004/kw) (`andque/google-trends-fast-json`) Actor

Fast JSON for AI agents: real Google autocomplete related queries for each keyword, plus today's Google Trends daily trending searches for a country and whether your keyword is trending now. No estimated or synthetic values: if a source is unavailable, fields return null.

- **URL**: https://apify.com/andque/google-trends-fast-json.md
- **Developed by:** [Masatoshi Mori](https://apify.com/andque) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 google suggest related queries

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Trending Searches & Related Queries JSON ($0.004/kw)

**100% Real Upstream Data — Zero Synthetic Numbers.** Fetches live **Google Autocomplete / Suggest related queries** (`relatedQueries`) and live **Google Trends Daily RSS trending searches** (`trendingMatches` & `topDailyTrendingInGeo` with `approxTraffic` and news citations) in under 2 seconds.

If an upstream endpoint fails or blocks, this Actor **never fabricates fallback data**—it returns `null` with `partialResult: true` and **skips all per-keyword PPE charges**.

***

### Transparent Pay-Per-Event (PPE) Pricing

| Event Name | Price (USD) | When it is charged |
|---|---|---|
| `apify-actor-start` | **$0.002** | Low flat startup fee |
| `related-queries` | **$0.004** / keyword | When `includeRelatedQueries: true` and live suggestions are returned |
| `trending-now` | **$0.004** / keyword | When `includeTrendingNow: true` and live daily trending RSS is returned |
| `compare-batch` | **$0.020** / batch | When `compareMode: true` (up to 5 keywords per batch) |

***

### Output JSON Example (Exact Schema)

```json
{
  "keyword": "mcp server",
  "geo": "US",
  "fetchedAt": "2026-11-07T04:00:00.000Z",
  "trendingFetchedAt": "2026-11-07T03:55:12.000Z",
  "stale": false,
  "partialResult": false,
  "isTrendingToday": false,
  "relatedQueries": [
    { "query": "mcp server", "rank": 1 },
    { "query": "mcp server claude", "rank": 2 },
    { "query": "mcp server github", "rank": 3 }
  ],
  "trendingMatches": [],
  "topDailyTrendingInGeo": [
    {
      "title": "champions league",
      "approxTraffic": "200,000+",
      "pubDate": "Fri, 06 Nov 2026 21:00:00 -0800",
      "newsUrl": "https://...",
      "newsSource": "ESPN"
    }
  ],
  "delta": {
    "status": "new",
    "currentHash": "7c31b04a...",
    "previousHash": null,
    "skippedDbWrite": false
  }
}
```

# Actor input Schema

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

List of search terms to fetch related queries and daily trending matches for (e.g. \["mcp server", "ai agents"]).

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

2-letter ISO country code (e.g. "US", "JP", "GB", "DE").

## `includeRelatedQueries` (type: `boolean`):

Fetch real-time related search suggestions from Google Autocomplete.

## `includeTrendingNow` (type: `boolean`):

Check Google Trends Daily RSS for the target geo and return matching + top daily trending topics with approximate traffic and news links.

## `compareMode` (type: `boolean`):

Process multiple keywords together in discounted batches of up to 5 keywords.

## Actor input object example

```json
{
  "keywords": [
    "mcp server",
    "cloudflare workers"
  ],
  "geo": "US",
  "includeRelatedQueries": true,
  "includeTrendingNow": true,
  "compareMode": false
}
```

# Actor output Schema

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

Real-time Google Autocomplete related queries and Google Trends Daily RSS matches per keyword and geo.

## `summary` (type: `string`):

Execution statistics, delta counts, and PPE charge summary.

# 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": [
        "mcp server",
        "cloudflare workers"
    ],
    "geo": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("andque/google-trends-fast-json").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": [
        "mcp server",
        "cloudflare workers",
    ],
    "geo": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("andque/google-trends-fast-json").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": [
    "mcp server",
    "cloudflare workers"
  ],
  "geo": "US"
}' |
apify call andque/google-trends-fast-json --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andque/google-trends-fast-json"
        }
    }
}
```

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/VgTIB89hicKgrOZZj/builds/COEa1eNsp18QY8bcv/openapi.json
