# Google Trends Scraper: Compare Unlimited Keywords, Daily Data (`rishupishu/google-trends-scraper`) Actor

Google Trends without a browser. Compare more than 5 keywords on one scale, get daily data over multi-year ranges, plus regions, related queries and Trending Now. Charged per keyword that succeeds.

- **URL**: https://apify.com/rishupishu/google-trends-scraper.md
- **Developed by:** [Muhammed Roshan Palayamkot](https://apify.com/rishupishu) (community)
- **Categories:** SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 keywords

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: compare unlimited keywords, daily data

Get Google Trends data without a browser. It's fast, cheap, and you pay only for keywords that succeed.

**A pytrends alternative that doesn't hit `429 Too Many Requests`.** pytrends was archived in 2025, and Google's official Trends API is still invite-only. This Actor uses rotating proxy sessions and automatic retries. In our 30-keyword, 5-year daily test, it returned 54,810 data points with zero errors.

### What makes it different

- **Compare more than 5 keywords on one scale.** Google Trends only compares 5 terms at a time, and scores from separate searches can't be compared. This Actor sorts your keywords by popularity and chains overlapping batches. That puts 10, 50 or 200 keywords on one 0-100 scale. In our tests, the results match Google's direct comparisons within about 3%.
- **Daily data for long ranges.** For ranges over about 9 months, Google only returns weekly or monthly points. Turn on *Daily data* to get one point per day for years, stitched from overlapping daily windows. Over 3 years of bitcoin data, the stitched daily series correlates 0.997 with Google's own weekly curve.
- **No browser.** The Actor calls Google Trends directly, with automatic retries and fresh proxy sessions. Five keywords with regions and related queries finish in about a minute.

### What you get

| Data | Description |
|---|---|
| Interest over time | A 0-100 score per date for every keyword, all on one scale |
| Interest by region | Countries, sub-regions, cities or US metros, scored 0-100 |
| Related queries | Top and rising searches for each keyword, including "Breakout" terms |
| Trending Now | Today's trending searches for a country, with news links |

Filter by country or region, time range (past hour to 2004), category, and search type (web, images, news, Shopping, YouTube).

### Example input

```json
{
  "keywords": ["coffee", "tea", "matcha", "espresso", "latte", "chai", "kombucha"],
  "geo": "US",
  "timeRange": "today 5-y",
  "dailyData": true,
  "includeRelatedQueries": true
}
```

### Example output

```json
{"type": "interest_over_time", "keyword": "matcha", "geo": "US", "timeRange": "today 5-y", "date": "2026-03-14", "value": 7.42, "isPartial": false}
{"type": "related_query", "keyword": "matcha", "list": "rising", "query": "matcha latte recipe", "value": 350, "formattedValue": "+350%"}
{"type": "region", "keyword": "matcha", "geoCode": "US-HI", "geoName": "Hawaii", "value": 100}
```

Every row has a `type` field, so you can filter the dataset or export one type at a time to CSV or Excel.

### Pricing

$0.002 per keyword ($2 per 1,000), however many dates, regions or related queries it returns. A Trending Now list costs the same $0.002. There's no start fee and no extra platform usage charge. Keywords that fail are free.

### Use it from Python instead of pytrends

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("rishupishu/google-trends-scraper").call(run_input={
    "keywords": ["coffee", "tea", "matcha", "espresso", "latte", "chai"],
    "timeRange": "today 5-y",
    "dailyData": True,
})
rows = client.dataset(run.default_dataset_id).list_items().items
```

For a pandas DataFrame, run `pd.DataFrame(rows).query("type == 'interest_over_time'")`.

### Notes

- Values are relative (0-100), not absolute search counts. That's how Google Trends works.
- When you compare more than 5 keywords, rounding means very small keywords next to very large ones still lose a little precision. The Actor groups similar keywords together to keep this small.
- Related topics are not included. Google only serves them to real browsers.
- If you set a maximum charge for a run, the Actor stops cleanly when it reaches it.

# Actor input Schema

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

Search terms to analyse. More than 5 are compared on one shared scale automatically.

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

Two-letter country code like US or AE, or a region like US-CA. Leave empty for worldwide.

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

Pick 'Custom' to use the start and end dates below.

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

YYYY-MM-DD, from 2004-01-01.

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

YYYY-MM-DD.

## `dailyData` (type: `boolean`):

Google gives weekly or monthly points for ranges over ~9 months. Turn this on to get one point per day, stitched from overlapping windows. Uses more requests.

## `includeInterestOverTime` (type: `boolean`):

A 0-100 score per date for every keyword, all on one shared scale.

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

Where each keyword is searched most, scored 0-100 per region.

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

Defaults to countries for worldwide searches and sub-regions otherwise.

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

Top and rising searches related to each keyword, including 'Breakout' terms.

## `trendingNow` (type: `boolean`):

Also fetch the current list of trending searches for a country.

## `trendingGeo` (type: `string`):

Two-letter country code. Defaults to the country above, or US.

## `anchorKeyword` (type: `string`):

Used to join batches when you compare more than 5 keywords. Defaults to your first keyword. Pick a term of similar popularity to the others.

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

Google Trends category ID. 0 means all categories.

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

Which Google search to measure.

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

Interface language code, e.g. en-US.

## `maxRetries` (type: `integer`):

How many times to retry a rate-limited request with a fresh session.

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

Apify Proxy is recommended. Google rate-limits single IP addresses.

## Actor input object example

```json
{
  "keywords": [
    "coffee",
    "tea",
    "matcha"
  ],
  "geo": "",
  "timeRange": "today 12-m",
  "dailyData": false,
  "includeInterestOverTime": true,
  "includeRegions": false,
  "includeRelatedQueries": false,
  "trendingNow": false,
  "category": 0,
  "searchProperty": "",
  "language": "en-US",
  "maxRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Every row has a type field: interest_over_time, region, related_query, trending_now or error. Pick a view in Console for type-specific columns.

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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