# Google Trends Scraper & API: Interest, Queries, Trending (`scrapewise/google-trends-scraper`) Actor

Scrape Google Trends data without an API key: interest over time, interest by country, state or city, top and rising related queries, keyword comparison and daily trending searches by country. Web, YouTube, News, Images or Shopping.

- **URL**: https://apify.com/scrapewise/google-trends-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** SEO tools, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.55 / 1,000 keyword reports

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: keyword trends, related queries and trending searches

Scrape **Google Trends** with no login and no API key. Give it keywords and a place, and get interest over time with a ready summary, interest by country, state, city or metro, and top and rising related queries. Compare up to 5 keywords on one scale.

Also pulls **trends** from today's trending searches by country, with approximate search volume and news links. Search Web, YouTube, News, Images or Shopping. Export to JSON, CSV or Excel.

### At a glance

- **Price:** US$ 3 per 1,000 keyword reports (all sections in one row; down to US$ 2.55 on Gold and above); US$ 0.75 per 1,000 trending searches
- **Per keyword:** Interest over time + summary, interest by region, related queries top and rising
- **Summary fields:** `averageInterest`, `peakValue`, `peakDate`, `latestValue`, `changePercent` (last quarter of the period vs first)
- **Comparison:** Up to 5 keywords on one scale, as on the site
- **Search types:** Web, YouTube, News, Images, Google Shopping
- **Places:** Worldwide, any country, any region (US-CA, BR-SP); breakdown by country, state, city or metro
- **Trending now:** Any country: title, approximate searches, start time, image, news links
- **Rate limits:** Handled for you: the Actor waits and retries on every "too many requests"

### One real row

`bitcoin` in the US, past 12 months (collected on 2026-09-30, lists trimmed):

```json
{
  "type": "keyword",
  "keyword": "bitcoin",
  "geo": "US",
  "timeframe": "past_12_months",
  "averageInterest": 35.0,
  "peakValue": 100,
  "peakDate": "2026-02-01T00:00:00Z",
  "latestValue": 17,
  "changePercent": -43.5,
  "interestOverTime": [{ "date": "2025-09-28T00:00:00Z", "value": 28, "isPartial": false }],
  "interestByRegion": [{ "geoCode": "US-WY", "name": "Wyoming", "value": 100 }, { "geoCode": "US-NV", "name": "Nevada", "value": 48 }],
  "relatedQueriesTop": [{ "query": "bitcoin price", "value": 100, "formattedValue": "100" }],
  "relatedQueriesRising": [{ "query": "spcx stock", "value": 13150, "formattedValue": "Breakout" }],
  "exploreUrl": "https://trends.google.com/trends/explore?q=bitcoin&geo=US&date=today+12-m"
}
```

And a trending row (Brazil):

```json
{ "type": "trending", "country": "BR", "rank": 1, "title": "aviação", "approxTraffic": "1000+", "approxTrafficNumber": 1000,
  "startedAt": "2026-09-30T14:20:00Z", "news": [{ "title": "Primeiro caso de passageiro suspenso na aviação...", "url": "https://aeroin.net/...", "source": "AEROIN" }] }
```

### What you can do with it

- **Keyword and content research:** see which topics grow, when they peak and which related queries are rising right now.
- **Product and market timing:** compare brands, products or categories on one scale, by country, state or city.
- **SEO and ads:** find rising queries before your competitors and seasonal peaks to plan campaigns.
- **Newsrooms and social teams:** pull the trending searches of several countries every hour with their news links.
- **Dashboards and AI agents:** one row per keyword with stable field names and the summary already computed.

### Input

| Field | What it does |
|---|---|
| `keywords` | Search terms, one per line. One report row each. |
| `geo` | Country (`US`, `BR`) or region (`US-CA`, `BR-SP`). Empty = worldwide. |
| `timeframe` | `past_hour`, `past_4_hours`, `past_day`, `past_7_days`, `past_30_days`, `past_90_days`, `past_12_months` (default), `past_5_years`, `since_2004`, or a custom `YYYY-MM-DD YYYY-MM-DD` |
| `compareKeywords` | Put up to 5 keywords on the same scale. |
| `searchProperty` | `web`, `youtube`, `news`, `images`, `shopping` |
| `category` | Google Trends category id (0 = all) |
| `includeRegions`, `regionResolution` | Interest by region, and its level: `country`, `region`, `city`, `metro` |
| `includeRelated` | Related queries top and rising |
| `trendingCountries` | Country codes for today's trending searches |

```json
{ "keywords": ["iphone", "samsung galaxy", "xiaomi"], "compareKeywords": true, "geo": "BR", "timeframe": "past_90_days", "regionResolution": "city" }
```

```json
{ "trendingCountries": ["US", "GB", "IN", "BR", "DE"] }
```

### Output fields

#### Keyword rows (`type: "keyword"`)

| Field | What it is |
|---|---|
| `keyword`, `geo`, `timeframe`, `category`, `searchProperty`, `comparedWith` | What was asked |
| `interestOverTime` | `[{date, value, isPartial}]`, values 0 to 100 as on Google Trends |
| `averageInterest`, `peakValue`, `peakDate`, `latestValue`, `changePercent` | Summary of the series; `changePercent` compares the last quarter of the period with the first |
| `interestByRegion` | `[{geoCode, name, value}]` |
| `relatedQueriesTop`, `relatedQueriesRising` | `[{query, value, formattedValue}]`; rising values are growth in percent, "Breakout" above 5000% |
| `relatedTopicsTop`, `relatedTopicsRising` | Filled only when Google serves topics to this session (often empty for automated access) |
| `exploreUrl` | The same query on the Google Trends site |

#### Trending rows (`type: "trending"`)

`country`, `rank`, `title`, `approxTraffic` ("1000+"), `approxTrafficNumber`, `startedAt`, `pictureUrl`, `pictureSource`, `news` (`[{title, url, source}]`).

#### Error codes (never charged)

| errorCode | Meaning |
|---|---|
| `NO_DATA` | Not enough search volume for this keyword, place and period (Google shows no chart either) |
| `BLOCKED` | Google kept answering "too many requests" after several retries; run again |
| `INVALID_INPUT` | Unknown time range, search type or category, or a request Google rejected |
| `NO_RESULTS` | No trending searches for that country code |
| `NOT_REACHED`, `UNEXPECTED` | The run timeout arrived, or something unforeseen broke; only that keyword is lost |

### Pricing

| Event | Per 1,000 |
|---|---|
| Keyword report (all sections) | US$ 3.00 |
| Trending search | US$ 0.75 |

A 50 keyword study costs US$ 0.15. Keywords without data and blocked requests are free. There is no Apify compute bill on top.

### Limitations

- **Values are relative, as on Google Trends:** 0 to 100 within the chosen keyword, place and period (or within the comparison group). They are not search volumes.
- **Google limits automated access.** The Actor paces its requests (about 15 seconds per keyword with all sections) and retries when Google limits it. Very large lists take longer; split them across runs if you need speed.
- **Related topics** are often withheld by Google from automated sessions; related queries are not.
- This Actor reads public Google Trends data only and respects the site's terms.

### FAQ

**Do I need a Google account, cookies or an API key?**
No. The Actor reads public Google Trends data without login, cookies or an API key.

**What does a run cost?**
US$ 3.00 per 1,000 keyword reports (all sections in one row) and US$ 0.75 per 1,000 trending searches, so a 50 keyword study costs US$ 0.15. Keywords without data, blocked requests and other error rows are free, and there is no Apify compute bill on top.

**Are the values search volumes?**
No. As on Google Trends, they are relative, 0 to 100 within the chosen keyword, place and period. Turn on `compareKeywords` to put up to 5 keywords on the same scale and see which is searched more.

**How do I get today's trending searches?**
Add country codes to `trendingCountries` (for example `US`, `GB`, `IN`). Each trending search comes as one row with approximate searches, start time and news links. It works with or without `keywords`.

**Can I use a custom date range?**
Yes. Besides the options of `timeframe`, through the API you can send a custom range as `YYYY-MM-DD YYYY-MM-DD`, for example `2026-01-01 2026-06-30`.

**Why does a run take a while?**
Google limits automated access, so the Actor paces its requests (about 15 seconds per keyword with all sections) and retries on every limit. Turn off `includeRegions` or `includeRelated` for faster runs, or split very large lists across runs. A keyword that ends as `BLOCKED` is free; run it again.

### Changelog

- **2026-10-17:** FAQ in this page.
- **2026-09-30, 0.1:** first release. Interest over time with summary, interest by region at four levels, related queries, keyword comparison, five search types, categories, custom date ranges, trending searches by country with news, free error rows.

# Actor input Schema

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

Search terms to analyze, one per line, for example artificial intelligence or chatgpt. Each keyword returns one report row, charged as 'Keyword report': interest over time (0 to 100) with a summary (average, peak, latest value, change), interest by region and related queries, as set in 'Report sections'.

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

Where the searches come from: a country code (US, BR, GB, IN...) or a region code (US-CA, BR-SP, GB-ENG). Empty = worldwide.

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

Period of the interest data, from the past hour to since 2004 (the select options). Through the API you can also send a custom range as 'YYYY-MM-DD YYYY-MM-DD', for example '2026-01-01 2026-06-30'. Short periods come hourly or by the minute, long ones weekly or monthly, as Google decides.

## `compareKeywords` (type: `boolean`):

Off (default): each keyword is scaled on its own, so its peak is 100. On: up to 5 keywords share one chart, as on the Google Trends site, so their values are relative to each other and you can see which is searched more.

## `searchProperty` (type: `string`):

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

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

Google Trends category id to narrow an ambiguous keyword, for example 0 = all categories (default), 7 = Finance, 18 = Shopping, 71 = Food & Drink, 174 = Sports. The id is the 'cat=' number in a Google Trends link.

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

On (default): adds interest by region to each keyword report, at the level chosen below. Turn off for faster runs when you only need the time series.

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

Detail of the regional breakdown: Countries, States or regions, Cities, or Metro areas (US only). Empty lets Google pick: countries for worldwide, states inside a country.

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

On (default): adds the top and rising related queries, and related topics when Google serves them. Useful to find new keyword ideas. Turn off for faster runs.

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

Optional. Also return today's trending searches for these countries, one code per line, for example US, BR, GB, IN or DE. One row per trending search with approximate search volume, start time and news links, charged as 'Trending search'. Works with or without keywords.

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

Apify Proxy is the default and recommended. When Google answers 'too many requests', the Actor waits and retries on its own, with no extra charge. Change it only to use your own proxies.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence",
    "chatgpt"
  ],
  "geo": "US",
  "timeframe": "past_12_months",
  "compareKeywords": false,
  "searchProperty": "web",
  "category": 0,
  "includeRegions": true,
  "includeRelated": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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",
        "chatgpt"
    ],
    "geo": "US",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/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 = {
    "keywords": [
        "artificial intelligence",
        "chatgpt",
    ],
    "geo": "US",
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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