# Google Trends API - Related Queries, Regions & YouTube Trends (`countonce/google-trends-api`) Actor

Google Trends data without scraping or blocks: interest over time, by region, related queries and topics (top and rising) for Google Search, YouTube, News, Images and Shopping. A plain-English trend summary per term. 5 terms free every month. Data via DataForSEO.

- **URL**: https://apify.com/countonce/google-trends-api.md
- **Developed by:** [CountOnce Data](https://apify.com/countonce) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.40 / 1,000 trend reports

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/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 API - Related Queries, Regions & YouTube Trends

**Google Trends data that doesn't break.** Interest over time, interest by region, related queries and related topics (top and rising) for Google Search, YouTube, Google News, Images and Shopping. No scraping, so no blocks, captchas or half-finished runs. **5 search terms free every month.**

> Google Trends data supplied by DataForSEO.

#### Try it free in 30 seconds

1. Press **Start**: an example term is already filled in.
2. Or type your own terms, one per line (up to 50 per run).
3. Open the **Output** tab: one report per term, with a one-line summary at the top.

### What you get for each term

| Field | What it tells you |
| --- | --- |
| `summary` | One sentence: trend, peak, top region and the fastest-rising related search |
| `trend`, `trendPct` | Rising, stable or falling: the latest quarter of the period vs the one before |
| `averageInterest`, `latestInterest` | Google's 0-100 interest scale |
| `peakDate` | When interest peaked |
| `interestOverTime` | Every data point of the chart (`date`, `value`) |
| `interestByRegion` | Top regions with their 0-100 score |
| `relatedQueriesTop`, `relatedQueriesRising` | What people also search; rising ones show % growth or `breakout: true` |
| `relatedTopicsTop`, `relatedTopicsRising` | The same for topics |

#### Real example (United States, past 12 months, run on 19 November 2026, trimmed)

```json
{
  "searchTerm": "cold plunge",
  "status": "OK",
  "summary": "Google Search interest in \"cold plunge\" (United States, past 12 months) is falling (-44% in the latest quarter of the period vs the one before). Peak: 2026-06-07. Top region: Wyoming. Fastest-rising related search: \"harrys cold plunge\" (Breakout).",
  "trend": "falling",
  "trendPct": -44,
  "averageInterest": 55,
  "latestInterest": 37,
  "peakDate": "2026-06-07",
  "interestOverTime": [
    { "date": "2025-11-16", "value": 46 },
    { "date": "2025-11-23", "value": 51 }
  ],
  "interestByRegion": [
    { "region": "Wyoming", "code": "US-WY", "value": 100 },
    { "region": "Utah", "code": "US-UT", "value": 32 },
    { "region": "Colorado", "code": "US-CO", "value": 30 }
  ],
  "relatedQueriesTop": [
    { "query": "sauna cold plunge", "value": 100 },
    { "query": "the plunge", "value": 87 }
  ],
  "relatedQueriesRising": [
    { "query": "harrys cold plunge", "value": 26200, "breakout": true },
    { "query": "portable cold plunge", "value": 400, "breakout": false }
  ],
  "relatedTopicsTop": [
    { "topic": "Ice bath", "type": "Topic", "value": 100 },
    { "topic": "Sauna", "type": "Topic", "value": 73 }
  ]
}
```

`interestOverTime` has all 52 weekly points in the real output.

### Two modes

| Mode | Speed | Price per term |
| --- | --- | --- |
| Standard (default) | Usually 2-3 minutes | **$0.005** |
| Fast (`fastMode: true`) | Seconds | $0.02 |

If a standard request takes too long, the Actor finishes it in fast mode at our cost. You still pay the standard price.

Runs that include paid terms also pay a one-time **$0.005** run fee. Runs with only free terms pay nothing.

### Pricing

| | Price |
| --- | --- |
| First 5 terms each calendar month | **Free** (any Apify plan) |
| Each further term | $0.005 standard, $0.02 fast (less on higher Apify plans) |
| Run fee | $0.005 once per run that includes paid terms |
| Terms with not enough data, invalid input, failed lookups | Free |

Set *Maximum cost per run* in the run options and the Actor stops before going over it. On the free Apify plan, after the 5 free terms, runs return a clearly marked sample report.

### Why not a Google Trends scraper?

Scrapers load the Google Trends website and fight its rate limits. When Google pushes back, runs get aborted or time out. This Actor gets the same Google Trends data through DataForSEO's API, so there is nothing to block: you either get a report or, if the source fails, you pay nothing. At $5 per 1,000 terms it also costs less than Apify's own Google Trends scraper ($6 per 1,000 results).

### Use it from code or an AI agent

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("countonce/google-trends-api").call(run_input={
    "searchTerms": ["ai agents", "vibe coding"],
    "location": "United States",
    "timeRange": "past_12_months",
    "source": "web",
})
for report in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(report["searchTerm"], "->", report.get("summary"))
```

AI agents can call it as a tool through the Apify MCP server and read the `summary` field directly.

### Input

| Field | Default | Notes |
| --- | --- | --- |
| `searchTerms` | required | Up to 50, one report each |
| `location` | United States | Country, state or city name, a DataForSEO location code, or `Worldwide` |
| `timeRange` | `past_12_months` | `past_7_days`, `past_30_days`, `past_90_days`, `past_12_months`, `past_5_years`, `2004_present` |
| `source` | `web` | `web`, `youtube`, `news`, `images`, `shopping` |
| `fastMode` | false | Seconds instead of minutes, $0.02 per term |
| `maxRelated` | 25 | Items per related queries/topics list |
| `maxRegions` | 15 | Regions to return |

### Honest limits

- Google Trends values are relative (0-100), not search volumes. For real monthly search volume and CPC, use [Keyword Search Volume API](https://apify.com/countonce/keyword-search-volume-api).
- Very rare terms may have no data. Those reports are free.
- Related queries, topics and regions are exactly what Google Trends reports. Rising lists sometimes include unrelated spikes, and small regions can top the map. The `summary` only names a rising search that shares a word with your term; the full lists are untouched.
- Related lists can be empty for small terms or short periods.

### Related Actors

- [Keyword Search Volume API](https://apify.com/countonce/keyword-search-volume-api): real monthly search volume, CPC and competition for up to 1,000 keywords. 10 keywords free every month.
- [Niche Finder](https://apify.com/countonce/niche-demand-checker): type a niche idea, get demand, CPC, competition, trend and a one-line verdict. First niche free each month.

### FAQ

**Do I need a Google account or an API key?** No. You get Google Trends data as structured JSON with one Apify call, no Google account, no proxies.

**Can I get YouTube trends?** Yes. Set `source` to `youtube`. The same works for Google News, Images and Shopping.

**How do I find rising searches for a topic?** Look at `relatedQueriesRising`. Values are % growth; `breakout: true` means growth above 5000%.

**Can I compare countries or states?** Set `location` to any country, state or city. `interestByRegion` shows which regions search the most.

### Support

Open an issue on the Issues tab with your run ID.

# Actor input Schema

## `searchTerms` (type: `array`):

One term per line, up to 50 per run. Each term gets its own report: interest over time, by region, related queries and topics.

## `location` (type: `string`):

Location name ("United Kingdom", "California,United States"), a DataForSEO location code (2840), or "Worldwide".

## `timeRange` (type: `string`):

Period of the interest-over-time chart and of related queries and topics.

## `source` (type: `string`):

Which Google property to read trends from.

## `fastMode` (type: `boolean`):

Off: standard queue, usually ready in 2-3 minutes, $0.005 per term. On: results in seconds, $0.02 per term.

## `maxRelated` (type: `integer`):

How many top and rising related queries and topics to return per list.

## `maxRegions` (type: `integer`):

How many regions to return, highest interest first.

## Actor input object example

```json
{
  "searchTerms": [
    "ai agents"
  ],
  "location": "United States",
  "timeRange": "past_12_months",
  "source": "web",
  "fastMode": false,
  "maxRelated": 25,
  "maxRegions": 15
}
```

# Actor output Schema

## `reports` (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 = {
    "searchTerms": [
        "ai agents"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("countonce/google-trends-api").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 = { "searchTerms": ["ai agents"] }

# Run the Actor and wait for it to finish
run = client.actor("countonce/google-trends-api").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 '{
  "searchTerms": [
    "ai agents"
  ]
}' |
apify call countonce/google-trends-api --silent --output-dataset

```

## MCP server setup

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

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/jAKZcdCuEcos75Pk1/builds/CqSTQSA84SDXeS942/openapi.json
