# Google Trends Scraper: Interest, Related Queries, Trending (`josemakirri/google-trends-scraper-pro`) Actor

Get Google Trends interest over time, related queries and topics, interest by region and daily trending searches for any keyword, country and period.

- **URL**: https://apify.com/josemakirri/google-trends-scraper-pro.md
- **Developed by:** [José Manuel Jiménez Rodríguez](https://apify.com/josemakirri) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 keyword analyseds

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, Related Queries, Regions and Trending

Get Google Trends data for any keyword, country and time range: **interest over time, related queries and topics (top and rising), interest by region and Google's daily trending searches**. No login and no API key.

### What you get per keyword

- **Interest over time**: the 0-100 index with a date for every point (hourly up to weekly depending on the range), plus a ready-made **summary** (average, peak and peak date, latest value, change between the first and last quarter).
- **Related queries**: top and rising, including "Breakout" ones.
- **Related topics**: top and rising.
- **Interest by region**: which countries or regions search for it most.
- **Search type**: web, YouTube, news, images or Google Shopping.

Plus an optional **daily trending searches** feed per country, with approximate traffic and the news behind each topic.

### Who uses it

- **SEO and content teams**: find rising queries before they peak and check seasonality.
- **Ecommerce and product research**: compare demand for products by country and by month.
- **Marketing and PR**: track interest in a brand, campaign or competitor.
- **Analysts and AI pipelines**: feed trend series into dashboards, reports and models.

### Input

| Field | Description |
|---|---|
| `keywords` | Terms to look up. Each one is analysed on its own. |
| `geo` | Country (`US`, `ES`...), region (`US-CA`) or empty for worldwide. |
| `timeframe` | Past hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months, 5 years or 2004-present. |
| `property` | `web`, `youtube`, `news`, `images`, `shopping`. |
| `includeRelated`, `includeRegions` | Turn sections off for smaller output. |
| `trendingCountries` | e.g. `["US", "ES"]` for today's trending searches. |

```json
{ "keywords": ["claude", "chatgpt"], "geo": "ES", "timeframe": "today 12-m", "language": "es-ES", "trendingCountries": ["ES"] }
```

### Output example (abridged)

```json
{
  "recordType": "keyword",
  "keyword": "inteligencia artificial",
  "geo": "ES",
  "summary": { "average": 56.9, "peak": 100, "peakDate": "2026-09-13T00:00:00.000Z", "latest": 64, "changeFirstToLastQuarter": -11 },
  "interestOverTime": [{ "date": "2026-09-13T00:00:00.000Z", "label": "Sep 13 - 19, 2026", "value": 100, "partial": false }],
  "relatedQueries": { "top": [{ "query": "ia", "value": 100 }], "rising": [{ "query": "anthropic", "label": "+1.000 %" }] },
  "interestByRegion": [{ "code": "ES-MC", "region": "Melilla", "value": 100 }]
}
```

### Things worth knowing

- Google Trends values are **relative** (0 = very low, 100 = the keyword's own peak in the period). Each keyword is analysed separately, so values are not comparable across keywords.
- Keywords with almost no search volume return no data. **Those are not charged.**
- Google limits how fast Trends can be queried. The Actor spaces requests and retries automatically; very long keyword lists may take a while.
- Data comes from Google Trends' public interface. Check Google's terms for your use case.

### Pricing

Pay per event: one price per keyword with data (all sections included) and one small price per trending search. See the pricing panel on this page.

# Actor input Schema

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

Search terms to look up. Each keyword is analysed on its own (values are relative to that keyword's own peak, 0-100).

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

Two-letter country code (US, GB, ES, MX...) or a region such as US-CA. Leave empty for worldwide.

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

Period to analyse.

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

Which Google search to measure.

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

Optional Google Trends category id (0 = all categories).

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

Language of labels, e.g. en-US or es-ES.

## `includeRelated` (type: `boolean`):

Top and rising related searches and topics for each keyword.

## `includeRegions` (type: `boolean`):

Which countries or regions search for the keyword most.

## `trendingCountries` (type: `array`):

Optional. Country codes (US, GB, ES...) to also get Google's daily trending searches with approximate traffic and news.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence"
  ],
  "geo": "",
  "timeframe": "today 12-m",
  "property": "web",
  "category": 0,
  "language": "en-US",
  "includeRelated": true,
  "includeRegions": true
}
```

# Actor output Schema

## `keywords` (type: `string`):

No description

## `trending` (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 = {
    "keywords": [
        "artificial intelligence"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("josemakirri/google-trends-scraper-pro").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": ["artificial intelligence"] }

# Run the Actor and wait for it to finish
run = client.actor("josemakirri/google-trends-scraper-pro").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": [
    "artificial intelligence"
  ]
}' |
apify call josemakirri/google-trends-scraper-pro --silent --output-dataset

```

## MCP server setup

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

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/o9bg1fBWLn1kl1lkv/builds/2y2oRVdaGGE4KhFsm/openapi.json
