# Google Trends Scraper: Related Queries, No 429 · $2/1K (`pomlabs/google-trends-scraper`) Actor

Google Trends API for any keyword: interest over time, peak and trend change, interest by region, top and rising related queries. Any country, time range, category, web/YouTube/news/shopping. Fresh residential IPs, no 429. $0.002 per keyword delivered; failures are free.

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

## Pricing

from $1.40 / 1,000 keyword delivereds

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: Related Queries, No 429

Get Google Trends data for any keyword, in any country, without fighting `429 Too Many Requests`. One result per search term, with:

- **Interest over time** (the 0 to 100 curve Google shows), plus the **average**, the **peak date** and the **trend change** (last quarter of the period against the first)
- **Top and rising related queries**, up to 25 each, with the `Breakout` and `+850%` values exactly as Google shows them
- **Interest by region**: by country (Worldwide) or by state and region (one country)
- A link to the same view on trends.google.com, to check any number by eye

**$0.002 per keyword delivered** ($2 per 1,000), down to $1.40 per 1,000 on paid Apify plans. Keywords that Google blocks or that fail after all retries are **free**.

### Why this one

The usual problem with Google Trends is the `429` error: Google allows only a few dozen requests per IP, and `pytrends`, notebooks and many scrapers stop there. This Actor spreads the work over fresh residential IPs, warms each session the way a browser does, retries a failed keyword on a new IP, and gives every failed keyword a second pass at the end of the run. You only pay for what arrives.

Measured success rate: **100%: 1,580 of 1,580 keywords delivered** in 16 runs over 4 hours (87.7% on the first try, the rest after automatic retries on a new IP) (see "Reliability" below).

### What you can look up

| Option | What it does |
|---|---|
| Search terms | Any keyword or phrase, in any language. One result each. |
| Google Trends URLs | Paste links from trends.google.com; the keywords in them are added. |
| Country or region | Any country Google Trends covers: `US`, `BR`, `GB`, `IN`, `KR`, `TW`, `ID`, `JP`... or a region like `US-CA`. Empty = Worldwide. |
| Time range | Past hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months, 5 years, or 2004 to now. Or a custom range `2025-01-01 2025-06-30`. |
| Search type | Web, YouTube, News, Images or Google Shopping. |
| Category | Any Google Trends category ID (for example 7 = Finance, 18 = Shopping). |
| Language | Language of region names and dates (`en-US`, `pt-BR`, `es`...). |

### Tested countries

Tested on Nov 24, 2026 with 10 keywords each (past 12 months): every keyword delivered, with interest over time, regions and related queries, in all of them.

| Country | Delivered | Regions per keyword | Example regions |
|---|---|---|---|
| South Korea (`KR`) | 10 of 10 | 16 | Seoul, Daejeon |
| Taiwan (`TW`) | 10 of 10 | 6 | Taipei City, Taichung City |
| Indonesia (`ID`) | 10 of 10 | 34 | East Nusa Tenggara, Yogyakarta |
| Japan (`JP`) | 10 of 10 | 47 | Tokyo, Okinawa |
| India (`IN`) | 10 of 10 | 35 | Puducherry, Tamil Nadu |
| Germany (`DE`) | 10 of 10 | 16 | Hesse, Bavaria |
| Mexico (`MX`) | 10 of 10 | 32 | Colima, Campeche |
| Portugal (`PT`) | 10 of 10 | 20 | Faro, Azores |
| United Kingdom (`GB`) | 10 of 10 | 4 | England, Northern Ireland |
| Worldwide | 10 of 10 | 69 countries | Ghana, Nigeria |

### Output example

```json
{
  "searchTerm": "bitcoin",
  "geo": "Worldwide",
  "timeRange": "today 12-m",
  "searchType": "web",
  "trendsUrl": "https://trends.google.com/trends/explore?q=bitcoin&date=today+12-m&hl=en-US",
  "interestOverTime": [
    {"date": "2026-11-15T00:00:00Z", "formattedTime": "Nov 15 – 21, 2026", "value": 31},
    {"date": "2026-11-22T00:00:00Z", "formattedTime": "Nov 22 – 28, 2026", "value": 29, "isPartial": true}
  ],
  "average": 38.9,
  "peakDate": "2026-02-01T00:00:00Z",
  "trendChangePercent": -46.3,
  "interestByRegion": [
    {"geoCode": "CH", "geoName": "Switzerland", "value": 100},
    {"geoCode": "AT", "geoName": "Austria", "value": 89}
  ],
  "relatedQueriesTop": [
    {"query": "bitcoin price", "value": 100, "formattedValue": "100", "link": "https://trends.google.com/trends/explore?q=bitcoin+price&date=today+12-m"}
  ],
  "relatedQueriesRising": [
    {"query": "bitcoin casino vodds", "value": 27800, "formattedValue": "Breakout", "link": "https://trends.google.com/trends/explore?q=bitcoin+casino+vodds&date=today+12-m"}
  ],
  "hasData": true,
  "status": "ok",
  "attempts": 1
}
```

A keyword that failed after every retry comes back as `{"searchTerm": "...", "status": "failed", "error": "..."}` and is not charged. A keyword with too little search volume comes back with `"hasData": false` and zeros, as on the Google Trends site.

### Pricing

| Apify plan | Price per keyword | Per 1,000 keywords |
|---|---|---|
| Free | $0.0020 | $2.00 |
| Bronze | $0.0018 | $1.80 |
| Silver | $0.0016 | $1.60 |
| Gold and above | $0.0014 | $1.40 |

No start fee. Interest over time, regions and related queries are all included in that one price.

### Reliability

We ran two batches every 30 minutes for 4 hours on Nov 24 to 25, 2026: up to 100 Brazilian keywords for the past 12 months and 100 US keywords for the past 90 days, each batch with 512 MB of memory. Every keyword was delivered. "First try" is how many came back without a retry; the others needed one to four more tries, which the Actor does on its own at no extra charge.

| Run (UTC, Nov 24 to 25, 2026) | Country, range | Delivered | First try |
|---|---|---|---|
| 20:47 | Brazil, past 12 months | 100 of 100 | 90 |
| 20:47 | United States, past 90 days | 100 of 100 | 91 |
| 21:20 | Brazil, past 12 months | 100 of 100 | 90 |
| 21:20 | United States, past 90 days | 100 of 100 | 92 |
| 21:53 | Brazil, past 12 months | 100 of 100 | 99 |
| 21:53 | United States, past 90 days | 100 of 100 | 92 |
| 22:26 | Brazil, past 12 months | 100 of 100 | 90 |
| 22:26 | United States, past 90 days | 100 of 100 | 90 |
| 22:59 | Brazil, past 12 months | 100 of 100 | 96 |
| 22:59 | United States, past 90 days | 100 of 100 | 94 |
| 23:34 | Brazil, past 12 months | 100 of 100 | 80 |
| 23:34 | United States, past 90 days | 100 of 100 | 75 |
| 00:08 | Brazil, past 12 months | 100 of 100 | 77 |
| 00:08 | United States, past 90 days | 100 of 100 | 75 |
| 00:42 | Brazil, past 12 months | 80 of 80 | 70 |
| 00:42 | United States, past 90 days | 100 of 100 | 85 |

### Use it from your tools

- **API**: run it with one HTTP call and get JSON, CSV or Excel back (Apify API, Python and JavaScript clients).
- **Google Sheets, n8n, Make, Zapier**: use the Apify integration or the "Run Actor" node, then map `searchTerm`, `average`, `trendChangePercent` and `relatedQueriesRising` to your sheet or flow.
- **AI agents (MCP)**: available as a tool on the Apify MCP server, `https://mcp.apify.com?tools=pomlabs/google-trends-scraper`.
- **Schedules**: run it daily or weekly on a list of keywords to watch what is rising in your niche.

### FAQ

**Are the numbers search volumes?** No. Like the Google Trends site, values are relative interest from 0 to 100 inside the period and place you picked. Compare keywords inside one result, or use `average` and `trendChangePercent` across results.

**Why does the same keyword sometimes differ a little between runs?** Google Trends samples its data, and the site shows the same small differences between visits.

**How many keywords can I send?** Up to 5,000 per run. Big lists run four keywords at a time; expect about 30 keywords per minute.

**Is scraping Google Trends legal?** The Actor only reads public pages that anyone can open in a browser, without logging in. You are responsible for how you use the data.

# Actor input Schema

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

Keywords or phrases to look up on Google Trends. Each one becomes one result, with its own interest over time, regions and related queries.

## `trendsUrls` (type: `array`):

Paste links copied from trends.google.com/trends/explore. The keywords in the q= parameter are added to the search terms. Geo and time range come from the fields below.

## `splitByComma` (type: `boolean`):

Treat a comma inside a search term as a separator ("cats, dogs" becomes two keywords).

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

Two-letter country code (US, BR, GB, IN...) or a region code (US-CA, BR-SP). Leave empty for Worldwide.

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

Period of the interest-over-time series. Shorter ranges give hourly or daily points.

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

Overrides the time range above. Format: YYYY-MM-DD YYYY-MM-DD, for example 2025-01-01 2025-06-30.

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

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

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

Google Trends category number, for example 3 (Arts & Entertainment), 12 (Business & Industrial), 5 (Computers & Electronics), 7 (Finance), 71 (Food & Drink), 45 (Health), 18 (Shopping). 0 = all categories.

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

Top and rising related searches (up to 25 each), with the 'Breakout' and +% values Google shows.

## `includeInterestByRegion` (type: `boolean`):

Interest by country (Worldwide) or by state/region (one country).

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

Language of region names and dates, as a Google hl code (en-US, pt-BR, es, de...).

## `timezoneOffset` (type: `integer`):

Minutes from UTC, as Google Trends counts them (0 = UTC, 300 = New York winter, 180 = Sao Paulo, -60 = Paris winter). Affects hourly and daily series.

## `maxItems` (type: `integer`):

Stop after this many keywords (0 = all).

## Actor input object example

```json
{
  "searchTerms": [
    "bitcoin",
    "ai agents"
  ],
  "splitByComma": false,
  "geo": "",
  "timeRange": "today 12-m",
  "searchType": "web",
  "category": 0,
  "includeRelatedQueries": true,
  "includeInterestByRegion": true,
  "language": "en-US",
  "timezoneOffset": 0,
  "maxItems": 0
}
```

# 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": [
        "bitcoin",
        "ai agents"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/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": [
        "bitcoin",
        "ai agents",
    ] }

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

```

## MCP server setup

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