# Google Trends Scraper (`autoworks-jp/google-trends-scraper`) Actor

Google Trends data as clean JSON/CSV rows: interest over time, by region, top & rising related queries (Breakout), related topics and daily Trending Now. No API key. $1 per 1,000 rows.

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

## Pricing

from $0.70 / 1,000 results

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 API: Rising Queries & Trending Now

A **Google Trends API alternative** for people, scripts and AI agents. Get **Google Trends data as clean JSON/CSV**: interest over time, interest by country/state/city, related queries (top & rising, including **Breakout** terms), related topics, and the live **Trending Now** list for any country. No API key, no login.

**Why this one?**

- ✅ **Built for reliability.** Every request auto-retries on a fresh residential IP when Google rate-limits (HTTP 429) or shows a captcha. One blocked keyword never kills the whole run.
- 💸 **You never pay for nothing.** Billing is per row actually delivered. Regions with no data are dropped, and keywords that fail are not charged.
- ⚡ **Fast and light.** Direct HTTP, no browser. Runs on 512 MB, so each run costs only one $0.005 start fee.
- 🤖 **Agent-ready.** Works as a tool in the Apify MCP server, with a one-field minimal input and a setting to keep answers short.
- 🧾 **Flat, analysis-ready rows.** Every row has the same `keyword`, `geo`, `timeframe` and `dataType` fields, so you can load it straight into Sheets, pandas or BigQuery.

### What data can you get?

| `dataType` | What it is | Key fields |
|---|---|---|
| `interest_over_time` | Search interest (0–100) for each day, week or month | `date`, `value`, `isPartial` |
| `interest_by_region` | Interest by country, state, metro area or city | `geoCode`, `geoName`, `value`, `rank` |
| `related_queries` | Top and rising searches related to the keyword | `query`, `listType` (`top`/`rising`), `value`, `formattedValue`, `isBreakout` |
| `related_topics` | Top and rising related topics | `topicTitle`, `topicType`, `listType`, `value` |
| `trending_now` | Today's trending searches in a country | `title`, `approxTraffic`, `approxTrafficMin`, `newsItems` |

Supported search types: Web, Image, News, YouTube and Google Shopping. You can set any time range, from the past hour to 2004–present, or a custom date range.

### Use cases

- **SEO and content planning.** Find rising and breakout queries before your competitors do.
- **E-commerce and product research.** Check seasonality and regional demand before stocking a product.
- **Market research and investing.** Track brand or ticker interest over time.
- **AI agents and automations.** Feed live trend data to LLMs through the Apify MCP server, n8n, Make or Zapier.

### How to use

1. Choose **Explore keywords** and enter one or more keywords, or choose **Trending Now** and enter country codes.
2. Optionally set the country (`US`, `GB`, `DE`, `JP`, `US-CA`…), time range, search type and category.
3. Click **Start**. Download the results as JSON, CSV or Excel, or get them via the API.

#### Input example

```json
{
  "mode": "explore",
  "keywords": ["electric bike", "air fryer"],
  "geo": "US",
  "timeframe": "past_12_months",
  "interestOverTime": true,
  "interestByRegion": true,
  "relatedQueries": true,
  "relatedTopics": true
}
```

#### Output example

```json
{
  "keyword": "electric bike",
  "geo": "WORLDWIDE",
  "timeframe": "past_12_months",
  "dataType": "related_queries",
  "listType": "rising",
  "rank": 1,
  "query": "electric mini bike",
  "value": 300,
  "formattedValue": "+300%",
  "isBreakout": false,
  "link": "https://trends.google.com/trends/explore?q=electric+mini+bike&date=today+12-m"
}
```

A run summary (rows delivered, failed keywords, parts with no data) is saved to the `SUMMARY` key in the run's key-value store.

### Pricing

You pay **per result row** ($1 per 1,000 rows, lower on higher Apify plans) plus a $0.005 start fee per run. A typical keyword with all data types enabled returns about 100–300 rows, so it costs about $0.10–$0.30. Turn off the data types you don't need to spend less. Set **Maximum cost per run** in the run options and the Actor stops cleanly when it reaches that limit.

### Use with AI agents (MCP, Claude, ChatGPT, Cursor, n8n)

Add this Actor as a tool through the Apify MCP server:

```
https://mcp.apify.com?tools=autoworks-jp/google-trends-scraper
```

Then ask your agent things like *"What are the breakout searches for 'protein coffee' in the US over the past 90 days?"* or *"What is trending in Japan today?"*

**Minimal input.** Only `keywords` is needed. Everything else has sensible defaults.

```json
{ "keywords": ["protein coffee"] }
```

**Short, cheap answers for agents.** Turn off the parts you don't need and cap the related lists:

```json
{
  "keywords": ["protein coffee"],
  "geo": "US",
  "timeframe": "past_90_days",
  "interestOverTime": false,
  "interestByRegion": false,
  "relatedTopics": false,
  "maxRelatedItems": 10
}
```

This returns about 20 rows (top 10 and rising 10 related queries) for about $0.03 including the start fee.

**Trending Now:** `{ "mode": "trendingNow", "trendingGeos": ["US", "JP"], "maxTrendingItems": 10 }`

Every output field is documented in the dataset schema, so agents can read the rows without guessing.

### Tips and limits

- Values are **relative** (0–100), not absolute search volumes. Each keyword is scaled to its own peak.
- Low-volume keywords may return no related queries or regions. In that case you get no rows and pay nothing for them.
- Keep the default **residential proxy**. Google blocks datacenter IPs quickly.
- Related topics are sometimes empty for certain locales or time ranges. This is a Google-side limitation.

### Is it legal?

This Actor collects only publicly available, aggregated Google Trends statistics. It does not collect any personal data. Make sure your use complies with Google's terms and the laws that apply to you.

### Need content ideas instead of raw data?

Use [Google Trends Keyword Idea Miner](https://apify.com/autoworks-jp/google-trends-keyword-idea-miner) by the same developer. It turns one seed keyword into a ranked, de-duplicated list of rising content and SEO ideas, two levels deep, with a 0–100 score and intent labels (question, comparison, buying).

### Support

Found a problem or need a field? Open an issue on the **Issues** tab. We check issues regularly and reply as soon as we can.

# Actor input Schema

## `mode` (type: `string`):

Optional. 'explore' (default) returns data for the keywords below. 'trendingNow' returns today's trending searches for the countries in 'Countries for Trending Now'.

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

Required in explore mode. One or more search terms, e.g. \["protein coffee", "air fryer"]. Each keyword is processed separately and its values are 0-100 relative to that keyword's own peak. Fewer keywords = faster and cheaper.

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

Optional. Two-letter country code such as US, GB, DE or JP, or a region such as US-CA. Leave empty for worldwide.

## `timeframe` (type: `string`):

Optional. Time range for the data (default: past 12 months). Use 'Custom time range' for exact dates.

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

Overrides Time range. Format: 'YYYY-MM-DD YYYY-MM-DD', e.g. '2025-01-01 2025-06-30'.

## `searchProperty` (type: `string`):

Which Google search to measure: Web, Images, News, YouTube or Google Shopping.

## `category` (type: `integer`):

Google Trends category ID. 0 = all categories.

## `interestOverTime` (type: `boolean`):

Search interest (0-100) for each day/week/month in the time range.

## `interestByRegion` (type: `boolean`):

Search interest (0-100) by country, state, metro area or city. Regions without data are skipped.

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

Region level for 'Interest by region'. Automatic = countries for worldwide, states/regions when a country is set.

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

0 = all regions with data.

## `relatedQueries` (type: `boolean`):

Top and rising searches related to each keyword, including Breakout terms (growth over 5000%). Best signal for spotting new trends.

## `relatedTopics` (type: `boolean`):

Top and rising topics related to each keyword. Sometimes empty on Google's side.

## `maxRelatedItems` (type: `integer`):

Keep only the top N items of each related queries/topics list (top and rising separately). 0 = all (Google returns up to about 25 each). Use 5-10 for short, cheap answers, for example when an AI agent calls this Actor.

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

Country codes for Trending Now mode, e.g. US, GB, JP.

## `maxTrendingItems` (type: `integer`):

0 = all.

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

Interface language code used for labels, e.g. en-US, ja, de.

## `delayBetweenRequestsSecs` (type: `number`):

Pause between requests to Google. Higher values reduce blocking.

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

How many times each request is retried on a fresh IP when Google blocks it.

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

Residential proxies are strongly recommended; Google blocks datacenter IPs.

## Actor input object example

```json
{
  "mode": "explore",
  "keywords": [
    "electric bike",
    "air fryer"
  ],
  "geo": "",
  "timeframe": "past_12_months",
  "searchProperty": "web",
  "category": 0,
  "interestOverTime": true,
  "interestByRegion": true,
  "regionResolution": "auto",
  "maxRegions": 0,
  "relatedQueries": true,
  "relatedTopics": true,
  "maxRelatedItems": 0,
  "trendingGeos": [
    "US"
  ],
  "maxTrendingItems": 0,
  "language": "en-US",
  "delayBetweenRequestsSecs": 1,
  "maxRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All Google Trends rows (interest over time, by region, related queries/topics, Trending Now).

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

Rows delivered, failed keywords and parts with no data.

# 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": [
        "electric bike",
        "air fryer"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("autoworks-jp/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 = { "keywords": [
        "electric bike",
        "air fryer",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("autoworks-jp/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 '{
  "keywords": [
    "electric bike",
    "air fryer"
  ]
}' |
apify call autoworks-jp/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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