# Google Trends Scraper: Interest, Regions & Queries (`goblinlabs/google-trends-scraper-reliable`) Actor

Google Trends interest over time, by region and related queries for up to 500 terms, with geo, time range, category and property filters. Related topics currently come back empty; city-level breakdowns for non-US state-level locations aren't supported. Failed, partial or no-data terms not charged.

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

## Pricing

from $1.50 / 1,000 search term 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

Get Google Trends data for a list of search terms: **interest over time**, **interest by region** (countries, subregions or US metro areas) and **related queries** (top and rising).

You set the search terms, location, time range, category and Google property (web, YouTube, News, Images or Shopping). Each search term gives you one dataset item with all of its data.

#### Current limitations

- **Related topics currently come back empty.** Google Trends returned an empty related-topics list for every term we tested in November 2026. The field is still in the output in case Google starts returning topics again.
- **City-level breakdowns are not supported for non-US state-level locations** (for example `AU-NSW`). Google refuses those requests. For US states, use `regionResolution: DMA` (metro areas). Elsewhere, use a country geo for a subregion breakdown.

### Pricing

You pay per **complete search term**: one result event for each term that returned every section you asked for. The price is USD 3.00 per 1,000 results on the Apify free plan and lower on paid Apify plans (see the pricing panel on this page). Terms with no data, partial data or errors are not charged, and there is no start fee.

### What you get

| Data | What it contains |
| --- | --- |
| Interest over time | A 0-100 time series for the term. The interval (hour, day, week or month) depends on the time range. |
| Interest by region | Regions ranked by interest (0-100). Worldwide gives countries, a country gives its subregions, and a US state or the US with Metro (DMA) gives metro areas. |
| Related queries | Up to 25 top queries and up to 25 rising queries, with Google's value ("Breakout" or "+250%" for rising queries). |
| Related topics | Top and rising topics. **Currently empty** (see Current limitations). |

### How it handles failures

- **Rate limits.** If Google answers with HTTP 429 or 403, or a request times out, the request is retried (6 times by default) with exponential backoff and random jitter. Each retry uses a new proxy session and a fresh Google cookie.
- **Bad input.** Input is checked before any request is sent, and the run stops with a clear list of what to fix.
- **Run timeout.** The scraper stops about 25 seconds before the run timeout and saves everything it has. Terms it didn't reach are marked `skipped`.
- **Status on every item.** Each item has a `status` and an `errors` list:
  - `success`: every section you asked for was returned. This is the only status that counts as a chargeable result.
  - `noData`: Google has no data for the term, for example a very rare term. Not charged.
  - `partial`: at least one section failed after retries. You get what was returned, and it's not charged.
  - `failed`: nothing could be fetched for the term. Not charged.
  - `skipped`: the run stopped before reaching the term (timeout or your maximum cost per run). Not charged.
- **Whole-run failure.** If no term could be scraped, the run is marked as failed and nothing is charged.

### Input

| Field | Default | Notes |
| --- | --- | --- |
| `searchTerms` | (required) | 1 to 500 terms. Duplicates are removed. |
| `compareTerms` | `false` | If on, terms are compared in groups of up to 5, in input order, so interest over time is relative within each group (like comparing terms on the Google Trends website). If off, each term gets its own 0-100 scale. |
| `geo` | `""` (worldwide) | A country code (`AU`, `US`) or a region code (`US-CA`, `AU-NSW`). |
| `timeRange` | `today 12-m` | `now 1-H`, `now 4-H`, `now 1-d`, `now 7-d`, `today 1-m`, `today 3-m`, `today 12-m`, `today 5-y`, `all`, or a custom range `YYYY-MM-DD YYYY-MM-DD` starting 2004-01-01 or later. |
| `category` | `0` | Google Trends category ID. 0 means all categories. |
| `property` | `""` (web) | `youtube`, `news`, `images` or `froogle` (Google Shopping). |
| `includeInterestOverTime` / `includeInterestByRegion` / `includeRelatedQueries` / `includeRelatedTopics` | `true` | Turn off sections you don't need. Fewer sections means fewer requests. |
| `regionResolution` | automatic | `COUNTRY`, `REGION`, `CITY` or `DMA` (US metro areas). |
| `includeLowVolumeRegions` | `false` | Also list regions without enough search volume. |
| `language` | `en-US` | Language for region names and formatted dates. |
| `maxRetries` | `6` | Retries per request (0-15). |
| `requestTimeoutSecs` | `30` | Timeout for each request. |
| `proxyConfiguration` | Apify Proxy | Each retry uses a new proxy session. |

Example input:

```json
{
  "searchTerms": ["netflix", "disney plus", "stan"],
  "compareTerms": true,
  "geo": "AU",
  "timeRange": "today 12-m"
}
```

### Output example

This item is from a real test run on 15 Nov 2026. It's shortened: the time series, regions and query lists are trimmed, and the `link` field on each related query is removed.

```json
{
  "searchTerm": "netflix",
  "status": "success",
  "comparedWith": [
    "disney plus",
    "stan",
    "binge",
    "..."
  ],
  "geo": "AU",
  "timeRange": "today 12-m",
  "resolvedTimeRange": "2025-11-15 2026-11-15",
  "category": 0,
  "property": "web",
  "averageInterest": 71,
  "interestOverTime": [
    {
      "date": "2026-11-08T00:00:00.000Z",
      "timestamp": 1794096000,
      "formattedTime": "Nov 8 – 14, 2026",
      "value": 62,
      "hasData": true,
      "isPartial": false
    },
    {
      "date": "2026-11-15T00:00:00.000Z",
      "timestamp": 1794700800,
      "formattedTime": "Nov 15 – 21, 2026",
      "value": 47,
      "hasData": true,
      "isPartial": true
    }
  ],
  "interestByRegion": [
    {
      "geoCode": "AU-WA",
      "geoName": "Western Australia",
      "value": 100,
      "hasData": true
    },
    {
      "geoCode": "AU-QLD",
      "geoName": "Queensland",
      "value": 97,
      "hasData": true
    }
  ],
  "regionResolution": "REGION",
  "relatedQueries": {
    "top": [
      {
        "query": "netflix australia",
        "value": 100,
        "formattedValue": "100"
      },
      {
        "query": "netflix movies",
        "value": 82,
        "formattedValue": "82"
      }
    ],
    "rising": [
      {
        "query": "unchosen netflix",
        "value": 19050,
        "formattedValue": "Breakout"
      },
      {
        "query": "maternal instinct netflix",
        "value": 16100,
        "formattedValue": "Breakout"
      }
    ]
  },
  "relatedTopics": {
    "top": [],
    "rising": []
  },
  "notes": [
    "relatedTopics: not offered by Google Trends for this request"
  ],
  "errors": [],
  "chargeable": true,
  "scrapedAt": "2026-11-15T01:30:45.163Z",
  "runId": "e2YgxhkSDcP6rpH54"
}
```

The run also saves a `RUN_SUMMARY` record in the key-value store. It has counts by status and request statistics: requests, rate-limited responses, session rotations and bytes received.

### Limits and known issues

- **Google Trends values are relative.** They are 0-100 indexes, not search volumes.
- **Comparisons change the scale.** With `compareTerms` on, each term's values depend on the other terms in its group.
- **City-level breakdowns for non-US state-level locations are not supported.** For a geo like `AU-NSW`, Google refuses the city-level request (HTTP 429) even when every other request succeeds. With interest by region on, these terms come back as `partial` and are not charged. For US states, use `regionResolution: DMA`. Elsewhere, use a country geo or turn off interest by region.
- **Related topics currently come back empty** (see Current limitations).
- **Google's endpoints are not a public API.** Google can change them at any time, which could break the scraper until it's updated.
- **Use is subject to Google's terms.** You're responsible for how you use the data.

### FAQ

**Why is a term `noData`?**
Google Trends doesn't have enough search volume for that term, location and time range. Try a wider time range or a bigger region.

**Why does the newest data point say `isPartial: true`?**
The current period (day, week or month) isn't finished yet, so its value can still change.

**Can I get more than 5 terms on one scale?**
No. Google Trends compares at most 5 terms at a time. With `compareTerms` on, larger lists are split into groups of 5, and each group has its own scale.

**Do I need a proxy?**
The default is Apify Proxy. In our small tests, runs also worked without a proxy. For larger runs, a proxy and the built-in retries help when Google starts rate limiting.

# Actor input Schema

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

Keywords to look up (up to 500 per run). Each term is scraped separately unless 'Compare terms' is on.

## `compareTerms` (type: `boolean`):

If on, terms are sent to Google Trends in groups of up to 5 (in input order), so interest over time is relative across the terms in each group, like comparing terms on the Google Trends website. If off, each term gets its own 0-100 scale.

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

Leave empty for worldwide. Use a 2-letter country code (AU, US, GB) or a region code (US-CA, AU-NSW).

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

A preset (now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all) or a custom range 'YYYY-MM-DD YYYY-MM-DD' (from 2004-01-01).

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

Google Trends category ID. 0 = all categories. To find an ID, pick a category on the Google Trends website and copy the number after 'cat=' in the page address.

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

Which Google search data to use.

## `includeInterestOverTime` (type: `boolean`):

Time series of search interest (0-100).

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

Search interest by country (worldwide) or subregion (when a country is set).

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

Top and rising related queries.

## `includeRelatedTopics` (type: `boolean`):

Top and rising related topics, when Google Trends provides them (often empty for comparisons or low-volume terms).

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

Level of detail for interest by region. Automatic = countries for worldwide, subregions for a country. City and Metro (DMA) only work for some countries.

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

Include regions with too little search volume (returned with value 0 and hasData false).

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

Language for region names, topic titles and formatted dates, e.g. en-US, en-GB, de.

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

How many times to retry a request after rate limiting (HTTP 429) or an error, with exponential backoff and a new proxy session each time.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each HTTP request to Google Trends.

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

Proxy used to reach Google Trends. Each retry uses a new proxy session.

## Actor input object example

```json
{
  "searchTerms": [
    "web scraping"
  ],
  "compareTerms": false,
  "geo": "",
  "timeRange": "today 12-m",
  "category": 0,
  "property": "",
  "includeInterestOverTime": true,
  "includeInterestByRegion": true,
  "includeRelatedQueries": true,
  "includeRelatedTopics": true,
  "regionResolution": "",
  "includeLowVolumeRegions": false,
  "language": "en-US",
  "maxRetries": 6,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One item per search term: status, average interest and data point counts.

## `relatedQueries` (type: `string`):

Top and rising related queries per search term.

## `fullData` (type: `string`):

All fields per search term, including the full interest-over-time series and region breakdown.

## `runSummary` (type: `string`):

Counts of successful, no-data, partial, failed and charged terms, plus request and retry statistics.

# 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": [
        "web scraping"
    ],
    "timeRange": "today 12-m",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("goblinlabs/google-trends-scraper-reliable").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": ["web scraping"],
    "timeRange": "today 12-m",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("goblinlabs/google-trends-scraper-reliable").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": [
    "web scraping"
  ],
  "timeRange": "today 12-m",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call goblinlabs/google-trends-scraper-reliable --silent --output-dataset

```

## MCP server setup

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

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/U0IQxlMIZhGB76Qqf/builds/gRNUYsL5rzYheStfp/openapi.json
