Google Trends Scraper: Interest, Regions & Related Queries avatar

Google Trends Scraper: Interest, Regions & Related Queries

Pricing

from $3.00 / 1,000 search terms

Go to Apify Store
Google Trends Scraper: Interest, Regions & Related Queries

Google Trends Scraper: Interest, Regions & Related Queries

Get Google Trends data for any keyword, country and time range: interest over time, interest by region or metro, related and rising queries, side-by-side comparisons of up to 5 terms, and today's trending searches with news. Fast, reliable, pay per search term.

Pricing

from $3.00 / 1,000 search terms

Rating

0.0

(0)

Developer

Kasbah Data

Kasbah Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Categories

Features

Limited permissions

Share

Get Google Trends data for any keyword, country and time range, as clean JSON you can drop into a spreadsheet, a dashboard or an AI agent:

  • Interest over time: the 0–100 timeline Google Trends shows, from the past hour up to 2004–present, plus each term's average and peak.
  • Interest by region: per country (worldwide), or per state/region or metro area inside a country.
  • Related queries: top and rising searches, with growth such as +250% or Breakout.
  • Comparisons: up to 5 terms on the same scale, exactly like the Trends website.
  • Trending now: today's trending searches in any country, with approximate search volume, start time and the news articles behind them.

Works for web, image, news, YouTube and Google Shopping search, any category, and any language.

Why this one

  • Reliable. It handles Google's session cookies and rate limits for you, rotating IPs and retrying automatically, so runs don't die on "429 Too Many Requests".
  • Fast. Dozens of terms per minute.
  • One clean item per term. Timeline, regions and related queries for a term come together, with no stitching across datasets.
  • Pay only for what you get. Failed terms are never charged.

Input

FieldDescription
Search termsOne per line. Put up to 5 on one line, separated by commas, to compare them: python, javascript, rust.
Country or regionUS, GB, FR, MA… or a sub-region like US-CA. Empty = worldwide.
Time rangePast hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months, 5 years, or 2004–present.
Custom time rangeAny period, e.g. 2024-01-01 2024-12-31.
Search typeWeb, images, news, YouTube or Google Shopping.
Category IDNarrow a term's meaning, e.g. 71 Food & Drink, 5 Computers & Electronics.
Interest over time / by region / related queriesTurn each part on or off.
Region breakdownRegions/states or metro areas (US DMAs, French départements…).
Trending now: countriesAlso collect today's trending searches for these countries.
LanguageLanguage of Google's labels and region names (en-US, fr, ar…).

Output

One item per search term (or comparison). Example, shortened:

{
"type": "comparison",
"searchTerms": ["python", "javascript"],
"geo": "US",
"timeRange": "today 12-m",
"googleTrendsUrl": "https://trends.google.com/trends/explore?q=python%2Cjavascript&date=today+12-m&geo=US&hl=en-US",
"interestOverTime": [
{ "date": "2025-11-02T00:00:00Z", "formattedTime": "Nov 2 – 8, 2025", "values": { "python": 67, "javascript": 10 }, "isPartial": false }
],
"averageInterest": { "python": 61, "javascript": 9 },
"peak": { "python": { "date": "2026-06-14T00:00:00Z", "formattedTime": "Jun 14 – 20, 2026", "value": 100 } },
"interestByRegion": [
{ "geoCode": "US-KS", "geoName": "Kansas", "values": { "python": 84, "javascript": 16 } }
],
"regionResolution": "REGION",
"relatedQueries": {
"python": {
"top": [{ "query": "what is python", "value": 100, "trendsUrl": "https://trends.google.com/trends/explore?q=what+is+python..." }],
"rising": [{ "query": "python swallowing deer india", "value": 5000, "growth": "Breakout", "trendsUrl": "..." }]
}
},
"scrapedAt": "2026-11-07T19:10:00Z"
}

Trending searches come as separate items:

{
"type": "trendingSearch",
"geo": "US",
"rank": 1,
"title": "dana white",
"approxTraffic": "500+",
"approxTrafficMin": 500,
"startedAt": "2026-11-07T18:40:00Z",
"news": [{ "title": "...", "url": "https://...", "source": "Yahoo Sports" }]
}

Values are Google's relative interest (0–100, where 100 is the peak within your selection), not absolute search volumes. The dataset has two ready-made views, Search terms and Trending now, and exports to JSON, CSV, Excel and more.

Use it from your code

Use it as a Google Trends API, a maintained pytrends alternative that handles the cookies and 429 rate limits for you:

Python (pip install apify-client)

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("kasbahdata/google-trends-scraper").call(run_input={
"searchTerms": [
"python, javascript"
],
"geo": "US",
"timeRange": "today 12-m"
})
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)

JavaScript (npm install apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('kasbahdata/google-trends-scraper').call({
"searchTerms": [
"python, javascript"
],
"geo": "US",
"timeRange": "today 12-m"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

HTTP (one request, waits for the results)

curl -X POST "https://api.apify.com/v2/acts/kasbahdata~google-trends-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["python, javascript"], "geo": "US", "timeRange": "today 12-m"}'

Your token is under Settings → API & Integrations in Apify Console. The Actor also works in Make, Zapier, n8n and from AI agents through the Apify MCP server.

Pricing

Pay per event, no subscription:

EventPrice
Search term (timeline + regions + related queries)$0.003 ($3 per 1,000 terms)
Trending search$0.0005 ($0.50 per 1,000)
Actor start$0.00005 per run (Apify default)

A comparison of 3 terms counts as 3 search terms. Terms that fail are not charged. Set a maximum cost per run and the Actor stops cleanly when it's reached.

Good to know

  • Related topics are not included: Google currently returns them empty through its API.
  • City-level breakdown is no longer offered by Google; use metro areas instead.
  • Very rare terms may have no data for short time ranges or small countries; you'll get empty arrays, not an error.

FAQ

Do I need proxies or a Google account? No. Everything runs on Apify; the default Apify Proxy works well.

Can I track terms over time? Yes. Schedule the Actor daily or weekly in Apify and compare runs.

Can I use it from AI agents? Yes. It works with the Apify MCP server, LangChain, Make, Zapier and n8n through Apify's integrations.

Questions or a missing feature? Open an issue on the Issues tab. I usually reply within a day. If the Actor saved you time, a short review on the Actor page helps other people find it.