# Google Trends History Review (`apifmcpfactory/google-trends-history-review`) Actor

Review Google Trends CSVs and licensed archives. See which terms led, spot missing periods and export original index values with their source.

- **URL**: https://apify.com/apifmcpfactory/google-trends-history-review.md
- **Developed by:** [Howth Technology Factory](https://apify.com/apifmcpfactory) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / compact history report

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/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 History Review

Find peaks and gaps in a historical **Interest over time** chart. Keep selected terms in the same Google Trends chart so their reported index values share a scale.

![See how search interest changed](https://howthtechnologyfactory.pro/assets/google-trends-history-review/01-compare-trends.png)

If you are starting from search terms, choose **Prepare an Explore comparison link**. Enter up to eight terms, the first and last dates, and an optional country code. Open the link in the preparation report and confirm the selections on the redesigned Google Trends Explore page. This preparation run records no report fee. Downloading the CSV is a separate step, and the regular report fee applies when you submit it for analysis.

1. In Google Trends Explore, open the interest chart for your terms, geography and period. Download the chart as CSV with the interface set to English.
2. Paste the export or select its Apify key-value store and record key. Optionally add the Explore link to retain a direct citation in the report and dataset. It accepts one UTF-8 export with up to eight series and 4,000 daily, weekly or monthly periods, up to 750 KB.
3. Open `REPORT.html` for peak dates, missing periods and the latest 26 periods. For a multi-term export, the report also counts how often each term led and separates ties from periods with unavailable scores. Use the dataset for all period rows and `OUTPUT` for the summary.

Classic Explore labels dates by cadence. Redesigned Explore uses a `Time` column. When its dates do not establish a clear cadence, the report keeps the dates and leaves the missing-period count unavailable. If you select Google's preceding-year comparison, the report treats it as two aligned windows for one term. Each row uses the current window date, and Google supplies no separate date for the preceding score. If the downloaded file has only a header, let the chart finish loading and download it again.

The report preserves the source’s series labels and separates reported zeroes, missing scores and values shown as `<1`. Scores refer to the index in the selected export. They cannot establish search volume. Chart dates may include a bucket beginning before the start of the selected date range. The Actor reads supplied CSV and does not request additional Trends data.

Data source [Google Trends](https://trends.google.com/). [Google’s export and attribution guidance](https://support.google.com/trends/answer/4365538?hl=en).

### Review a licensed archive

Select **Review the published Star Wars archive** to compare monthly series from January 2004 to April 2019. Leave CSV and Explore inputs empty. Use the default comparison or enter up to eight exact column names from the source, such as Luke Skywalker, Leia Organa or Obi-Wan Kenobi. You can choose a shorter range using YYYY-MM values.

The archive is the original dated dataset. Reports preserve its decimal scores and attribute Google Trends under CC BY 4.0. Only month labels were converted and the selected columns and months retained. The source file is free. Apify applies the Actor’s report event under the configured billing model. [Published archive CSV](https://github.com/googletrends/data/blob/master/20190503_StarWarsmonthly.csv) · [Data repository licence](https://github.com/googletrends/data/blob/master/LICENSE)

Select **Review the published German district archive** for a dated regional example. It contains Google Trends’ relative search interest for nuclear energy across 401 German districts from 13 April 2022 to 12 April 2023. Leave the CSV, Explore and monthly archive settings empty. The HTML report displays the ten highest reported scores. The dataset retains every district’s original name, code and exact score string, alongside a five-digit join code. The data is one historical snapshot. Its relative index is independent of every other chart. Column labels were translated and the highest values sorted for display. [Published district dataset](https://github.com/googletrends/data/blob/44ce5e8cdb786b6bd5257dd5e9ea6af58fcffe16/Search_Interest_for_Nuclear_Energy_Germany.csv) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

### Frequently asked questions

#### Which Google Trends file should I use?

Choose the **Interest over time** CSV. Files from Related topics, Interest by region and Trending Now have different layouts.

#### Can I enter keywords and fetch a new chart?

Prepare the chart link from your search terms, country and dates, or create it directly in Google Trends. Open the chart and download the CSV, then supply the export for a separate report run.

#### Does this work with the redesigned Explore page?

Use the redesigned Explore **Interest over time** CSV with date-only rows. The Actor reads the `Time` column and preserves the values as exported. For Google's preceding-year comparison, each row shows the date for the current window and both aligned scores. If a download has only a header, wait for the chart to show data and download it again.

#### What languages are supported?

The accepted file uses English column and date labels. Your keywords themselves can be in other languages if the file is in UTF-8.

#### How many terms can I review?

The parser accepts up to eight term columns from the same export.

#### How many dates can I import?

One file can contain up to 4,000 date-only rows. The maximum file size is 750 KB. If the dates do not establish the frequency of the export, the report leaves the missing-period count unavailable.

#### What do the index values mean?

They are relative Google Trends interest scores within the conditions of that chart. A value of 100 marks its peak index value.

#### Can I estimate absolute search volume from this report?

The export supplies a normalized index. Use a separate source if you need counts such as monthly searches.

#### Can I combine terms from two charts?

Keep them in one chart. Separately exported charts may use different scales, so comparing their raw scores can be misleading.

#### How are zeroes, missing data and values below one handled?

A reported `0`, an empty cell and a value shown as `<1` remain distinct in the data.

#### Why is the first date before the start I selected?

A weekly bucket can start before the first calendar day of the selected range. The report retains the bucket date in the export.

#### How do I see the latest dates quickly?

Open `REPORT.html` for the latest 26 periods. Open the dataset to inspect or export every period.

#### How can a teammate verify the source?

Include the Explore link. The report cites Google Trends and the candidate includes that exact link in the downloaded records.

#### Does the Actor open or update my chart?

It uses the pasted Explore URL as a citation. The report is based on the CSV supplied for that run.

#### Can I use a CSV saved in Apify storage?

Yes. The private hosted check read a saved CSV from the selected store and verified that the original file stayed unchanged.

#### What happens if my file is missing periods?

The report flags gaps in the selected cadence and retains the original date rows. It leaves absent values and periods unfilled.

#### What if I picked a file with the wrong format?

Download a fresh English Interest over time export and supply it in a new run. Check the header, file size and chart type before retrying.

#### Can I rerun with a newer export?

Start a new run with the newer file. Keep the two original Explore links alongside their results to preserve context.

#### Can I download the complete series?

Yes. The native Apify dataset contains the period rows. `OUTPUT` contains the summary and `REPORT.html` is the visual review.

#### Does the Actor need my Google credentials?

The current workflow only needs the export. Use your own Google Trends interface and follow Google's attribution guidance when sharing results.

#### What will the report cost?

The configured price is $0.01 for reports with up to 800 dataset rows and up to 1,000,000 combined output bytes. If either limit is exceeded, a report costs $0.07. The Actor checks the run’s maximum cost before writing the report. A successful billable report records one event with run usage included.

#### Who can access the files I submit and receive?

The report uses the Apify dataset and key-value store assigned to the run. The verified private run denied signed-out access to its report, summary and dataset. Check the access settings before sharing links or files.

#### Can I try the report without finding a CSV first?

Yes. Choose one of the bundled Google Trends archives and run it without CSV or Explore inputs. The German district example reports one completed historical period and uses the compact tariff.

#### Can I look up any district or keyword from the regional mode?

The district mode covers the 401 records in Google’s published Germany snapshot for one topic. To research another keyword, make or open an Explore chart and download its Interest over time export for review.

#### Where can I get help with a rejected file?

Use the Actor’s Issues tab to reach Howth Technology Factory. Share the error and a small redacted excerpt of the headers. Keep account tokens and storage links private.

[Google Trends attribution guidance](https://support.google.com/trends/answer/4365538?hl=en)

### Product gallery

![See how often each term led](https://howthtechnologyfactory.pro/assets/google-trends-history-review/02-periods-led.png)

![Start with the Google Trends CSV](https://howthtechnologyfactory.pro/assets/google-trends-history-review/03-import.png)

![Know which file to export](https://howthtechnologyfactory.pro/assets/google-trends-history-review/04-validation.png)

![See peaks and missing dates](https://howthtechnologyfactory.pro/assets/google-trends-history-review/05-coverage.png)

![Take the scores into a spreadsheet](https://howthtechnologyfactory.pro/assets/google-trends-history-review/06-dataset.png)

![See where a topic led](https://howthtechnologyfactory.pro/assets/google-trends-history-review/07-regional-archive.png)

![From one export to a shareable report](https://howthtechnologyfactory.pro/assets/google-trends-history-review/08-workflow.png)

# Actor input Schema

## `prepareExplore` (type: `boolean`):

Open Google Trends with your terms and dates filled in. This run records no report fee. Leave the CSV and archive inputs empty.

## `exploreTerms` (type: `array`):

For the redesigned Explore page. Use up to eight search terms without commas.

## `exploreRegion` (type: `string`):

Use a two-letter country code, such as IE. Leave blank for worldwide.

## `exploreFrom` (type: `string`):

Enter YYYY-MM-DD.

## `exploreThrough` (type: `string`):

Enter YYYY-MM-DD.

## `usePublishedArchive` (type: `boolean`):

Use the bundled Google Trends Datastore monthly series from January 2004 to April 2019. Leave all CSV and Explore link fields empty.

## `usePublishedRegionArchive` (type: `boolean`):

Use one licensed Google Trends snapshot of nuclear energy search interest for 401 German districts from April 2022 to April 2023. Leave CSV, Explore and monthly archive settings empty.

## `archiveSeries` (type: `array`):

Optional. Use one to eight exact series labels from the published archive. The default compares Luke Skywalker, Leia Organa and Obi-Wan Kenobi.

## `archiveFrom` (type: `string`):

Optional. Use YYYY-MM. The earliest archive month is 2004-01.

## `archiveThrough` (type: `string`):

Optional. Use YYYY-MM. The last archive month is 2019-04.

## `csv` (type: `string`):

Paste one English Google Trends Interest over time export from Classic or redesigned Explore. Use up to eight series, 4,000 date-only rows, and 750 KB.

## `csvStore` (type: `string`):

Optional. Select the Apify store with your saved export instead of pasting the CSV. This grants read access to that store.

## `csvRecord` (type: `string`):

If selecting a store, enter its exact CSV record key, such as multiTimeline.csv.

## `chartUrl` (type: `string`):

Optional. Paste the Explore URL for a direct citation in the report and every output row. The Actor does not open the link.

## Actor input object example

```json
{
  "prepareExplore": false,
  "usePublishedArchive": false,
  "usePublishedRegionArchive": false
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `periods` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("apifmcpfactory/google-trends-history-review").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("apifmcpfactory/google-trends-history-review").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 '{}' |
apify call apifmcpfactory/google-trends-history-review --silent --output-dataset

```

## MCP server setup

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

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/23wcAwnlZXCaodsSQ/builds/kQNDl8i6WtgapB1iu/openapi.json
