Google Trends History Review

Available for Purchase

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

Open on Apify View MCP connector on Glama
Find Google Trends History Review on AllMCPs
The actual Google Trends History Review report shows 53 weekly periods from 29 December 2024 to 28 December 2025 and explains the relative interest index.
Apify report from the 2025 Ireland Google Trends comparison.

What you can review

Start with one Trends comparison

Open the prepared Explore chart, export the English Interest over time CSV and run a report. In our 2025 Ireland example, solar panels led in 28 weeks and heat pumps in 25. You can also start with the published German district archive.

The German district report ranks Miltenberg first at 100, followed by Erlangen at 99.5 and Heidelberg at 90.3. District codes are shown with leading zeros.
The report ranks districts within Google Trends’ licensed 401-district snapshot. The dataset includes every district and its source score.

See an archive run

Open the animated preview (GIF)

Read the walkthrough transcript

Choose the published German district archive. This is the exact input from the completed Apify run.

Open its HTML report. It covers 401 German districts in one published Google Trends snapshot.

Scroll through the highest reported indices. The dataset contains all 401 districts, including the original codes and scores.

The report credits Google Trends and links to the original archive and CC BY 4.0 licence.

What you pay

US$0.01 per compact report. Apify platform usage is included. Explore link preparation carries no report fee. An extended report costs US$0.07 when it exceeds 800 dataset rows or 1,000,000 combined output bytes. API users can pass maxTotalChargeUsd=0.01 to allow compact reports only, or maxTotalChargeUsd=0.07 to allow either size.

Run and download results with the API

Set APIFY_TOKEN in your shell to your own Apify API token. This example starts a US$0.01 report on the licensed German district archive.

curl --fail-with-body --request POST \
  'https://api.apify.com/v2/actors/apifmcpfactory~google-trends-history-review/runs?maxTotalChargeUsd=0.01' \
  -H "Authorization: Bearer ${APIFY_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data '{"usePublishedRegionArchive":true}'

Open the returned run in Apify and wait for it to finish. The report shows the ten highest scores. The run dataset contains all 401 districts, and OUTPUT contains the JSON summary. Download the dataset as JSON, CSV or Excel. JSON retains nested scores for CSV reviews, and CSV and Excel put each term’s scores in separate columns.

The generated specification shows the input fields. Use the Run Actor endpoint above to pass an explicit charge cap and authenticate with a header.

Read the Apify OpenAPI specification

Prepare a Trends link from an agent

Connect an MCP client to Apify and sign in. Pass the JSON below to call-actor. The cap goes in callOptions. This Explore preparation carries no report fee. Use get-actor-run with the returned run ID to check completion and find defaultKeyValueStoreId. Use that ID and recordKey OUTPUT with get-key-value-store-record to read exploreUrl.

{
  "actor": "apifmcpfactory/google-trends-history-review",
  "input": {
    "prepareExplore": true,
    "exploreTerms": [
      "heat pump",
      "solar panels"
    ],
    "exploreRegion": "IE",
    "exploreFrom": "2025-01-01",
    "exploreThrough": "2025-12-31"
  },
  "callOptions": {
    "maxTotalChargeUsd": 0.01
  }
}

Save this file in a client skill folder named htf-google-trends-history-review.

Download the Agent Skill

Connect to Apify MCP

Download results from a finished run

Set APIFY_TOKEN and pass a finished run ID to the Python or JavaScript example to read the summary and every dataset row. In Postman, send requests individually. The collection labels the one request that starts a paid report.

Python
import json
import os
import re
import sys
from urllib.request import Request, urlopen


def get_json(path):
    request = Request(
        "https://api.apify.com/v2/" + path,
        headers={"Authorization": "Bearer " + os.environ["APIFY_TOKEN"]},
    )
    with urlopen(request, timeout=20) as response:
        return json.load(response)


if not os.environ.get("APIFY_TOKEN") or len(sys.argv) != 2 or not re.fullmatch(r"[A-Za-z0-9]{17}", sys.argv[1]):
    raise SystemExit("Set APIFY_TOKEN and pass the Apify run ID.")

run = get_json(f"actor-runs/{sys.argv[1]}")["data"]
if run["status"] != "SUCCEEDED":
    raise SystemExit(f"Run status is {run['status']}. A completed report is required.")

summary = get_json(f"key-value-stores/{run['defaultKeyValueStoreId']}/records/OUTPUT")
row_count = summary.get("periods", summary.get("districts", summary.get("periodsExported")))
if type(row_count) is not int or not 0 <= row_count <= 4000:
    raise SystemExit("The run summary has an unexpected row count.")

rows = []
for offset in range(0, row_count, 200):
    limit = min(200, row_count - offset)
    page = get_json(f"datasets/{run['defaultDatasetId']}/items?offset={offset}&limit={limit}")
    if len(page) != limit:
        raise SystemExit(f"Dataset returned an incomplete page at offset {offset}.")
    rows.extend(page)

print(json.dumps({"summary": summary, "rows": rows}, indent=2))
JavaScript (Node.js)
const runId = process.argv[2] ?? '';
if (!/^[A-Za-z0-9]{17}$/.test(runId) || !process.env.APIFY_TOKEN) {
    throw new Error('Set APIFY_TOKEN and pass the Apify run ID.');
}

async function getJson(path) {
    const response = await fetch('https://api.apify.com/v2/' + path, {
        headers: { Authorization: 'Bearer ' + process.env.APIFY_TOKEN },
        redirect: 'error',
        signal: AbortSignal.timeout(20_000),
    });
    if (!response.ok) throw new Error('Apify returned HTTP ' + response.status);
    return response.json();
}

const { data: run } = await getJson('actor-runs/' + runId);
if (run.status !== 'SUCCEEDED') {
    throw new Error('Run status is ' + run.status + '. A completed report is required.');
}

const summary = await getJson('key-value-stores/' + run.defaultKeyValueStoreId + '/records/OUTPUT');
const rowCount = summary.periods ?? summary.districts ?? summary.periodsExported;
if (!Number.isInteger(rowCount) || rowCount < 0 || rowCount > 4000) {
    throw new Error('The run summary has an unexpected row count.');
}

const rows = [];
for (let offset = 0; offset < rowCount; offset += 200) {
    const limit = Math.min(200, rowCount - offset);
    const page = await getJson('datasets/' + run.defaultDatasetId + '/items?offset=' + offset + '&limit=' + limit);
    if (page.length !== limit) throw new Error('Dataset returned an incomplete page at offset ' + offset + '.');
    rows.push(...page);
}

console.log(JSON.stringify({ summary, rows }, null, 2));
Postman collection (import as raw text)
{
  "info": {
    "name": "Google Trends History Review",
    "description": "Set APIFY_TOKEN in a private Postman environment. Validate the example first. Select the paid archive run explicitly when you are ready. It has a USD 0.01 charge cap. For saved runs, copy the IDs from the run response into the collection variables.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{APIFY_TOKEN}}", "type": "string" }]
  },
  "variable": [
    { "key": "actor", "value": "apifmcpfactory~google-trends-history-review", "type": "string" },
    { "key": "runId", "value": "", "type": "string" },
    { "key": "storeId", "value": "", "type": "string" },
    { "key": "datasetId", "value": "", "type": "string" },
    { "key": "offset", "value": "0", "type": "string" }
  ],
  "item": [
    {
      "name": "Validate the district archive input",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": { "mode": "raw", "raw": "{\"usePublishedRegionArchive\":true}", "options": { "raw": { "language": "json" } } },
        "url": "https://api.apify.com/v2/actors/{{actor}}/validate-input?build=0.3.5",
        "description": "Checks the input schema without starting an Actor run."
      }
    },
    {
      "name": "Read a finished run",
      "request": {
        "method": "GET",
        "url": "https://api.apify.com/v2/actor-runs/{{runId}}",
        "description": "A successful run has status SUCCEEDED. Copy defaultKeyValueStoreId into storeId and defaultDatasetId into datasetId."
      }
    },
    {
      "name": "Read the JSON summary",
      "request": {
        "method": "GET",
        "url": "https://api.apify.com/v2/key-value-stores/{{storeId}}/records/OUTPUT"
      }
    },
    {
      "name": "Read the next 200 dataset rows",
      "request": {
        "method": "GET",
        "url": "https://api.apify.com/v2/datasets/{{datasetId}}/items?offset={{offset}}&limit=200",
        "description": "Start at offset 0. Increase offset by 200 until the next page is empty or shorter than 200."
      }
    },
    {
      "name": "Start a district archive run (USD 0.01 maximum)",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": { "mode": "raw", "raw": "{\"usePublishedRegionArchive\":true}", "options": { "raw": { "language": "json" } } },
        "url": "https://api.apify.com/v2/actors/{{actor}}/runs?maxTotalChargeUsd=0.01",
        "description": "Starts a billable compact report. Put the returned data.id in runId before reading the result."
      }
    }
  ]
}
Input and output reference

Input fields

prepareExplore
Boolean, off by default. Turn it on to prepare a Google Trends comparison link in a separate run. Leave the CSV, archive and chart citation fields blank.
exploreTerms
List of one to eight distinct search terms. Each may contain up to 100 characters and must not contain a comma.
exploreRegion
Optional two-letter country code such as IE. Leave it blank for worldwide coverage.
exploreFrom
Required for Explore preparation. Enter the first date as YYYY-MM-DD, on or after 2004-01-01.
exploreThrough
Required for Explore preparation. Enter the last date as YYYY-MM-DD, on or after the first date and no later than today in UTC.
usePublishedArchive
Boolean, off by default. Review the bundled monthly Star Wars archive. Leave the CSV, Explore and German district inputs blank.
usePublishedRegionArchive
Boolean, off by default. Review the bundled German district archive. Leave the other archive, CSV and Explore inputs blank.
archiveSeries
Optional list of one to eight distinct, exact source column names. The monthly archive defaults to Luke Skywalker, Leia Organa and Obi-Wan Kenobi.
archiveFrom
Optional first month for the monthly archive, inclusive. Use YYYY-MM. The default is 2004-01.
archiveThrough
Optional last month for the monthly archive, inclusive. Use YYYY-MM. The default is 2019-04.
csv
Paste one English Google Trends Interest over time export in UTF-8. Use up to eight series, 4,000 periods and 750,000 bytes. Leave both saved CSV fields blank.
csvStore
Optional Apify key-value store with read access to a saved CSV. Set this together with csvRecord and leave the pasted CSV blank.
csvRecord
Exact record key for the saved CSV. Use letters, numbers, periods, underscores or hyphens, up to 120 characters. Use it with csvStore.
chartUrl
Optional HTTPS Google Trends Explore URL, up to 2,048 characters. The citation uses the Google Trends homepage if this is omitted.

Run outputs

REPORT.html
Open the report in the run’s key-value store. For CSV and monthly archive reviews it shows peaks, coverage and recent periods. For the German district archive it shows the ten highest scores. Explore preparation gives a chart link and download steps.
OUTPUT
Read the JSON summary in the run’s key-value store. CSV and monthly archive summaries include dates, cadence, peak indexes and comparison counts where available. A missing-period count is null when cadence is unknown. The district summary contains the source dates and top ten districts. Explore preparation returns exploreUrl, terms, dates and an optional region.
Dataset
Download JSON for full structure. CSV and Excel put nested scores into numbered columns. History rows use period as YYYY-MM-DD or YYYY-MM and list scores by series. reported is source text or null and index is a number from 0 to 100 or null. A reported 0 is different from an empty cell or <1. District rows add a five-character text districtCode, the original district code and the numeric and original reported scores. Source attribution travels with every row. Explore preparation produces no dataset rows.
Output field definitions for build 0.3.5

By period — dataset

period
Date text in YYYY-MM-DD or YYYY-MM, as appropriate for the chart’s cadence.
scores
Array containing one score per original series, in source column order.
scores[].series
Original series label as text.
scores[].reported
Original score text, including <1, or null for a blank cell.
scores[].index
Number from 0 to 100. Null means missing or below one.
scores[].state
One of reported, missing or below-one.
source
Source attribution text, Google Trends.
sourceUrl
HTTPS source citation as text.
comparisonKind
Appears as prior-window when a redesigned chart compares two aligned windows.
sourceLicence
Licence text for the bundled monthly archive only.
sourceLicenceUrl
HTTPS licence URL for the bundled monthly archive only.
sourceChangeNote
How the monthly archive’s labels and selected fields were prepared. Present for that archive only.

By period — OUTPUT

source
Source attribution text, Google Trends.
sourceUrl
HTTPS source citation as text.
category
Original category text or null when the source has no category.
cadence
One of daily, weekly, monthly or unspecified.
start
First included period, using the dataset’s date format.
end
Last included period, using the dataset’s date format.
periods
Integer count of included periods.
absentPeriods
Integer count of gaps inside the selected dates or null when cadence is unknown.
series
Array of summaries in source series order.
series[].label
Original series label as text.
series[].peak
Highest numeric index or null when no numeric score was reported.
series[].firstPeakPeriod
First date of the numeric peak, or null when no numeric score was reported.
series[].missing
Integer count of blank source scores.
series[].belowOne
Integer count of values shown as <1.
comparisonKind
Appears as prior-window for aligned redesigned-chart comparison windows.
relativeComparison
Included for a chart with multiple series.
relativeComparison.periodsLed
Array with one entry per series.
relativeComparison.periodsLed[].label
Original series label as text.
relativeComparison.periodsLed[].periods
Integer count of comparable periods this series led alone.
relativeComparison.tiedPeriods
Integer count of comparable periods with more than one highest score.
relativeComparison.incomparablePeriods
Integer count of periods with a missing or below-one score in any series.
relativeComparison.latestComparable
Most recent complete numeric comparison, or null if no period qualified.
relativeComparison.latestComparable.period
Date of the latest comparable period.
relativeComparison.latestComparable.index
Highest numeric index in that period.
relativeComparison.latestComparable.leaders
Array of labels tied at the highest index or the label of the sole leader.
archive
Source metadata included for the monthly archive only.
archive.title
Source archive name as text.
archive.originalCoverage
Date range of the whole monthly source as text.
archive.originalSeriesCount
Integer count of series in the whole source.
archive.sourceBlobSha1
Git blob SHA-1 of the bundled source file.
archive.licence
Source licence text.
archive.licenceUrl
HTTPS source licence URL.
archive.change
Text describing changes to date labels and which original columns and periods were selected.
reportEvents
Integer count of report fees recorded. It can be null while a run is settling its charge.

German districts — dataset and topDistricts entries

districtCode
Five-digit district join code stored as text, with leading zeros.
reportedDistrictCode
Original district code as text.
district
Original district name as text.
index
Reported Google Trends score as a number from 0 to 100.
reported
Exact original score string.
sourceUrl
HTTPS URL of the pinned Google Trends source file.
sourceBlobSha1
Git blob SHA-1 of the bundled file.
attribution
Source attribution text, Google Trends.
licenceUrl
HTTPS source licence URL.

German districts — OUTPUT

kind
Mode identifier, published_regional_archive.
topic
Source search topic as text.
geography
Source geography as text.
from
First date of the published snapshot in YYYY-MM-DD.
through
Last date of the published snapshot in YYYY-MM-DD.
districts
Integer count of district records.
peakIndex
Highest reported numeric index.
topDistricts
Array of the ten highest district records, using the dataset fields. Equal scores sort by district code.
reportEvents
Integer count of report fees recorded. It can be null while a run is settling its charge.
sourceUrl
HTTPS URL of the pinned source file.
sourceBlobSha1
Git blob SHA-1 of the bundled file.
attribution
Source attribution text, Google Trends.
licenceUrl
HTTPS source licence URL.

Explore preparation — OUTPUT

action
Mode identifier, prepare-explore.
terms
Array of search terms in the order entered.
region
Uppercase two-letter country code, or null for worldwide.
from
First selected date in YYYY-MM-DD.
through
Last selected date in YYYY-MM-DD.
exploreUrl
HTTPS link to open and verify the prepared chart in Google Trends.
reportEvents
Integer zero. Link preparation records no report event.
periodsExported
Integer zero. Download the chart in Google Trends before submitting it for review.

Troubleshooting

The CSV has headers but no dates
Open the Interest over time chart and wait until it has data. Download a fresh CSV and start a new review. Related queries, Trending Now and Interest by region use different layouts.
Apify says to select only one archive
Choose either the monthly archive or the German district archive for that run. Clear the other archive fields and leave the CSV and Explore fields blank.
The file exceeds the input limit
Export a shorter date range from a single chart. Keep up to eight series in the same chart and use one UTF-8 CSV of no more than 4,000 periods and 750,000 bytes.
The maximum cost is too low
Use a shorter export to stay within the compact tariff, or set the run maximum to $0.07 if you want the extended report. If the run refused the input before writing a report, no report fee was recorded.
Results from another CSV are already in the run
Start a new run for a changed CSV. Open the finished run’s own dataset and key-value store to match its report and source.
The run stopped while saving dataset rows
If Apify reports a timeout while writing the dataset, use Apify’s Resurrect action on that finished run with the same input. It can reuse rows already saved by that run and continue where the dataset stopped. If the run reports an unconfirmed fee instead, check its charge history and contact support before starting another paid run.
Keep a supplied CSV and its results private
CSV reviews use the run’s Apify dataset and key-value store access settings. In Apify Console, set General resource access to Restricted before supplying a confidential export. Check access before sharing a storage link.

Archive sources and licence

Google Trends published these datasets under CC BY 4.0. When sharing an archive download, keep the source credit, licence and description of changes. For the monthly dataset, share the report or summary alongside the spreadsheet or include the credit and change note below.