# Google Trends Bulk – Interest, Regions & Queries (`publicrows/google-trends-bulk`) Actor

Google Trends for a whole keyword list in one run: interest over time with average, peak and trend, interest by region, related topics and rising queries, as JSON or CSV. Licensed via the DataForSEO API: no blocks, no CAPTCHAs. Compare up to 5 terms per request. $25 per 1,000 keywords, first 3 free.

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

## Pricing

from $17.50 / 1,000 keyword analyseds

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 Bulk – Interest, Regions & Queries

Google Trends for a whole keyword list in one run: interest over time with average, peak and trend, interest by region, related topics and rising queries, as JSON or CSV. Licensed via the DataForSEO API: no blocks, no CAPTCHAs. Compare up to 5 terms per request. $25 per 1,000 keywords, first 3 free.

### Who this is for

SEO and content teams screening keyword lists for rising topics and seasonality, brand and market analysts who need interest by region or term-versus-term comparisons on a schedule, and AI agents that need Google Trends numbers without scraping.

### Sample output

```json
{
  "keyword": "gaming laptop",
  "search_type": "web",
  "location_code": 2840,
  "time_range": "past_12_months",
  "period_from": "2025-11-09",
  "period_to": "2026-11-15",
  "data_points": 54,
  "average_interest": 29.04,
  "latest_interest": 15,
  "peak_interest": 100,
  "peak_date": "2026-04-12",
  "trend_last_quarter_pct": -59.2,
  "interest_over_time": "[{\"date\":\"2025-11-09\",\"value\":18},{\"date\":\"2025-11-16\",\"value\":25},{\"date\":\"2025-11-23\",\"value\":34},{\"date\":\"2025-11-30\",\"value\":24},{\"date\":\"2025-12-07\",\"value\":17},{\"date\":\"2025-12-14\",\"value\":17},{\"date\":\"2025-12-21\",\"value\":18},{\"date\":\"2025-12-28\",\"value\":15},{\"date\":\"2026-01-04\",\"value\":13},{\"date\":\"2026-01-11\",\"value\":14},{\"date\":\"2026-01-18\",\"value\":14},{\"date\":\"2026-01-25\",\"value\":14},{\"date\":\"2026-02-01\",\"value\":12},{\"date\":\"2026-02-08\",\"value\":13},{\"date\":\"2026-02-15\",\"value\":13},{\"date\":\"2026-02-22\",\"value\":14},{\"date\":\"2026-03-01\",\"value\":15},{\"date\":\"2026-03-08\",\"value\":14},{\"date\":\"2026-03-15\",\"value\":18},{\"date\":\"2026-03-22\",\"value\":39},{\"date\":\"2026-03-29\",\"value\":73},{\"date\":\"2026-04-05\",\"value\":95},{\"date\":\"2026-04-12\",\"value\":100},{\"date\":\"2026-04-19\",\"value\":78},{\"date\":\"2026-04-26\",\"value\":58},{\"date\":\"2026-05-03\",\"value\":61},{\"date\":\"2026-05-10\",\"value\":71},{\"date\":\"2026-05-17\",\"value\":67},{\"date\":\"2026-05-24\",\"value\":50},{\"date\":\"2026-05-31\",\"value\":50},{\"date\":\"2026-06-07\",\"value\":59},{\"date\":\"2026-06-14\",\"value\":55},{\"date\":\"2026-06-21\",\"value\":62},{\"date\":\"2026-06-28\",\"value\":31},{\"date\":\"2026-07-05\",\"value\":24},{\"date\":\"2026-07-12\",\"value\":16},{\"date\":\"2026-07-19\",\"value\":17},{\"date\":\"2026-07-26\",\"value\":15},{\"date\":\"2026-08-02\",\"value\":14},{\"date\":\"2026-08-09\",\"value\":15},{\"date\":\"2026-08-16\",\"value\":14},{\"date\":\"2026-08-23\",\"value\":16},{\"date\":\"2026-08-30\",\"value\":15},{\"date\":\"2026-09-06\",\"value\":14},{\"date\":\"2026-09-13\",\"value\":13},{\"date\":\"2026-09-20\",\"value\":15},{\"date\":\"2026-09-27\",\"value\":14},{\"date\":\"2026-10-04\",\"value\":13},{\"date\":\"2026-10-11\",\"value\":13},{\"date\":\"2026-10-18\",\"value\":13},{\"date\":\"2026-10-25\",\"value\":13},{\"date\":\"2026-11-01\",\"value\":13},{\"date\":\"2026-11-08\",\"value\":15},{\"date\":\"2026-11-15\",\"value\":15}]",
  "interest_by_region": "[{\"region\":\"Wyoming\",\"geo_id\":\"US-WY\",\"value\":100},{\"region\":\"New York\",\"geo_id\":\"US-NY\",\"value\":11},{\"region\":\"Washington\",\"geo_id\":\"US-WA\",\"value\":10},{\"region\":\"California\",\"geo_id\":\"US-CA\",\"value\":10},{\"region\":\"Florida\",\"geo_id\":\"US-FL\",\"value\":9},{\"region\":\"Texas\",\"geo_id\":\"US-TX\",\"value\":9},{\"region\":\"Alaska\",\"geo_id\":\"US-AK\",\"value\":9},{\"region\":\"Nevada\",\"geo_id\":\"US-NV\",\"value\":9},{\"region\":\"Utah\",\"geo_id\":\"US-UT\",\"value\":9},{\"region\":\"Virginia\",\"geo_id\":\"US-VA\",\"value\":9},{\"region\":\"Delaware\",\"geo_id\":\"US-DE\",\"value\":9},{\"region\":\"Hawaii\",\"geo_id\":\"US-HI\",\"value\":9},{\"region\":\"Arizona\",\"geo_id\":\"US-AZ\",\"value\":9},{\"region\":\"District of Columbia\",\"geo_id\":\"US-DC\",\"value\":9},{\"region\":\"Missouri\",\"geo_id\":\"US-MO\",\"value\":9},{\"region\":\"Georgia\",\"geo_id\":\"US-GA\",\"value\":8},{\"region\":\"Maryland\",\"geo_id\":\"US-MD\",\"value\":8},{\"region\":\"Illinois\",\"geo_id\":\"US-IL\",\"value\":8},{\"region\":\"Oregon\",\"geo_id\":\"US-OR\",\"value\":8},{\"region\":\"Louisiana\",\"geo_id\":\"US-LA\",\"value\":8},{\"region\":\"Colorado\",\"geo_id\":\"US-CO\",\"value\":8},{\"region\":\"Ohio\",\"geo_id\":\"US-OH\",\"value\":8},{\"region\":\"North Carolina\",\"geo_id\":\"US-NC\",\"value\":8},{\"region\":\"Massachusetts\",\"geo_id\":\"US-MA\",\"value\":8},{\"region\":\"Connecticut\",\"geo_id\":\"US-CT\",\"value\":8},{\"region\":\"Pennsylvania\",\"geo_id\":\"US-PA\",\"value\":8},{\"region\":\"New Jersey\",\"geo_id\":\"US-NJ\",\"value\":7},{\"region\":\"Oklahoma\",\"geo_id\":\"US-OK\",\"value\":7},{\"region\":\"Tennessee\",\"geo_id\":\"US-TN\",\"value\":7},{\"region\":\"Kansas\",\"geo_id\":\"US-KS\",\"value\":7},{\"region\":\"Michigan\",\"geo_id\":\"US-MI\",\"value\":7},{\"region\":\"Minnesota\",\"geo_id\":\"US-MN\",\"value\":7},{\"region\":\"Nebraska\",\"geo_id\":\"US-NE\",\"value\":7},{\"region\":\"Alabama\",\"geo_id\":\"US-AL\",\"value\":7},{\"region\":\"Kentucky\",\"geo_id\":\"US-KY\",\"value\":7},{\"region\":\"Rhode Island\",\"geo_id\":\"US-RI\",\"value\":7},{\"region\":\"Indiana\",\"geo_id\":\"US-IN\",\"value\":7},{\"region\":\"Idaho\",\"geo_id\":\"US-ID\",\"value\":7},{\"region\":\"South Carolina\",\"geo_id\":\"US-SC\",\"value\":6},{\"region\":\"Wisconsin\",\"geo_id\":\"US-WI\",\"value\":6},{\"region\":\"Arkansas\",\"geo_id\":\"US-AR\",\"value\":6},{\"region\":\"North Dakota\",\"geo_id\":\"US-ND\",\"value\":6},{\"region\":\"New Mexico\",\"geo_id\":\"US-NM\",\"value\":6},{\"region\":\"New Hampshire\",\"geo_id\":\"US-NH\",\"value\":6},{\"region\":\"Montana\",\"geo_id\":\"US-MT\",\"value\":6},{\"region\":\"West Virginia\",\"geo_id\":\"US-WV\",\"value\":6},{\"region\":\"Mississippi\",\"geo_id\":\"US-MS\",\"value\":6},{\"region\":\"Maine\",\"geo_id\":\"US-ME\",\"value\":6},{\"region\":\"Iowa\",\"geo_id\":\"US-IA\",\"value\":5},{\"region\":\"South Dakota\",\"geo_id\":\"US-SD\",\"value\":5},{\"region\":\"Vermont\",\"geo_id\":\"US-VT\",\"value\":5}]",
  "related_queries_top": "[{\"query\":\"laptop for gaming\",\"value\":100},{\"query\":\"asus\",\"value\":52},{\"query\":\"asus gaming laptop\",\"value\":48},{\"query\":\"asus laptop\",\"value\":46},{\"query\":\"lenovo\",\"value\":43},{\"query\":\"lenovo gaming laptop\",\"value\":42},{\"query\":\"hp laptop\",\"value\":39},{\"query\":\"hp gaming laptop\",\"value\":36},{\"query\":\"best gaming laptop\",\"value\":32},{\"query\":\"gaming pc laptop\",\"value\":25},{\"query\":\"pc\",\"value\":24},{\"query\":\"amd gaming laptop\",\"value\":23},{\"query\":\"gaming pc\",\"value\":22},{\"query\":\"acer gaming laptop\",\"value\":19},{\"query\":\"legion gaming laptop\",\"value\":18},{\"query\":\"msi\",\"value\":18},{\"query\":\"gaming computer\",\"value\":18},{\"query\":\"gaming laptop computer\",\"value\":17},{\"query\":\"msi laptop gaming\",\"value\":17},{\"query\":\"best laptop for gaming\",\"value\":17},{\"query\":\"lenovo legion\",\"value\":17},{\"query\":\"alienware laptop\",\"value\":16},{\"query\":\"lenovo legion gaming laptop\",\"value\":16},{\"query\":\"dell gaming laptop\",\"value\":15},{\"query\":\"dell\",\"value\":15}]",
  "related_queries_rising": "[{\"query\":\"lenovo loq 15irx10 gaming laptop\",\"value\":29100},{\"query\":\"steelseries apex 3 tkl gaming keyboard\",\"value\":7150},{\"query\":\"gaming desktop\",\"value\":110},{\"query\":\"lenovo gaming laptop\",\"value\":100},{\"query\":\"lenovo legion\",\"value\":100},{\"query\":\"lenovo\",\"value\":90},{\"query\":\"alienware laptop\",\"value\":90},{\"query\":\"alienware\",\"value\":90},{\"query\":\"amd gaming laptop\",\"value\":90},{\"query\":\"lenovo legion gaming laptop\",\"value\":80},{\"query\":\"legion gaming laptop\",\"value\":70},{\"query\":\"asus\",\"value\":70},{\"query\":\"alienware gaming laptop\",\"value\":70},{\"query\":\"acer nitro gaming laptop\",\"value\":60},{\"query\":\"asus gaming laptop\",\"value\":60},{\"query\":\"laptop for gaming\",\"value\":60},{\"query\":\"asus tuf gaming laptop\",\"value\":60},{\"query\":\"dell gaming laptop\",\"value\":50},{\"query\":\"asus laptop\",\"value\":50},{\"query\":\"hp laptop\",\"value\":50},{\"query\":\"omen gaming laptop\",\"value\":50},{\"query\":\"hp victus gaming laptop\",\"value\":40},{\"query\":\"hp gaming laptop\",\"value\":40}]",
  "related_topics_top": "[{\"topic\":\"Laptop\",\"topic_type\":\"Topic\",\"value\":100},{\"topic\":\"Video game\",\"topic_type\":\"Topic\",\"value\":99},{\"topic\":\"Gaming Laptop\",\"topic_type\":\"Topic\",\"value\":80},{\"topic\":\"ASUS\",\"topic_type\":\"Topic\",\"value\":11},{\"topic\":\"Lenovo\",\"topic_type\":\"Topic\",\"value\":11},{\"topic\":\"Nvidia RTX\",\"topic_type\":\"Computer application\",\"value\":10},{\"topic\":\"Asustek Computer Inc\",\"topic_type\":\"Computer hardware company\",\"value\":10},{\"topic\":\"Lenovo\",\"topic_type\":\"IT corporation\",\"value\":10},{\"topic\":\"Personal computer\",\"topic_type\":\"Computer\",\"value\":9},{\"topic\":\"HP\",\"topic_type\":\"Topic\",\"value\":9},{\"topic\":\"Gaming computer\",\"topic_type\":\"Computer\",\"value\":7},{\"topic\":\"Random-access memory\",\"topic_type\":\"Computer peripheral class\",\"value\":7},{\"topic\":\"HP\",\"topic_type\":\"IT company\",\"value\":6},{\"topic\":\"Computer\",\"topic_type\":\"Topic\",\"value\":6},{\"topic\":\"Intel\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"MSI\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"Computer monitor\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"Acer\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"Acer\",\"topic_type\":\"IT company\",\"value\":5},{\"topic\":\"NVIDIA\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"16 GB\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"Lenovo\",\"topic_type\":\"Topic\",\"value\":5},{\"topic\":\"Asus\",\"topic_type\":\"Topic\",\"value\":4},{\"topic\":\"Ryzen\",\"topic_type\":\"Central processing unit\",\"value\":4},{\"topic\":\"Solid-state drive\",\"topic_type\":\"Topic\",\"value\":4}]",
  "related_topics_rising": "[{\"topic\":\"HP\",\"topic_type\":\"IT company\",\"value\":2150},{\"topic\":\"Lenovo\",\"topic_type\":\"IT corporation\",\"value\":350},{\"topic\":\"Lenovo\",\"topic_type\":\"Topic\",\"value\":300},{\"topic\":\"Intel\",\"topic_type\":\"Semiconductor manufacturing company\",\"value\":250},{\"topic\":\"Dell\",\"topic_type\":\"Technology company\",\"value\":120},{\"topic\":\"Intel\",\"topic_type\":\"Topic\",\"value\":120}]",
  "keyword_group": "[\"gaming laptop\"]",
  "google_trends_url": "https://trends.google.com/trends/explore?hl=en&geo=US&date=today%2012-m&q=gaming%20laptop",
  "row_key": "gaming laptop|2840|web|past_12_months",
  "source_url": "https://dataforseo.com/apis/keywords-data-api"
}
```

### What you get

One row per keyword. Every row also carries `_source` (attribution) and the recipe version.

| Field | Type |
| --- | --- |
| `keyword` | string, always present |
| `search_type` | string, always present |
| `location_code` | number |
| `time_range` | string, always present |
| `period_from` | string |
| `period_to` | string |
| `data_points` | number |
| `average_interest` | number |
| `latest_interest` | number |
| `peak_interest` | number |
| `peak_date` | string |
| `trend_last_quarter_pct` | number |
| `interest_over_time` | string, always present |
| `interest_by_region` | string |
| `related_queries_top` | string |
| `related_queries_rising` | string |
| `related_topics_top` | string |
| `related_topics_rising` | string |
| `keyword_group` | string |
| `google_trends_url` | url |
| `row_key` | string, always present |
| `source_url` | string |

Values are Google Trends relative interest (0–100), bought per request through the DataForSEO Keywords Data API under its licence; the actor never scrapes Google. With `compare` off, every keyword is scaled on its own (its best point is 100), which is right for screening a list, and each row also carries Google's related topics and queries. With `compare` on, up to 5 keywords travel in one request and share one scale for `interest_over_time` and `average_interest`, exactly like adding terms on the Trends page; `keyword_group` lists the terms that were compared. Google serves related topics and queries only for single-term requests, so those four fields are empty in compare mode; `interest_by_region` is always the keyword's own regional breakdown.

`interest_over_time` holds the full series as JSON (`[{date, value}, ...]`); `average_interest`, `latest_interest`, `peak_interest`, `peak_date` and `trend_last_quarter_pct` (mean of the last quarter of the points against the rest, in percent) summarise it so a long list can be sorted without parsing the series. `interest_by_region` is the subregion breakdown, `related_queries_top`/`related_queries_rising` and `related_topics_top`/`related_topics_rising` are Google's related lists (a rising value of 5000 means +5,000%; Google's rising lists are breakout terms and often look unrelated to the keyword, the top lists are the dependable ones). `google_trends_url` opens the same chart on Google Trends.

Each keyword is one supplier request and one row at $0.025; the first 3 rows of every run are free, so a quick check costs nothing and 1,000 keywords cost $25. The supplier allows about 100 Trends requests a minute, so 1,000 keywords take about ten minutes. A keyword Google has no data for comes back with an empty series.

Bring your own DataForSEO credentials in the two optional inputs if you prefer the supplier charge on your own account; the row price here stays the same either way.

### Pricing

Pay per keyword: $0.025 each ($25.00 per 1,000). The first 3 rows of every run are free, so a test costs nothing.

### How to run

1. Keep the defaults for the standard sample, or set the inputs (listed last, below).
2. Run. Results land in the dataset as JSON, CSV or Excel.
3. From code or an agent: call it through the API, or as an MCP tool via mcp.apify.com.

### Source and fair use

Data: Google Trends through the DataForSEO Keywords Data API, licensed. The data is bought from the supplier under its API terms on every run; nothing is scraped from any website. Rows are facts about keywords, and no personal data of individuals is included.

### FAQ

**How fresh is the data?** Each run fetches live from the source.
**Can I get more fields?** Open an issue naming the field and where it appears at the source.
**Something broke?** Open an issue. Issues are answered within 12 hours.
**Found it useful?** A short review on this page helps other people find it, and tells us what to improve.

### Inputs

- `keywords`: One keyword per line (commas also work), up to 100 characters each. Each keyword is one request to the supplier and one row; 1,000 keywords take about ten minutes.
- `location`: Country the interest is measured in. Worldwide = all of Google.
- `language`: Interface language for the related topics and queries.
- `searchType`: Which Google property: web search (default), news, YouTube, images or Google Shopping.
- `timeRange`: Period of the interest series. 'Since 2004' works for web search only.
- `compare`: Compare mode: send up to 5 keywords per request so their values are relative to each other, exactly like adding terms on the Google Trends page (the strongest point across the group is 100). Off = each keyword is scaled on its own, which is what you want for screening a long list.
- `sandbox`: Use the supplier's test environment: same row structure, dummy numbers, no supplier charge. For wiring tests only.
- `dfsLogin`: Optional: your own DataForSEO API login (the account e-mail). Leave empty to use ours.
- `dfsPassword`: Optional: your own DataForSEO API password. Leave empty to use ours.
- `maxItems`: Stop after this many rows.

# Actor input Schema

## `keywords` (type: `string`):

One keyword per line (commas also work), up to 100 characters each. Each keyword is one request to the supplier and one row; 1,000 keywords take about ten minutes.

## `location` (type: `string`):

Country the interest is measured in. Worldwide = all of Google.

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

Interface language for the related topics and queries.

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

Which Google property: web search (default), news, YouTube, images or Google Shopping.

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

Period of the interest series. 'Since 2004' works for web search only.

## `compare` (type: `boolean`):

Compare mode: send up to 5 keywords per request so their values are relative to each other, exactly like adding terms on the Google Trends page (the strongest point across the group is 100). Off = each keyword is scaled on its own, which is what you want for screening a long list.

## `sandbox` (type: `boolean`):

Use the supplier's test environment: same row structure, dummy numbers, no supplier charge. For wiring tests only.

## `dfsLogin` (type: `string`):

Optional: your own DataForSEO API login (the account e-mail). Leave empty to use ours.

## `dfsPassword` (type: `string`):

Optional: your own DataForSEO API password. Leave empty to use ours.

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

Stop after this many rows.

## Actor input object example

```json
{
  "keywords": "gaming laptop\nair fryer\nstanding desk",
  "location": "2840",
  "language": "en",
  "searchType": "web",
  "timeRange": "past_12_months",
  "compare": false,
  "sandbox": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `rows` (type: `string`):

Dataset items, one per keyword (keyword, search_type, location_code, time_range, period_from, period_to, data_points, average_interest, latest_interest, peak_interest, peak_date, trend_last_quarter_pct, interest_over_time, interest_by_region, related_queries_top, related_queries_rising, related_topics_top, related_topics_rising, keyword_group, google_trends_url, row_key, source_url). Append ?format=csv or ?format=xlsx for other formats.

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

Pages fetched, response classes, cost estimate and the quality-gate checks for this 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": `gaming laptop
air fryer
standing desk`,
    "location": "2840",
    "language": "en",
    "searchType": "web",
    "timeRange": "past_12_months",
    "maxItems": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("publicrows/google-trends-bulk").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": """gaming laptop
air fryer
standing desk""",
    "location": "2840",
    "language": "en",
    "searchType": "web",
    "timeRange": "past_12_months",
    "maxItems": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("publicrows/google-trends-bulk").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": "gaming laptop\\nair fryer\\nstanding desk",
  "location": "2840",
  "language": "en",
  "searchType": "web",
  "timeRange": "past_12_months",
  "maxItems": 1000
}' |
apify call publicrows/google-trends-bulk --silent --output-dataset

```

## MCP server setup

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

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/KCj6MZNByviHpSMit/builds/r2ZOZNLamzoP9TSaf/openapi.json
