# Google Trends API: interest over time, regions, related queries and Trending Now

> Google Trends as clean records: interest over time, interest by region, related queries and Trending Now with search volumes. Runs without a browser or a Google account.

Source: https://cozybit.dev/tools/google-trends/

Get Google's 0-100 interest curve for up to 200 keywords per run, the same interest by country, region, city or US metro area, top and rising related queries, and what a country is searching for right now. Empty reports are free.

[Try it in Apify Console](https://apify.com/cozybit/google-trends-scraper)

- [0.00001 USD per event](https://apify.com/cozybit/google-trends-scraper/pricing), trial price until 31 Dec 2026
- Errors are never charged
- Free Apify plan: 15 Explore reports and 50 Trending Now rows per run

## What you get

- **Interest over time:** Google's 0-100 curve per keyword, back to 2004.
- **Interest by region:** country, state or region, city or US metro area.
- **Related queries:** top and rising searches, with growth such as `+250%` or `Breakout`.
- **Trending Now:** what a country searches right now, with Google's approximate volume and related searches.
- **Comparisons:** up to 5 keywords on one shared 0-100 scale.

## Who uses it

- **Content and SEO teams**: Find rising searches while interest is still growing.
- **Marketers**: Compare a brand with competitors on one scale, by country or city.
- **Market researchers**: Measure seasonality and long-term demand back to 2004.
- **Newsrooms**: See what a country is searching for right now.
- **Data teams and agents**: Feed stable records into dashboards and models on a schedule.

## Input

| Field | Key | What it does | Default |
|---|---|---|---|
| Reports to collect | `reports` | `interest_over_time`, `interest_by_region`, `related_queries`, `related_topics`, `trending_now` | the first three |
| Keywords | `keywords` | 1-200 search terms | `["coffee"]` |
| Compare keywords | `compare` | Put 2-5 keywords on one shared scale | off |
| Explore location | `geo` | Empty for worldwide, `US`, `US-CA` or a metro such as `US-CA-807` | worldwide |
| Explore time range | `timeframe` | Past hour up to all time since 2004, or custom dates | `today 12-m` |
| Trending Now country, hours, rows | `trendingGeo`, `trendingHours`, `trendingMaxItems` | 4 hours to 7 days, up to about 500 rows | US, 24, 50 |

### One keyword, interest over time in the US, past 3 months

**Input**

```json
{
  "keywords": ["coffee"],
  "geo": "US",
  "timeframe": "today 3-m",
  "reports": ["interest_over_time"]
}
```

We ran this exact input on 2 Dec 2026: 1 record, run status `SUCCEEDED`.

#### Two keywords on one scale in Germany

**Input**

```json
{
  "keywords": ["example phone a", "example phone b"],
  "compare": true,
  "geo": "DE",
  "timeframe": "today 3-m"
}
```

#### Top 100 trending searches in the UK, past 4 hours

**Input**

```json
{
  "reports": ["trending_now"],
  "trendingGeo": "GB",
  "trendingHours": "4",
  "trendingMaxItems": 100
}
```

## Output

One record per item in the run's dataset, exportable as JSON, CSV or Excel.

**Example record**

```json
{
  "type": "interest_over_time",
  "status": "ok",
  "error": null,
  "keyword": "example keyword",
  "keywords": ["example keyword"],
  "geo": "US",
  "timeframe": "today 3-m",
  "category": 0,
  "property": "",
  "resolution": "DAY",
  "average": null,
  "values": [
    {
      "date": "2026-09-03T00:00:00.000Z",
      "value": 61,
      "is_partial": false
    },
    {
      "date": "2026-09-04T00:00:00.000Z",
      "value": 64,
      "is_partial": false
    },
    {
      "date": "2026-12-01T00:00:00.000Z",
      "value": 70,
      "is_partial": true
    }
  ],
  "source_url": "https://trends.google.com/trends/explore?q=example+keyword&geo=US&date=today+3-m",
  "scraped_at": "2026-12-02T12:00:00.000Z"
}
```

Shortened to three points.

| Field | What it means |
|---|---|
| `values[].value` | Relative interest from 0 to 100 within this request: 100 is the peak, not a search count. |
| `is_partial` | The last point is often partial because the period is still running. |
| `status` | `ok`, `no_data` (Google had nothing, free) or `error` (failed after retries, free). |
| `source_url` | The matching Google Trends page, to check a result by eye. |

## Use it from your code, agent or workflow

Every example runs the same input. Get your API token in Apify Console under *Settings, API & Integrations*, and keep it in the `APIFY_TOKEN` environment variable.

**curl**

**Synchronous run (token in APIFY_TOKEN)**

```bash
curl -sS --max-time 310 -X POST \
  "https://api.apify.com/v2/acts/G4aJjtT7Oiw6gMaAG/run-sync-get-dataset-items?maxTotalChargeUsd=0.10" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["coffee"], "geo": "US", "timeframe": "today 3-m", "reports": ["interest_over_time"]}'
```

**Python**

**apify-client 3.x**

```python
# pip install apify-client
import os
from decimal import Decimal

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("G4aJjtT7Oiw6gMaAG").call(
    run_input={
        "keywords": ["coffee"],
        "geo": "US",
        "timeframe": "today 3-m",
        "reports": ["interest_over_time"],
    },
    max_total_charge_usd=Decimal("0.10"),  # spend cap for this run
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item.get("type"), item.get("keyword"), item.get("status"))
```

**JavaScript**

**apify-client 2.x, Node 18+**

```javascript
// npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('G4aJjtT7Oiw6gMaAG').call(
  {
    keywords: ['coffee'],
    geo: 'US',
    timeframe: 'today 3-m',
    reports: ['interest_over_time'],
  },
  { maxTotalChargeUsd: 0.1 }, // spend cap for this run
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.type, item.keyword, item.status);
```

**AI agents (MCP)**

**MCP client configuration**

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=cozybit/google-trends-scraper"
    }
  }
}
```

Works in any MCP client that accepts a remote server URL ([Apify's MCP docs](https://docs.apify.com/platform/integrations/mcp)). Clients with OAuth sign you in to Apify on first use; others send `"headers": {"Authorization": "Bearer <APIFY_TOKEN>"}`. The tool is called `cozybit--google-trends-scraper`. Try a prompt such as: Compare Google Trends interest in two product names in Germany over the past 3 months. More in [AI agents and MCP](https://cozybit.dev/integrations/ai-agents/).

**n8n, Make, Zapier**

Apify has its own apps for the main automation platforms. Point them at this actor's ID `G4aJjtT7Oiw6gMaAG` and paste the input JSON.

- **n8n:** the Apify node, operation *Run an Actor and get dataset*.
- **Make:** the Apify module *Run an Actor*, then *Get Dataset Items*.
- **Zapier:** the Apify action *Run Actor*, or the trigger *Finished Actor run* for scheduled runs.

Step-by-step setup: [n8n, Make and Zapier](https://cozybit.dev/integrations/no-code/).

**Apify Console**

1. **Open the [Store page](https://apify.com/cozybit/google-trends-scraper)** and choose *Try for free*. Apify asks you to sign in or create a free account.
2. **Paste the input** into the JSON tab of the input form, or fill in the fields.
3. **Start the run**, then open the dataset and export it as JSON, CSV or Excel. Save the input as a task to schedule it.

- `run-sync-get-dataset-items` waits at most 300 seconds, then answers HTTP 408. Keep synchronous calls small and start an asynchronous run for batches (below).
- `maxTotalChargeUsd` caps what one run may charge; the run stops cleanly when it is reached.
- Send the token in the `Authorization` header, never as `?token=` in the URL, where it ends up in logs.
- The ID `G4aJjtT7Oiw6gMaAG` never changes; the name `cozybit/google-trends-scraper` works too.

**Batches and schedules: start a run, wait, read the results**

**Asynchronous run, results as CSV**

```bash
# 1. Start a run; the answer comes back at once
curl -sS -X POST "https://api.apify.com/v2/acts/G4aJjtT7Oiw6gMaAG/runs?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d @input.json
# The answer's data.id is RUN_ID and data.defaultDatasetId is DATASET_ID.

# 2. Wait up to 60 s per call until data.status is SUCCEEDED
curl -sS "https://api.apify.com/v2/actor-runs/RUN_ID?waitForFinish=60" \
  -H "Authorization: Bearer $APIFY_TOKEN"

# 3. Read the records as JSON, CSV or Excel (format=json, csv or xlsx)
curl -sS "https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv" \
  -H "Authorization: Bearer $APIFY_TOKEN" -o results.csv
```

Save a Trending Now input as a task and schedule it daily for a snapshot per country. Schedules live in Apify Console under *Schedules*; a webhook or the no-code apps can pick up each finished run.

## Price

You pay per event, through your Apify account, with platform costs included. The live price is on the [Store page](https://apify.com/cozybit/google-trends-scraper/pricing): **0.00001 USD per event, a trial price until 31 Dec 2026**.

| Event | What counts | Trial price until 31 Dec 2026 | Planned post-trial rate |
|---|---|---|---|
| `report` | Explore report (one keyword, one report type) | 0.00001 USD (0.01 USD per 1,000) | 2.00 USD per 1,000 |
| `trend-row` | Trending Now row | 0.00001 USD (0.01 USD per 1,000) | 0.50 USD per 1,000 |

### What each outcome costs

| Outcome | What it is | Charged? |
|---|---|---|
| `ok` | Explore report or Trending Now row delivered | Charged |
| `no_data` | Google returned nothing for this keyword, place and time range | Free |
| `error` | The request failed after retries | Free |

**Not charged:** `no_data` and `error` records.

**Apify's free plan** (no card) returns up to 15 Explore reports and 50 Trending Now rows per run. You can cap any run's cost with `maxTotalChargeUsd`.

### What typical jobs cost

| Example | Charged events | At the trial price | At the planned rate |
|---|---|---|---|
| One keyword, the three default reports | 3 × `report` | 0.00003 USD | 0.006 USD |
| 100 keywords, three reports each | 300 × `report` | 0.003 USD | 0.60 USD |
| Top 50 trending searches in one country | 50 × `trend-row` | 0.0005 USD | 0.025 USD |

The post-trial rate is planned, not scheduled: the trial may be extended, Apify notifies users before any price increase, and the Store page always shows the price that applies. See [how pricing works](https://cozybit.dev/pricing/) and the [cost estimator](https://cozybit.dev/pricing/#estimate).

## Reliability

99.9% of reports and rows delivered

3,077 of 3,080 reports and trending rows arrived across 120 runs on the Apify platform with default settings, and Google blocked none of those runs. They spanned 10 countries plus worldwide, time ranges from one day to five years and 1-5 keywords. The median run takes 20 seconds; 95% finish within 49 seconds.

Problems and questions go to the actor's Issues tab on Apify.

## Limits

- Values are relative (0-100), not search counts; two keywords share a scale only in one comparison.
- Related topics is experimental: Google currently returns it empty to automated requests, so expect `no_data` (free).
- Up to 200 keywords per run and 5 per comparison.
- Google Trends has no generally available official API; a change on Google's side can break the actor until it is updated.

## Questions

**Does it return search volumes?**

Not for Explore reports: Google Trends gives relative interest from 0 to 100. Trending Now rows include Google's approximate volume, such as 2,000,000+.

**Can I get data for a state, city or US metro?**

Yes: set `geo` to `US`, `US-CA` or `US-CA-807`, and `regionResolution` to `CITY` for a city breakdown.

**Why is a report empty?**

`no_data` usually means the keyword has too little search volume for that place and time range. Empty reports are free.

**Do I need a Google account or API key?**

No. You need only an Apify account.

## Related

### [YouTube Transcript Scraper](https://cozybit.dev/tools/youtube-transcripts/)

Search and video

Captions as plain text, timestamped segments and SRT or WebVTT files.

per transcript

### [Google Hotels Scraper](https://cozybit.dev/tools/google-hotels/)

Travel prices

Hotel prices, stars, ratings and details for your dates.

- Relative dates

per hotel

## Try Google Trends API on the free Apify plan

No card needed. Errors are never charged, and every run can carry a spend cap.

[Try it in Apify Console](https://apify.com/cozybit/google-trends-scraper)
