Google Trends Scraper: Interest Over Time & Related Queries avatar

Google Trends Scraper: Interest Over Time & Related Queries

Pricing

from $5.00 / 1,000 search term with data

Go to Apify Store
Google Trends Scraper: Interest Over Time & Related Queries

Google Trends Scraper: Interest Over Time & Related Queries

Google Trends data for many search terms at once: interest over time, interest by region, related queries and related topics, in 213 countries or worldwide. Compare up to 5 terms on one scale. No captchas or rate limits.

Pricing

from $5.00 / 1,000 search term with data

Rating

0.0

(0)

Developer

Scrape Lads

Scrape Lads

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Google Trends Scraper gets Google Trends data for a whole list of search terms in one run: interest over time, interest by region, related queries and related topics (top and rising), in 213 countries or worldwide. Compare up to 5 terms on one scale, or look up hundreds of terms each on its own scale.

It doesn't open Google Trends in a browser, so there are no captchas, no "429 Too Many Requests" and no half-empty runs. Results come from a Google Trends data provider and usually arrive within 20 seconds to 2 minutes, however many terms you send.

🔑 Search term📈 Interest over time (0-100)⏱️ Past hour to past 5 years, or any dates since 2004
📊 Average, latest and peak interest🚀 Rising, falling or stable trend🗺️ Interest by state, region or country
🔍 Top related queries🔥 Rising related queries🧩 Top and rising related topics
⚖️ Compare up to 5 terms on one scale🔎 Web, News, YouTube, Images or Shopping search🌍 213 countries or worldwide

Output fields explained

FieldWhat it is
interestOverTimeEvery point of the Google Trends line: date, value 0-100, and whether the latest point is still partial
averageInterest, latestInterest, peakInterest, peakDateThe line summed up in four numbers
trendChangePercent, trendDirectionLast quarter of the period against the first: rising, falling or stable
interestByRegionStates or regions (or countries for Worldwide) ranked by interest
relatedQueriesTop, relatedQueriesRisingWhat people also search for; rising values are % growth
relatedTopicsTop, relatedTopicsRisingRelated Google topics with their type
comparedWithThe other terms on the same scale, when comparing
googleTrendsUrlThe same chart on trends.google.com, to check by eye

How to use it

  1. Add your Search terms, one per line.
  2. Pick a Country (or Worldwide) and a Time range, from the past hour to the past 5 years, or set your own start and end dates back to 2004.
  3. Optional: Compare terms on one scale to see which of up to 5 terms is searched more, a Search type (web, news, YouTube, images or Google Shopping) and a Category code.
  4. Run it and download the results as JSON, CSV or Excel, or read them through the API.

Example input

{
"searchTerms": ["air fryer", "instant pot", "slow cooker"],
"country": "United States",
"timeRange": "past_12_months"
}

Example output (shortened)

{
"keyword": "air fryer",
"status": "ok",
"country": "United Kingdom",
"timeRange": "past_90_days",
"averageInterest": 70.4,
"latestInterest": 86,
"peakInterest": 100,
"peakDate": "2026-11-01",
"trendChangePercent": 4.4,
"trendDirection": "stable",
"interestOverTime": [{ "date": "2026-08-15", "dateTo": "2026-08-15", "value": 61, "partial": false }],
"interestByRegion": [{ "geoId": "GB-WLS", "region": "Wales", "value": 100 }],
"relatedQueriesRising": [{ "query": "philips dual basket air fryer lidl", "value": 17800 }],
"googleTrendsUrl": "https://trends.google.com/trends/explore?hl=en&geo=GB&date=today%203-m&q=air%20fryer"
}

Quick start: copy-paste inputs

Paste one of these into the Input tab (switch it to JSON) and click Start.

Interest over time for a list of terms, past 12 months (US):

{
"searchTerms": ["air fryer", "instant pot", "slow cooker"],
"country": "United States",
"timeRange": "past_12_months"
}

Which term is searched more (compared on one scale, worldwide, 5 years):

{
"searchTerms": ["chatgpt", "gemini", "claude"],
"compareTerms": true,
"country": "Worldwide",
"timeRange": "past_5_years"
}

YouTube search trends for the past 30 days (UK):

{
"searchTerms": ["minecraft", "fortnite"],
"searchType": "youtube",
"country": "United Kingdom",
"timeRange": "past_30_days"
}

Custom date range, interest over time only:

{
"searchTerms": ["black friday"],
"startDate": "2025-10-01",
"endDate": "2025-12-31",
"includeRegions": false,
"includeRelated": false
}

Each term alone, or compared

Google Trends values are relative: 100 is the busiest moment of whatever is on the chart.

  • Each term on its own scale (default): every term gets its own chart, its own regions and its own related queries and topics. Best for trend research over long keyword lists.
  • Compared: terms go in groups of up to 5, in the order you give them, exactly like typing them together into Google Trends. Values then show which term is searched more. Related queries and topics aren't available in this mode.

How much does it cost?

You pay $5 per 1,000 search terms with data ($0.005 each) plus $0.01 per run. Terms Google Trends has no data for, invalid terms and requests that fail are free.

RunCost
10 search terms$0.06
100 search terms$0.51
1,000 search terms$5.01

On the free Apify plan you get 10 full runs a month with up to 5 search terms each; after that, runs that month return a small sample (1 search term). Any paid Apify plan removes the limits.

Good to know

  • Values are Google's own 0-100 index, not search counts. For monthly search volume, use Keyword Search Volume.
  • The latest point of a series is often marked partial: true: Google is still collecting it, and it is left out of the averages.
  • Very rare terms have no Google Trends data. They come back with status: "no_data" and cost nothing.
  • Commas aren't allowed inside a search term (Google Trends uses them to separate terms).

Use cases

  • Content and SEO planning: find seasonal peaks and rising related queries before you write.
  • Product research: compare products or brands and see where demand is growing.
  • Market and regional analysis: see which states or countries search most for a topic.
  • Monitoring: schedule the Actor weekly and track trendDirection for your keywords.

Add this data to your own product without building or maintaining a scraper, for example in SEO and content tools, trend dashboards, product research apps or an AI agent that spots rising topics. Your backend calls the Apify API, the Actor does the scraping, proxies and retries, and you get clean JSON back. You pay per result, so your cost grows with your usage and you can price your own plans on top. It also covers what the official APIs don't: Google Trends has no public API for most developers, and scraping trends.google.com directly runs into 429 errors and captchas.

One request, results back

For small jobs, the synchronous endpoint runs the Actor and returns the dataset rows in the same HTTP response (it waits up to 5 minutes):

curl -X POST "https://api.apify.com/v2/acts/scrape-lads~google-trends-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms":["air fryer","instant pot"],"country":"United States","timeRange":"past_12_months"}'

Get your token under Settings > API & Integrations in Apify Console, and keep it on your server, never in a browser or mobile app.

Python and JavaScript

With the official apify-client package (pip install apify-client or npm install apify-client):

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrape-lads/google-trends-scraper").call(run_input={
"searchTerms": [
"air fryer",
"instant pot"
],
"country": "United States",
"timeRange": "past_12_months"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["interestOverTime"])
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrape-lads/google-trends-scraper').call({
"searchTerms": [
"air fryer",
"instant pot"
],
"country": "United States",
"timeRange": "past_12_months"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => console.log(item.interestOverTime));

The API tab on this page has the same snippets for other languages, with your token filled in.

Long jobs: start a run and get a webhook

For bigger batches, start the run with POST https://api.apify.com/v2/acts/scrape-lads~google-trends-scraper/runs and return right away. Add a webhook for ACTOR.RUN.SUCCEEDED so Apify calls your server when the run ends, then read the rows from https://api.apify.com/v2/datasets/<defaultDatasetId>/items. Add ?format=csv (or xlsx, jsonl) to get another format.

Handling results and failures in your code

Every search term you send comes back as one row (duplicates are merged), so you can match results to your own records by keyword. With compareTerms, rows of the same group list each other in comparedWith. Check status on each row: ok, no_data (Google Trends has no data for the term), invalid_keyword (empty, over 100 characters or containing a comma) or failed (the data service did not answer; run it again). Only ok rows are charged, and error holds a readable reason for the rest.

Cost at volume

$5 per 1,000 search terms with data, plus a $0.01 start fee per run. Send your whole list in one run rather than one run per term: you pay the start fee once and all terms are requested together, so a run of 100 terms takes about as long as a run of one. To cap what one run can spend, pass maxTotalChargeUsd when you start it (for example ?maxTotalChargeUsd=5); the run stops cleanly at that amount. Your Apify plan sets how many runs can go at once.

Use it in n8n, Make, Zapier or Google Sheets

No code needed:

  • n8n: add the Apify node, choose Run an Actor and get dataset, pick scrape-lads/google-trends-scraper and pass the input JSON from above. Send the rows to Google Sheets, Slack or a database node.
  • Make: use the Apify app, module Run an Actor with "Run synchronously" on, then Get Dataset Items.
  • Zapier: use the Apify app, action Run Actor, then Find Last Run Dataset Items.
  • Google Sheets: in Apify Console open Integrations on a saved task and connect Google Sheets, so every run appends its trend rows to a sheet.

A common setup: a daily scheduled task watches your product or brand terms for the past 7 days and posts the rising related queries to Slack, so new demand shows up the day it starts.

Use it with Claude, ChatGPT or Cursor (MCP)

Add this Actor as a tool in Claude, ChatGPT, Cursor, VS Code or any other MCP client. Use this server URL:

https://mcp.apify.com?tools=scrape-lads/google-trends-scraper

Sign in with your Apify account when asked. Then ask your agent in plain words, for example:

Show the Google Trends interest over time and rising related queries for "air fryer" in the US over the past 12 months.

The agent runs this Actor and reads the results for you. Runs are billed to your Apify account at this Actor's prices.

In Claude Code, add it with one command:

$claude mcp add --transport http google-trends-scraper "https://mcp.apify.com?tools=scrape-lads/google-trends-scraper"

FAQ

Is this the same data as trends.google.com?

Yes. Values are Google Trends' own 0-100 index for the same term, place, time range and search type, and every row links to the matching chart on trends.google.com (googleTrendsUrl) so you can compare. Google samples its data, so two lookups of the same chart can differ by a point or two.

Why does a term come back as no_data?

Google Trends only shows terms with enough searches. Very rare terms, typos and very narrow places or time ranges often have no data. Those rows are free.

Can I use it from an AI agent?

Yes. See the MCP section above: Claude, ChatGPT or Cursor can call it with a sentence such as "how has interest in air fryers changed this year?".

Privacy

To see which inputs are useful, this Actor sends anonymous run inputs and a hashed account ID to the developer. When a run fails, is stopped or ends with errors, it also sends a short error message so we can fix problems quickly. Tokens, cookies and proxy settings are never sent. Nothing from your results is collected.