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

Get Google Trends data as clean JSON: interest over time, interest by region, related queries and topics, plus today's trending searches. Compare up to 5 terms. No login or API key needed.

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

## Pricing

from $15.00 / 1,000 keyword results

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/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: Interest, Regions & Related Queries

Find out how interest in any search term changes over time and where it is strongest, as clean JSON you can use right away.

This Actor is unofficial. It is not affiliated with, endorsed by or sponsored by Google.

### What you get

- **Interest over time** for each search term, or for up to 5 terms compared in one chart.
- **Interest by region**: countries for a worldwide search, states or regions inside a country.
- **Related queries and related topics**, both top and rising, plus today's **trending searches** per country.

No login, no API key and no captcha solving.

### Sample output

One row per search. Arrays are shortened here.

```json
{
    "searchTerm": "bitcoin",
    "keywords": ["bitcoin"],
    "geo": "US",
    "timeRange": "today 12-m",
    "category": 0,
    "property": "web",
    "interestOverTime": [
        { "date": "2025-11-09T00:00:00.000Z", "timestamp": 1762646400, "values": { "bitcoin": 40 }, "isPartial": false, "value": 40 },
        { "date": "2025-11-16T00:00:00.000Z", "timestamp": 1763251200, "values": { "bitcoin": 67 }, "isPartial": false, "value": 67 }
    ],
    "averages": null,
    "interestByRegion": [
        { "geoCode": "US-WY", "geoName": "Wyoming", "values": { "bitcoin": 100 }, "value": 100 },
        { "geoCode": "US-NV", "geoName": "Nevada", "values": { "bitcoin": 47 }, "value": 47 }
    ],
    "relatedQueries": {
        "top": [{ "query": "bitcoin price", "value": 100, "formattedValue": "100" }],
        "rising": [{ "query": "spcx stock", "value": 16500, "formattedValue": "Breakout" }]
    },
    "relatedTopics": { "top": [], "rising": [] },
    "exploreUrl": "https://trends.google.com/trends/explore?q=bitcoin&geo=US&date=today%2012-m",
    "scrapedAt": "2026-11-10T12:00:00.000Z"
}
```

When you compare several terms on one line, `values` and `averages` hold one number per term, and `relatedQueries` and `relatedTopics` are objects keyed by term.

A trending search row looks like this:

```json
{
    "type": "trending",
    "geo": "US",
    "title": "when is veterans day 2026",
    "approxTraffic": "200+",
    "pubDate": "2026-11-10T11:00:00.000Z",
    "picture": "https://encrypted-tbn1.gstatic.com/images?q=tbn:...",
    "newsItems": [{ "title": "...", "url": "https://...", "source": "..." }],
    "scrapedAt": "2026-11-10T12:00:00.000Z"
}
```

### How to use it

1. Type your search terms, one search per line. To compare terms, put them on one line separated by commas.
2. Pick a country and a time range, or leave the defaults (worldwide, past 12 months).
3. Click Start. Download the results as JSON, CSV or Excel, or read them through the API.

### Input

| Field | What it does | Default |
| --- | --- | --- |
| `searchTerms` | One search per line. Up to 5 comma separated terms on a line are compared in one chart. A search term cannot contain a comma. | |
| `geo` | Country or region code such as US, GB, US-CA. Empty means worldwide. | worldwide |
| `timeRange` | Past hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months, 5 years, or 2004 to present. | Past 12 months |
| `customTimeRange` | Overrides the time range. Format: `YYYY-MM-DD YYYY-MM-DD`. | |
| `category` | Google Trends category number. 0 means all categories. | 0 |
| `property` | Web, image, news, YouTube or Google Shopping search. | Web search |
| `includeInterestByRegion` | Add the breakdown by region. | true |
| `includeRelatedQueries` | Add top and rising related queries. | true |
| `includeRelatedTopics` | Add top and rising related topics. | true |
| `trendingNowGeos` | Country codes (US, GB, DE) to get today's trending searches for. | |
| `language` | Language of names and labels, for example en-US. | en-US |
| `proxyConfiguration` | Keep a US residential proxy. Visitors from the EU are sent to a consent page. | US residential |
| `debug` | Save the page and a screenshot when a session is blocked, and log more detail. | false |

You need at least one search term or one trending country.

### Good to know

- Values are Google's 0 to 100 index, not search volume. 100 is the peak inside your chosen time range and place.
- Comparing terms puts them on one scale. The numbers of a term change when you compare it with a bigger one.
- Rising values of 5000 or more show as "Breakout" in `formattedValue`.
- Related topics often come back empty for automated sessions like this one. That is not an error.
- Region values when comparing terms are each term's own 0 to 100 index, not a share between the terms. A region is `null` for a term that has no data there.
- Data for short ranges is hourly, or finer for the past hours. Long ranges are weekly or monthly.
- The last point of a chart can be marked `isPartial`, which means the period is not over yet.
- A worldwide search is returned with `geo` set to `"WORLDWIDE"`.
- A search term cannot contain a comma. A comma separates the terms to compare.
- If Google blocks a browser session, the Actor carries on with a fresh one. A search is saved only when it is complete.
- A search is retried in fresh sessions up to 5 times. After that it is listed under `failedTargets` in the `RUN_SUMMARY` record, with the reason.
- Searches with no data are not saved and not charged. They are listed under `failedTargets` too.
- A short summary of each run is stored in the key-value store under `RUN_SUMMARY`.

### Pricing

See the Pricing tab.

# Actor input Schema

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

One search per line. To compare up to 5 terms in one chart, put them on one line separated by commas.

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

Country or region code such as US, GB, US-CA. Empty means worldwide.

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

The period to get data for.

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

Overrides Time range. Format: YYYY-MM-DD YYYY-MM-DD, for example 2026-01-01 2026-06-30.

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

Google Trends category number. 0 means all categories.

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

Which Google search to read trends from.

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

Add the breakdown by country, state or region.

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

Add top and rising related searches.

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

Add top and rising related topics.

## `trendingNowGeos` (type: `array`):

Country codes (US, GB, DE) to fetch today's trending searches for.

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

Language of names and labels in the results (the hl parameter), for example en-US.

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

Keep a US residential proxy. Visitors from the EU are sent to a consent page.

## `debug` (type: `boolean`):

Save the page HTML and a screenshot when a session is blocked, and log more detail.

## Actor input object example

```json
{
  "searchTerms": [
    "bitcoin"
  ],
  "geo": "",
  "timeRange": "today 12-m",
  "category": 0,
  "property": "",
  "includeInterestByRegion": true,
  "includeRelatedQueries": true,
  "includeRelatedTopics": true,
  "language": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "debug": false
}
```

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ivanjurina/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"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ivanjurina/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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call ivanjurina/google-trends-scraper --silent --output-dataset

```

## MCP server setup

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