# Google Trends Scraper (No Login) (`scrapemint/google-trends-scraper`) Actor

Scrape Google Trends for any keyword. Interest over time, interest by region, and related rising and top queries. Filter by country, time range, and category. No login, no API key. Pay per row.

- **URL**: https://apify.com/scrapemint/google-trends-scraper.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Marketing, SEO tools, Business
- **Stats:** 4 total users, 4 monthly users, 98.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 trend rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google Trends Scraper (No Login)

Get Google Trends data for any keyword as clean rows: interest over time, interest by region, and related rising and top queries. No login, no API key, no browser. Give it keywords, pick a country and time range, and it returns the same data the Trends UI shows.

### What you get

Each keyword produces up to three row types (choose which in `dataTypes`):

- `interest_over_time` (1 row per keyword): full `timeline` of dated 0 to 100 values, plus `averageValue`, `peakValue`, `latestValue`
- `interest_by_region` (1 row per region): `geoCode`, `geoName`, `value`, highest interest first
- `related_query` (1 row per query): `query`, `rank` (`top` or `rising`), `value`, `formattedValue` (rising shows growth like `+250%` or `Breakout`), `link`

Every row carries `keyword`, `geo`, `timeRange`, `category`, `property`, and `scrapedAt`.

### Input

- `keywords` (one or more terms; each explored on its own 0 to 100 scale)
- `geo` (two letter country code, empty = worldwide)
- `timeRange` (`now 1-H` to `all`, default past 12 months)
- `category` (Google Trends category ID, 0 = all)
- `property` (Web, Image, News, YouTube, or Shopping search)
- `dataTypes`, `maxRegionsPerKeyword`, `maxRelatedPerKeyword`, `maxRows`

### Example input

```json
{
  "keywords": ["web scraping", "chatgpt"],
  "geo": "US",
  "timeRange": "today 12-m"
}
```

Find rising searches around a niche worldwide:

```json
{
  "keywords": ["standing desk"],
  "geo": "",
  "timeRange": "today 3-m",
  "dataTypes": ["relatedQueries"]
}
```

### Uses

- Keyword research and SEO content planning
- Spotting rising product or niche demand before it peaks
- Validating market interest by country or region
- Tracking brand or competitor search interest over time
- Feeding trend signals into dashboards and alerts

### Pricing

Pay per row. The first 10 rows of every run are free so you can validate output before you scale up. An interest-over-time series is a single row (the whole timeline is embedded), so a typical keyword costs a few cents.

### Notes

- Values are Google's relative 0 to 100 index, scaled per keyword and time range, not absolute search volumes.
- Google Trends rate limits by IP. The Actor paces requests and retries with backoff; if you run many keywords back to back and see 429 warnings, supply a residential proxy in `proxyConfiguration`.
- Low volume keywords can return an empty timeline or no related lists; that is Google having no data, and no rows means no charge.
- Related topics (as opposed to related queries) are not offered because Google does not serve them to keyless sessions.
- This Actor reads only public data and never logs in.

# Actor input Schema

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

One or more search terms to look up on Google Trends. Each keyword is explored on its own, so values are that keyword's own 0 to 100 scale.

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

Two letter country code, e.g. US, GB, DE, IN. Leave empty for worldwide.

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

How far back to look.

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

Optional Google Trends category ID to narrow results (0 = all categories). Find IDs in the Trends UI URL after picking a category, e.g. 7 = Finance, 12 = Business & Industrial.

## `property` (type: `string`):

Which Google surface to measure.

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

Which row types to output per keyword.

## `maxRegionsPerKeyword` (type: `integer`):

Cap on interest-by-region rows per keyword, highest interest first.

## `maxRelatedPerKeyword` (type: `integer`):

Cap on related query rows per list (top and rising are separate lists, Google serves up to 25 each).

## `maxRows` (type: `integer`):

Maximum number of rows to return across all keywords. First 10 rows per run are free.

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

Optional. Google Trends rate limits by IP; if you run many keywords back to back and see 429 warnings, supply a residential proxy here.

## Actor input object example

```json
{
  "keywords": [
    "web scraping"
  ],
  "geo": "US",
  "timeRange": "today 12-m",
  "category": 0,
  "property": "",
  "dataTypes": [
    "interestOverTime",
    "interestByRegion",
    "relatedQueries"
  ],
  "maxRegionsPerKeyword": 20,
  "maxRelatedPerKeyword": 25,
  "maxRows": 500
}
```

# 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": [
        "web scraping"
    ],
    "geo": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/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": ["web scraping"],
    "geo": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/google-trends-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "web scraping"
  ],
  "geo": "US"
}' |
apify call scrapemint/google-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapemint/google-trends-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RyNG4MgbAtJGjTPoL/builds/1gffhU7CHokkAnzIh/openapi.json
