# Google Trends Scraper: Interest, Regions, Related, Trending Now (`zhtech/google-trends-scraper`) Actor

Google Trends scraper: interest over time, by region and city, related queries and topics, Trending Now with news. Web, YouTube, News, Images, Shopping. Compare any number of keywords on one scale. Tidy rows plus per keyword summaries.

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

## Pricing

from $2.00 / 1,000 keyword 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 Scraper and API: Interest, Rising Queries, Trending Now, Alerts

Get Google Trends data as clean JSON, CSV or Excel without an API key or a browser: **interest over time**, **interest by country, state, metro and city**, **related and rising queries with breakout flags**, the full **Trending Now** list for any country, plus ready made analysis on every keyword: **year over year change, seasonality, spikes and trend direction**. Schedule it with **Monitoring mode** and it tells you which breakout queries and trending searches are **new since the last run**.

### What you get

One keyword, everything in one record (real output from a local run, shortened):

```json
{
  "recordType": "keyword_summary",
  "term": "snow blower",
  "geo": "US",
  "timeRange": "today 5-y",
  "interestAverage": 6.67,
  "interestPeak": 100,
  "interestPeakDate": "2026-01-25",
  "interestLatest": 12,
  "trendDirection": "rising",
  "yoyChangePercent": 51.9,
  "seasonality": { "peakMonth": "Jan", "lowMonth": "Jun", "strength": 3.03, "strengthLabel": "strong" },
  "spikes": [{ "date": "2026-01-25", "value": 100, "timesUsualLevel": 25.0 }],
  "topRelatedQueries": ["snow blower electric", "ego snow blower", "best snow blower", "toro snow blower"],
  "risingRelatedQueries": [{ "query": "yarbo snow blower", "growth": "Breakout" }],
  "breakoutQueries": ["yarbo snow blower", "yarbo snow blower review"],
  "newBreakoutQueries": ["yarbo snow blower", "yarbo snow blower review"],
  "timeline": [{ "date": "2026-11-08", "value": 13 }, { "date": "2026-11-15", "value": 12 }],
  "trendsUrl": "https://trends.google.com/trends/explore?q=snow%20blower&date=today%205-y&geo=US"
}
```

A Trending Now row for any country:

```json
{ "recordType": "trending_search", "geo": "US", "query": "costco thanksgiving holiday store closures", "searchVolumeLabel": "20K+", "increasePercent": 1000, "startedAt": "2026-11-21T15:20:00Z", "categories": ["Hobbies and Leisure", "Shopping"], "isNew": true }
```

Add interest by region and you also get `topRegions` and one row per state, metro or city. Prefer spreadsheets? Every date, region and related query is also available as its own tidy row (see Output).

### Use cases

- **SEO and keyword research**: find rising and breakout queries around a seed keyword before competitors write about them. Run it daily with Monitoring mode and get only the new breakouts.
- **Content planning**: `seasonality.peakMonth` and `monthlyAverages` tell you when to publish. Trending Now by country, filtered by category, feeds a daily content or newsjacking brief.
- **Product and ecommerce research**: compare products or brands on one scale (any number of them), check `yoyChangePercent` to see if demand is growing, and measure Google Shopping or YouTube search instead of web search.
- **Investing and market research**: build long history series (2004 to present) for brands, tickers and themes, spot attention `spikes`, and track year over year momentum. Tidy rows load straight into pandas, BigQuery or Sheets.
- **Regional targeting**: see which states, metros (US DMA) or cities search a term most, to plan ads, stores or sales territories.
- **AI agents**: give an LLM fresh search interest through the Apify MCP server; `outputFormat: "summaries"` keeps answers short.

### Why this one

| | This Actor | Typical Google Trends Actors |
|---|---|---|
| How it reads Google Trends | Google's own JSON endpoints over HTTP, no browser | Several are browser based and break when Google redesigns the page |
| Compare more than 5 keywords on one scale | Yes, automatic anchor normalization | Max 5, or do it by hand |
| YoY change, seasonality, spikes | Computed for every keyword | Raw numbers only |
| New since last run (monitoring) | Trending Now and rising queries, with `isNew` | Rare, and Trending Now only |
| Failed or empty keywords | Free, with a notice that says why | Often charged for zero output |
| Run start fee | Nominal | Some charge $0.025 per run |
| Price unit | One term report includes timeline, regions and related data | Some charge per row, so one keyword costs 100+ results |
| Rate limits | Pacing, backoff, fresh session and IP, bounded retries | Some loop for minutes with no result |
| Trending Now | Full list (hundreds per country) with volume, growth, start and end, categories, related searches, news | Often only the top 10 to 20 |

### How to use it

1. Enter **Search terms** (one per line), or paste **Google Trends URLs**. Leave everything empty to run the example.
2. Pick **Data to collect**: interest over time, interest by region, related queries, related topics.
3. Choose **Comparison mode**: *Individual* (each term on its own 0 to 100 scale, best for bulk) or *Compare* (all terms on one shared scale, any number of terms).
4. Set **Locations**, **Time range** (past hour to 2004, or exact dates), **Search type** (web, YouTube, News, Images, Shopping) and optionally a **Category**.
5. Optional: add **Trending Now countries**, and switch on **Monitoring mode** for scheduled runs.
6. Click **Start**. Download JSON, CSV or Excel, or read it through the API.

#### Input examples

Compare three AI assistants in the US, with Trending Now:

```json
{
  "searchTerms": ["chatgpt", "gemini", "claude"],
  "comparisonMode": "compare",
  "geos": ["US"],
  "timeRange": "today 3-m",
  "trendingGeos": ["US"],
  "maxTrendingPerGeo": 20
}
```

Daily alert on new breakout queries and new trending searches (schedule it once a day):

```json
{
  "searchTerms": ["air fryer", "standing desk"],
  "dataTypes": ["relatedQueries"],
  "geos": ["US"],
  "timeRange": "now 7-d",
  "trendingGeos": ["US", "GB"],
  "monitorMode": true,
  "monitorKey": "daily-products",
  "monitorOnlyNew": true,
  "outputFormat": "summaries"
}
```

Seasonality and year over year growth for product ideas:

```json
{ "searchTerms": ["snow blower", "pool float", "electric bike"], "timeRange": "today 5-y", "dataTypes": ["interestOverTime"], "outputFormat": "summaries" }
```

More: 8 brands on one scale with `"comparisonMode": "compare", "anchorTerm": "nike"`; YouTube worldwide with `"searchType": "youtube", "geos": ["WORLD"]`; exact dates with `"timeRange": "custom", "customTimeRange": "2024-01-01 2024-12-31"`.

### Integrations

**Apify API**: start a run and get the items in one call.

```bash
curl -X POST "https://api.apify.com/v2/acts/zhtech~google-trends-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["electric bike","ebike"],"comparisonMode":"compare","geos":["US"],"timeRange":"today 5-y","dataTypes":["interestOverTime"],"outputFormat":"summaries"}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("zhtech/google-trends-scraper").call(run_input={
    "searchTerms": ["running shoes", "hiking boots"],
    "geos": ["US", "GB"],
    "timeRange": "today 5-y",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["recordType"] == "keyword_summary":
        print(item["term"], item["geo"], item["yoyChangePercent"], (item["seasonality"] or {}).get("peakMonth"))
```

- **Make, n8n and Zapier**: use the Apify app or node, action "Run Actor", pick `zhtech/google-trends-scraper` and paste one of the JSON inputs above. All inputs are plain fields, with no hidden flags.
- **Google Sheets**: use the Apify Google Sheets integration (or Make, n8n, Zapier) to append each run to a sheet. Choose `outputFormat: "rows"` for one row per date, region or query.
- **Apify MCP server**: add the Actor to Claude, ChatGPT, Cursor or any MCP client and ask, for example, "compare interest in chatgpt, gemini and claude in the US over the past 90 days". The `keyword_summary` record is built to be easy for an LLM to read.
- **Schedules and webhooks**: run it hourly or daily and get a webhook when it finishes. When Google returned nothing at all, the run fails loudly instead of ending as an empty success, so your alerts catch it.

### Output

Every record has a `recordType`. Use the dataset views (Overview, Interest over time rows, Interest by region rows, Related rows, Trending Now) or filter on `recordType`.

| recordType | One record is |
|---|---|
| `keyword_summary` | One term in one location: stats, YoY, seasonality, spikes, top regions, top and rising queries, nested timeline |
| `interest_over_time` | One term on one date (or hour) |
| `interest_by_region` | One term in one region, with rank, value and share of the comparison; latitude and longitude for cities |
| `related_query` / `related_topic` | One related query or topic, top or rising, with growth and `isBreakout` |
| `trending_search` | One Trending Now search in one country |
| `notice` | Google had no data for part of a request, with the reason |
| `error` | A request that failed after all retries, with the reason (never charged) |

`outputFormat`: `both` (default), `rows` (tidy rows only) or `summaries` (one record per term). The price is the same: it is per term report, not per row.

Tidy rows look like this:

```json
{ "recordType": "interest_over_time", "term": "chatgpt", "geo": "US", "date": "2026-08-16", "value": 47, "isPartial": false, "scale": "shared" }
{ "recordType": "interest_by_region", "term": "chatgpt", "geo": "US", "rank": 1, "geoCode": "US-CA", "geoName": "California", "value": 100, "shareOfComparison": 58 }
{ "recordType": "related_query", "term": "chatgpt", "relatedType": "rising", "query": "chatgpt student offer", "formattedValue": "+600%", "isBreakout": false }
```

#### Analysis fields on every summary

- `trendDirection` and `interestChangePercent`: the last quarter of the range versus the first quarter.
- `yoyChangePercent`: the latest 4 weeks versus the same 4 weeks a year earlier. Needs at least about 13 months of data, so use `today 5-y` or `all`.
- `seasonality`: average interest per calendar month across 2 or more years, the peak and low month, and a strength score (0 means flat all year, 1 or more means strongly seasonal).
- `spikes`: dates far above the usual level (at least 2 standard deviations above the mean and 1.5 times the median), highest first.
- With Monitoring mode: `newRisingQueries`, `newBreakoutQueries`, `monitorFirstRun`, and `isNew` on trending and rising query rows.

### Monitoring mode

Turn on `monitorMode` for scheduled runs. The Actor remembers what earlier runs with the same `monitorKey` returned (in a key value store named `google-trends-monitor` in your own account) and marks what is new. With `monitorOnlyNew`, already seen Trending Now searches and rising queries are skipped, and skipped trending searches are not charged. The first run marks everything as new. Use one `monitorKey` per schedule.

### How the numbers work

Google Trends never shows search counts. Each value is relative interest from 0 to 100, where 100 is the highest point in that request.

- **Individual mode**: each term is its own request, so its own peak is 100. Good for shape, seasonality and YoY, not for comparing terms.
- **Compare mode, 2 to 5 terms**: one Google request, one shared scale.
- **Compare mode, more than 5 terms**: groups of the anchor plus 4 terms, each group rescaled through the anchor, then the overall maximum set to 100. See `valueNormalized` and `anchorDiagnostics`; `precision: "low"` tells you the anchor was too small in a group. Pick a steady anchor of similar popularity.
- **Rising queries**: percent growth versus the previous period. "Breakout" means more than +5,000%.
- **Trending Now volume**: Google's own bucketed estimate (for example 20K+), not an exact count.

### Pricing

Pay per event, no subscription:

- **Term report**: one term in one location with every data type you selected and its summary. Charged only when Google returned data. Terms with no data and failed terms are free.
- **Trending search**: one Trending Now row.
- A nominal run start event.

See the Pricing tab for current prices. A 5 year timeline with 50 regions and 50 related queries is one event, not 360 results. Set a maximum charge per run and the Actor stops cleanly when it is reached.

### Tips for reliable runs

- The default proxy is Apify datacenter proxy with a fresh IP per session, which handles normal volumes well. If a very large run keeps hitting rate limits, raise `requestDelaySecs`, lower `maxConcurrency`, or pick RESIDENTIAL in the proxy settings.
- Without any proxy, keep `maxConcurrency` at 1.
- City level data is sparse in Google Trends. Use subregions or metros for full coverage.
- Related topics are rarely returned by Google today and never for multi term comparisons. Use related queries.

### FAQ

**Is there an official Google Trends API?** Google has an alpha API with limited access. This Actor works as a Google Trends API alternative for anyone: send keywords, get JSON back.

**Can I compare more than 5 keywords?** Yes. Use Compare mode; the anchor term puts any number of keywords on one scale.

**Does it give search volume?** No. Google Trends only publishes relative interest, so no tool can read exact search volume from it. Trending Now includes Google's volume buckets (like 200K+). For exact monthly volumes, use a keyword planner tool alongside this one.

**Why do my numbers differ a little from the website?** Google samples its data, so two identical requests can differ by a few points, more for low volume terms and short ranges. The website also uses your local time zone; this Actor reports UTC.

**Why is the last point low?** The current period is incomplete. Such points have `isPartial: true` and are left out of the stats.

**Why is `yoyChangePercent` or `seasonality` null?** The range is too short. YoY needs about 13 months and seasonality needs 2 years. Use `today 5-y` or `all`.

**What happens on an empty input?** It runs the example (chatgpt, gemini and claude compared in the US) so you can see the output.

**Is it legal?** It collects aggregated, anonymous, publicly available statistics. It does not log in and collects no personal data. You are responsible for how you use the data and for following applicable terms and laws.

### Limitations

- Google Trends data is relative and sampled; see "How the numbers work".
- Google rate limits by IP. Very large runs can slow down while the Actor backs off. Failed terms come back as error records and are not charged.
- News articles on Trending Now come from Google's Trending RSS feed, which covers only the latest headline trends. Other trends report `newsArticleCount` without the article list.
- Related topics depend on Google and are often empty. City data is often empty for smaller terms.
- Monitoring state lives in your account's key value store; deleting it starts the history over.
- Google can change its internal endpoints at any time. The Actor is monitored daily and fixed when that happens.

Not affiliated with or endorsed by Google. Google Trends is a trademark of Google LLC.

# Actor input Schema

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

Keywords to analyze, one per line. You can also enter a Google topic id such as /m/0dl567. Empty lines and duplicates are ignored. Each term and geo pair is one charged term report.

## `dataTypes` (type: `array`):

Which Google Trends widgets to fetch for every term. Related topics are only served by Google for single term requests and are often empty, so they are off by default.

## `comparisonMode` (type: `string`):

Individual: every term is analyzed on its own 0 to 100 scale (best for bulk keyword research). Compare: all terms share one 0 to 100 scale. Up to 5 terms are compared natively by Google; with more than 5 the Actor splits them into groups that all contain the anchor term and rescales every group onto one shared scale.

## `anchorTerm` (type: `string`):

Only used when you compare more than 5 terms. The anchor is added to every group of 4 terms so the groups can be put on one scale. Pick a term with steady, medium popularity similar to your terms. Leave empty to use the first search term.

## `startUrls` (type: `array`):

Paste Google Trends explore URLs (old /trends/explore and new /explore formats). Their terms, geo, date, category and property are used as is (up to 5 terms per URL).

## `useTopics` (type: `boolean`):

Resolve each keyword to its best matching Google Knowledge Graph topic (for example apple to Apple Inc) before querying. Topics merge spellings and languages. Uses one extra request per keyword.

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

Where to measure interest. Country (US, GB, DE), subregion (US-CA, GB-SCT), US metro (US-NY-501) or WORLD for worldwide. Every term is analyzed for every location listed.

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

Period to analyze. Choose Custom to set exact dates below.

## `customTimeRange` (type: `string`):

Format YYYY-MM-DD YYYY-MM-DD, for example 2024-01-01 2024-12-31. For hourly data within the last 7 days use YYYY-MM-DDTHH YYYY-MM-DDTHH. Overrides Time range when filled.

## `searchType` (type: `string`):

Which Google property to measure.

## `category` (type: `string`):

Limit interest to a Google Trends category. Use Custom category id below for any of the 1,100+ subcategories.

## `customCategoryId` (type: `integer`):

Any Google Trends category id (for example 390 for Mobile Phones). Overrides Category when set.

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

Interface language used for region names, formatted dates and topic titles, for example en-US, de, fr, es, ja.

## `regionResolution` (type: `string`):

Granularity of Interest by region. Auto uses Google's default (countries for worldwide, subregions for a country). Metro (DMA) is only available for the United States.

## `includeLowVolumeRegions` (type: `boolean`):

Also return regions where Google has too little data (they come back with value 0). Off by default so you do not get pages of zero rows.

## `maxRegionsPerTerm` (type: `integer`):

Limit how many regions (highest interest first) are returned per term. 0 returns all.

## `trendingGeos` (type: `array`):

Country codes to fetch Google's Trending Now list for (real time trending searches with volume, growth, related searches and news). Leave empty to skip. Each trending search is charged as one result.

## `trendingHours` (type: `string`):

Trends that started within this window.

## `trendingCategories` (type: `array`):

Only keep trends in these categories. Leave empty for all.

## `trendingActiveOnly` (type: `boolean`):

Skip trends that Google already marks as ended.

## `trendingSort` (type: `string`):

Order of trending searches. Relevance keeps Google's own order.

## `maxTrendingPerGeo` (type: `integer`):

Google lists hundreds of trends per country (thousands for 7 days). 0 returns all.

## `trendingIncludeNews` (type: `boolean`):

Attach the news articles Google shows for headline trends (taken from Google's Trending RSS feed, which covers the top trends only).

## `monitorMode` (type: `boolean`):

For scheduled runs. Remembers what earlier runs returned and marks every Trending Now search and every rising related query with isNew. Summaries get newRisingQueries and newBreakoutQueries. State is kept in your own key value store named google-trends-monitor.

## `monitorKey` (type: `string`):

Separate memory per name. Use a different name for each schedule or task (for example us-ai-daily).

## `monitorOnlyNew` (type: `boolean`):

With monitoring on, skip Trending Now searches and rising related queries that an earlier run already returned. Skipped trending searches are not charged. Term reports are still charged when Google returns data, because the timeline and regions are new data every run.

## `outputFormat` (type: `string`):

Both: one summary record per term plus tidy rows (one row per date, region and related query). Rows: spreadsheet friendly rows only. Summaries: one record per term with the timeline nested. Every record has a recordType field you can filter on. The price is per term report, not per row.

## `maxConcurrency` (type: `integer`):

Parallel sessions. Google Trends rate limits per IP, so keep 1 without proxies; 2 to 4 works well with Apify Proxy (each session gets its own IP).

## `requestDelaySecs` (type: `number`):

Base pause between requests in one session (randomized). The Actor slows down automatically when Google pushes back.

## `maxRetries` (type: `integer`):

Retries with exponential backoff and a fresh session on rate limits (HTTP 429) and network errors. A request never loops forever.

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

Default: Apify Proxy datacenter IPs with automatic rotation, which works well for Google Trends at normal volumes. If a large run keeps hitting rate limits, raise the delay, lower concurrency, or switch to RESIDENTIAL here.

## Actor input object example

```json
{
  "searchTerms": [
    "chatgpt",
    "gemini",
    "claude"
  ],
  "dataTypes": [
    "interestOverTime",
    "interestByRegion",
    "relatedQueries"
  ],
  "comparisonMode": "compare",
  "useTopics": false,
  "geos": [
    "US"
  ],
  "timeRange": "today 3-m",
  "searchType": "web",
  "category": "0",
  "language": "en-US",
  "regionResolution": "AUTO",
  "includeLowVolumeRegions": false,
  "maxRegionsPerTerm": 0,
  "trendingGeos": [
    "US"
  ],
  "trendingHours": "24",
  "trendingActiveOnly": false,
  "trendingSort": "relevance",
  "maxTrendingPerGeo": 20,
  "trendingIncludeNews": true,
  "monitorMode": false,
  "monitorKey": "default",
  "monitorOnlyNew": false,
  "outputFormat": "both",
  "maxConcurrency": 1,
  "requestDelaySecs": 1.5,
  "maxRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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": [
        "chatgpt",
        "gemini",
        "claude"
    ],
    "comparisonMode": "compare",
    "geos": [
        "US"
    ],
    "timeRange": "today 3-m",
    "trendingGeos": [
        "US"
    ],
    "maxTrendingPerGeo": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/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 = {
    "searchTerms": [
        "chatgpt",
        "gemini",
        "claude",
    ],
    "comparisonMode": "compare",
    "geos": ["US"],
    "timeRange": "today 3-m",
    "trendingGeos": ["US"],
    "maxTrendingPerGeo": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/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 '{
  "searchTerms": [
    "chatgpt",
    "gemini",
    "claude"
  ],
  "comparisonMode": "compare",
  "geos": [
    "US"
  ],
  "timeRange": "today 3-m",
  "trendingGeos": [
    "US"
  ],
  "maxTrendingPerGeo": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call zhtech/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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