# Bulk Google Trends Scraper (`oshalaby/bulk-google-trends-scraper`) Actor

Google Trends data for up to 100 keywords a run: interest over time, rising searches, regions and keyword comparisons. Pay per keyword, no start fee.

- **URL**: https://apify.com/oshalaby/bulk-google-trends-scraper.md
- **Developed by:** [Omar Shalaby](https://apify.com/oshalaby) (community)
- **Categories:** SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 87.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 keyword with data

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

## Bulk Google Trends Scraper

Get Google Trends data for up to 100 keywords a run: interest over time, top and rising related searches, interest by region, and side-by-side comparisons of up to 5 keywords. Works for any country, and you can measure web, image, news, YouTube or Shopping search. Pay per keyword, with no start fee.

Not affiliated with, endorsed by or sponsored by Google. This tool reads Google Trends data as shown on the public Trends site. It isn't an official Google API.

A sample of what one run returns (made-up keywords and values, to show the shape):

| Keyword | Country | Time range | Average | Peak | Peak date | Latest | Top rising search |
|---|---|---|---|---|---|---|---|
| example standing desk | US | Past 12 months | 48.2 | 100 | 2026-01-04 | 41 | example standing desk small (Breakout) |
| example desk lamp | US | Past 12 months | 31.7 | 100 | 2025-11-23 | 29 | example desk lamp usb (+250%) |
| example gadget zzqx | US | Past 12 months | – | – | – | – | too little data (free) |

### Bulk Google Trends data for many keywords in one run

Paste a list of up to 100 keywords and get one item per keyword, each read on its own chart, so a spreadsheet of product names, topics or search terms can be checked in a single run instead of one chart at a time. For each keyword you get:

- **Interest over time:** Google's relative interest (0–100) per day or week. The current, still partial, period is marked.
- **Summary:** average, peak, peak date and latest value, leaving out partial periods.
- **Related searches:** top, and rising ("Breakout" means a rise over 5000%).
- **Interest by region:** within the chosen country, or by country when worldwide.

### Compare 2 to 5 keywords on one chart

Add a comparison line such as `coffee, tea, matcha` to put 2 to 5 keywords on one shared scale and see which is searched more, and when.

**For each comparison** (2 to 5 keywords), one item with all the keywords on one shared 0–100 scale, plus the average per keyword and interest by region per keyword. Values are only comparable between keywords inside a comparison.

### Rising related searches by country

Set a country to see the top and rising related searches for each keyword in that market, and how interest splits across its regions. Leave the country empty for worldwide figures, split by country. Rising searches show the growth Google reports, such as "+250%" or "Breakout".

### Arabic keywords and Middle East regions

Keywords can be in any language. The Trends site itself is read in English.

Type keywords in Arabic as you would search them, and set the country to a two-letter code such as `EG`, `SA` or `AE`. Related searches come back as people typed them; region names come back in English.

### Search trends for YouTube, news, images and Shopping search

Web search is the default. Set the search type to YouTube, news, images or Shopping to measure interest in that search instead, for the same keywords, countries and time ranges. Narrow, recent charts (for example news search over the past 7 days) can have too little data; those keywords are free.

### Input

```json
{
  "keywords": ["coffee", "cold brew"],
  "comparisons": ["coffee, tea, matcha"],
  "country": "US",
  "timeRange": "today 12-m",
  "searchType": "web"
}
```

- **Keywords:** one per line. Each is read on its own chart.
- **Comparisons:** one per line, 2 to 5 keywords separated by commas.
- **Country:** a two-letter code such as `US` or `EG`. Leave it empty for worldwide.
- **Time range:** past hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months (the default), 5 years, or 2004 to now.
- **Search type:** web (the default), images, news, YouTube or Shopping.
- **Category:** a Google Trends category ID, or 0 for all.
- **Limit:** up to 100 keywords plus comparisons per run.

### Output (one keyword, shortened; made-up values)

```json
{
  "type": "keyword",
  "keyword": "example standing desk",
  "country": "US",
  "timeRange": "today 12-m",
  "average": 48.2, "peak": 100, "peakDate": "2026-01-04T00:00:00.000Z", "latest": 41,
  "interestOverTime": [{ "date": "2025-11-16T00:00:00.000Z", "label": "Nov 16 – 22, 2025", "value": 44, "partial": false }],
  "relatedQueries": { "top": [{ "query": "example standing desk frame", "value": 100, "label": "100" }], "rising": [{ "query": "example standing desk small", "value": 5600, "label": "Breakout" }] },
  "interestByRegion": [{ "code": "US-XX", "name": "Example State", "value": 100 }],
  "hasData": true
}
```

A comparison item has `"type": "comparison"`, the list of `keywords`, an `averages` object with one figure per keyword, and one value per keyword at each point and in each region.

### Use cases

- Pick content topics and product names by seasonality and rising searches.
- Compare brands or products over time, by region.
- Track interest in your market by country, including Arabic searches in Gulf and Egyptian markets.
- Feed trend data into dashboards or spreadsheets on a schedule.

### Pricing

Pay per event, with Apify's proxy and platform usage included. There's no start fee.

- **USD 0.0025 per keyword with data**, so 100 keywords cost USD 0.25.
- **USD 0.005 per comparison with data.**
- Keywords and comparisons that Google has too little data for are free.
- Apify Silver-plan customers pay 10% less and Gold-plan customers and above 20% less.

### Run it on a schedule

Save your input as a task, then add an Apify Schedule (for example weekly) that runs it.

### How to schedule Google Trends runs and send results to Sheets or Slack

These short videos from Apify show how to [schedule an Actor](https://www.youtube.com/watch?v=1jI7WcVQmwM) (1 min) and [connect it to other apps](https://www.youtube.com/watch?v=bNACk1_S_6w) (2 min).

[![Getting Started with Apify: Schedule your Actor (video by Apify)](https://img.youtube.com/vi/1jI7WcVQmwM/hqdefault.jpg)](https://www.youtube.com/watch?v=1jI7WcVQmwM)

### Good to know

- **What the values mean:** they're relative (0–100) within each chart. They aren't search counts. Trends values come from a sample of searches, so they can shift slightly between checks.
- **Speed:** the tool reads politely, about 6 seconds per keyword (each keyword needs several requests, at least 1 second apart). 100 keywords take about 10 minutes.
- **If Google pushes back:** if Google rate-limits, refuses or challenges a run, the run stops at once. Anything not yet read isn't charged, and it's listed in the run's OUTPUT record (`notRead`) so you can run it again later. If some items were read before the stop, the run is marked Succeeded and its status message says it stopped early and how many items were not read; the items already read stay in the dataset. If nothing was read, it's marked Failed.
- **If nothing could be read:** if the Trends site can't be opened, or no keyword at all gets a usable answer, the run is marked Failed and nothing is charged. A keyword with too little data is not a failure: you get a free row with `hasData: false`.
- **Network hiccups:** a request that gets no answer, takes over 30 seconds or gets a server error (HTTP 5xx) is tried once more, after 3 seconds, on the same connection. A rate limit, refusal or challenge is never retried.
- **Related topics:** not included. Google returned none in our tests.
- **What we keep and how we read:** nothing is stored between runs. The tool uses no Google account, solves no CAPTCHAs and uses no tricks; it reads at a steady, polite pace through Apify Proxy.
- **Removal requests:** for removal or blocking requests, use the Issues tab; you don't need to include personal details. You can also contact Apify support (apify.com/contact). Requests are handled within 14 days.

### FAQ and support

**Do I need a Google account or API key?** No. The tool uses no Google account. It reads Google Trends data as shown on the public Trends site. It isn't an official Google API.

**Does it give search volumes?** No. Values are relative (0–100) within each chart. They aren't search counts.

**What does it cost for a typical run?** At the list price of USD 0.0025 per keyword with data, 100 keywords cost USD 0.25. Keywords with too little data are free. See Pricing.

**What if a keyword has too little data, or nothing can be read?** A keyword with too little data gives a free row with `hasData: false`. If no keyword at all gets a usable answer, the run is marked Failed and nothing is charged. See "Good to know".

**Can I get related topics?** No. Related topics are not included.

**Something else?** Use the Issues tab.

### More from this developer

- [Company Job Changes Monitor](https://apify.com/oshalaby/company-job-changes-monitor): tracks open jobs at the companies you choose on Greenhouse and Lever, and flags each job as new, changed, unchanged or closed since your last run.
- [AI Overview Brand Tracker](https://apify.com/oshalaby/ai-overview-brand-tracker): checks whether Google AI Overviews mention or cite your brand and competitors, with changes since your last check.
- [Subreddit Monitor](https://apify.com/oshalaby/reddit-new-posts-monitor): a digest of new posts and comments from the subreddits you pick, with no repeats between runs.
- [Video Transcriber](https://apify.com/oshalaby/short-video-transcripts): turns public TikTok videos and Instagram Reels into text with timestamps, in English, Arabic and other languages.
- [Maps Business Listings](https://apify.com/oshalaby/maps-business-listings): business listings from a map search, in English or Arabic, with name, category, address, business phone, website, hours and rating.
- [Social Keyword Monitor](https://apify.com/oshalaby/social-keyword-monitor): new public Threads posts for your keywords since your last run.

# Actor input Schema

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

Search terms, one per line. Each is read on its own chart. Up to 100 items per run in total.

## `comparisons` (type: `array`):

Optional. One comparison per line: 2 to 5 keywords separated by commas, shown on one shared 0-100 chart. Example: coffee, tea, matcha

## `country` (type: `string`):

Two-letter country code such as US or EG. Leave empty for worldwide.

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

How far back to look.

## `relatedQueries` (type: `boolean`):

Add top and rising related searches.

## `regions` (type: `boolean`):

Add interest by region within the country (or by country, worldwide).

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

Google Trends category ID, 0 for all categories (for example 71 is Food & Drink).

## `searchType` (type: `string`):

Which Google search to measure.

## `maxItems` (type: `integer`):

Keywords plus comparisons, at most 100 per run.

## `proxy` (type: `string`):

Apify Proxy, chosen before the run and never switched. Keep residential: in our tests runs without it were often challenged by Google.

## Actor input object example

```json
{
  "keywords": [
    "coffee"
  ],
  "country": "",
  "timeRange": "today 12-m",
  "relatedQueries": true,
  "regions": true,
  "category": 0,
  "searchType": "web",
  "maxItems": 100,
  "proxy": "residential"
}
```

# Actor output Schema

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

One row per keyword: average, peak, latest, interest over time, related searches and regions.

## `comparisons` (type: `string`):

One row per comparison: the average per keyword on a shared scale.

## `runSummary` (type: `string`):

Items read and charged, errors, and anything not read (notRead) if Google stopped the run.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("oshalaby/bulk-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"] }

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

```

## MCP server setup

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