# Google Trends: Unlimited Keywords on One Scale + Daily History (`davide-vanzella/google-trends-one-scale`) Actor

Compare any number of keywords on one Google Trends scale (not 5 at a time), and get multi-year daily data stitched from Google's 9-month windows. Interest over time, ranking, 12-month change, related queries and regions.

- **URL**: https://apify.com/davide-vanzella/google-trends-one-scale.md
- **Developed by:** [Davide Vanzella](https://apify.com/davide-vanzella) (community)
- **Categories:** SEO tools, E-commerce, AI
- **Features:** Limited permissions
- **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 on the common scales

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: Unlimited Keywords on One Scale + Daily History

Google Trends compares **at most 5 keywords at a time**, and every request is rescaled so that its own top value is 100. Two requests are never comparable, and a keyword 1,000 times smaller than the top one comes back as a flat line of zeros.

This Actor fixes both limits:

- **Any number of keywords on one 0–100 scale** (up to 200 per run). Rank 50 product names, brands or topics against each other in one table.
- **Daily data for years**, not just 9 months. Google only returns daily points for short ranges; this Actor stitches overlapping windows and calibrates them to the long-range series, so the daily values add up to the weekly ones.
- **Ranking, 12-month change, peak and latest value** for every keyword, ready for a spreadsheet.
- Optional **related queries** (top and rising) and **interest by region**.

### How it works

1. A quick pass ranks every keyword against one reference term.
2. Keywords are sorted by volume and fetched in batches of 5, each batch sharing one keyword with the previous one. The shared keyword links the batches. Because neighbours have similar volume, nothing is rounded to zero along the chain.
3. Any keyword that ended up far below the top of its batch is fetched again on its own, for a full-precision shape, and put back on the common scale by matching its total.
4. For daily history, each 250-day window is scaled so that its days, averaged by week (or month), match the common-scale series of the whole range. Every window is tied to the same reference, so errors do not pile up.

**How much better than the usual trick?** Most tools put one "anchor" keyword in every batch. On a synthetic test that mimics Google's rounding (13 keywords spanning a 2,700× range in volume), the single-anchor method got individual points wrong by a median of **25% to 760%** for the smaller keywords. This Actor stayed within **1.1%** for every keyword. The test is in the source code.

### Input

| Field | What it does |
|---|---|
| `keywords` | Your search terms, up to 200 |
| `geo` | Country (`US`, `GB`, `IT`...) or region (`US-CA`); empty = worldwide |
| `timeframe` | Past hour … 2004 to today. Or set `startDate` / `endDate` |
| `dailyHistory` | One value per day for the whole range, even years |
| `includeRelatedQueries` | Top and rising related searches per keyword |
| `includeRegions` | Interest by sub-region (or by country, worldwide) |
| `property` | Web, YouTube, News, Images or Shopping search |
| `category` | Google Trends category ID (0 = all) |

Example:

```json
{
  "keywords": ["coffee", "tea", "matcha", "kombucha", "yerba mate", "chai", "cold brew"],
  "geo": "US",
  "timeframe": "today 5-y",
  "dailyHistory": false
}
```

### Output

One dataset item per keyword, ranked. A real result (Italy, two Christmas cakes, three years, daily history on):

```json
{
  "keyword": "panettone",
  "rank": 1,
  "geo": "IT",
  "timeframe": "2023-11-01 2026-11-05",
  "resolution": "WEEK",
  "scale": "common",
  "relativeToTop": 1.0,
  "averageInterest": 9.6,
  "peak": { "date": "2025-12-21", "value": 100.0 },
  "latest": { "date": "2026-10-25", "value": 7.0 },
  "change12m": 5.1,
  "precision": "normal",
  "timeline": [
    { "date": "2023-10-29", "value": 7.0 },
    "..."
  ],
  "dailyTimeline": [
    { "date": "2023-11-01", "value": 9.1 },
    "..."
  ],
  "relatedQueries": {
    "top": [
      { "query": "ricetta panettone", "value": 100, "formattedValue": "100" },
      "..."
    ],
    "rising": [
      { "query": "miglior panettone 2025", "value": 21750, "formattedValue": "Impennata" },
      "..."
    ]
  },
  "regions": [
    { "geoCode": "IT-77", "geoName": "Basilicata", "value": 100 },
    "..."
  ]
}
```

- `relativeToTop`: the keyword's total interest divided by the top keyword's (1 = the top one).
- `change12m`: average of the last 12 months vs. the 12 months before, in percent (ranges of 2+ years).
- `precision: "low"`: most of the keyword's points were "<1" next to its neighbour, so its level is an upper bound. Its shape is still measured at full precision.

The **Ranking** view of the dataset shows the table without the timelines. A `SUMMARY` record in the key-value store has the same ranking as one JSON.

### Pricing

Pay per result, no subscription. Residential proxies are included.

| Event | Price |
|---|---|
| Keyword on the common scale | $0.004 |
| Daily history (per keyword) | $0.01 |
| Related queries (per keyword) | $0.002 |
| Regions (per keyword) | $0.002 |

Plus $0.00005 when a run starts. Ranking 50 keywords over five years costs about $0.20.

### Good to know

- Google Trends numbers are relative, not search volumes, and Google samples them: two identical requests can differ by a few percent. Values here may differ slightly from the website for that reason.
- Daily history reproduces the weekly series within about 5–10% (weighted by volume) in our tests. The rest is Google's own sampling noise between requests.
- Keywords more than ~10,000 times smaller than the top keyword are below what Google can measure; they are flagged `precision: "low"`.
- Hourly ranges (past hour to past 7 days) work for the common scale, not for daily history.
- Google announced an official Trends API in 2025. As of late 2026 it is still an alpha behind an application form.

### Use cases

- **SEO and content**: which of 80 topic ideas has the most demand, on one list.
- **Products and e-commerce**: compare product names, flavours or brands; find the seasonal peak day by day.
- **Market research**: track a category for years with daily resolution, by country or region.
- **AI agents**: one call returns a ranked, comparable table instead of five incompatible charts.

# Actor input Schema

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

Any number of search terms (up to 200). They all end up on one 0-100 scale, so you can rank 50 keywords against each other — Google itself compares only 5 at a time.

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

Two-letter country code (US, GB, IT, DE...) or a region code (US-CA, IT-25). Leave empty for worldwide.

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

Ignored if you set a start date below.

## `startDate` (type: `string`):

Custom range start, YYYY-MM-DD. Overrides the time range.

## `endDate` (type: `string`):

Custom range end, YYYY-MM-DD. Empty = today.

## `dailyHistory` (type: `boolean`):

Google gives daily points only for ranges up to 9 months. With this on, each keyword also gets one value per day for the whole range (years, if you like), stitched from overlapping 9-month windows and calibrated to the common scale. Charged as a separate event per keyword.

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

For each keyword, the related searches Google lists as top and rising. Charged as a separate event per keyword.

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

For each keyword, interest by sub-region of the chosen country (or by country, worldwide). Charged as a separate event per keyword.

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

Which Google search the interest comes from: web (default), YouTube, News, Images or Shopping.

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

Google Trends category number (0 = all categories; e.g. 71 = Food & Drink, 18 = Shopping).

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

Language for related queries and region names, e.g. en-US, it, de.

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

Google Trends blocks data-center IPs quickly; residential proxies are used by default and included in the price.

## Actor input object example

```json
{
  "keywords": [
    "coffee",
    "tea",
    "matcha",
    "kombucha",
    "yerba mate",
    "chai",
    "cold brew"
  ],
  "geo": "",
  "timeframe": "today 5-y",
  "dailyHistory": false,
  "includeRelatedQueries": false,
  "includeRegions": false,
  "property": "web",
  "category": 0,
  "language": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One item per keyword: rank, volume relative to the top keyword, average interest, 12-month change, peak, latest value, the full timeline and (if requested) daily history, related queries and regions.

## `summary` (type: `string`):

The ranking as one JSON record, with the number of Google requests used.

# 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": [
        "coffee",
        "tea",
        "matcha",
        "kombucha",
        "yerba mate",
        "chai",
        "cold brew"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("davide-vanzella/google-trends-one-scale").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": [
        "coffee",
        "tea",
        "matcha",
        "kombucha",
        "yerba mate",
        "chai",
        "cold brew",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("davide-vanzella/google-trends-one-scale").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": [
    "coffee",
    "tea",
    "matcha",
    "kombucha",
    "yerba mate",
    "chai",
    "cold brew"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call davide-vanzella/google-trends-one-scale --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,davide-vanzella/google-trends-one-scale"
        }
    }
}
```

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/rThleoSPswQF5nXsF/builds/yzKodMEeQqhoYvx17/openapi.json
