Google Trends Scraper & API avatar

Google Trends Scraper & API

Pricing

from $2.00 / 1,000 keywords

Go to Apify Store
Google Trends Scraper & API

Google Trends Scraper & API

Get Google Trends data for hundreds of keywords: interest over time, related queries, regions and trending searches, plus real Wikipedia page views. No time-outs; pay only for data delivered.

Pricing

from $2.00 / 1,000 keywords

Rating

0.0

(0)

Developer

Cass

Cass

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

20 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Google Trends data for hundreds of keywords in one run: interest over time, related queries (top, rising, breakout), regions, trending searches, plus real numbers next to Trends' relative 0–100 scale: Wikipedia pageviews and autocomplete suggestions, and optional news coverage with your own NewsData.io key. Plain HTTP, no browser. It never times out, and you pay only for data delivered.

Daily self-test: 11 field-level checks on 10 fixed keywords every morning. Last pass: 2026-11-02 (11/11 checks on both golden runs).

What you get

One row per keyword, summary fields first (real output, series trimmed):

{
"keyword": "coffee",
"geo": "US",
"timeframe": "past-12-months",
"status": "ok",
"latestValue": 69,
"average": 79.02,
"changePct": 3.8,
"peakDate": "2026-04-05",
"isBreakout": false,
"timeline": [
{ "date": "2026-10-11", "value": 71, "isPartial": false },
{ "date": "2026-10-18", "value": 69, "isPartial": false },
{ "date": "2026-10-25", "value": 63, "isPartial": true }
],
"relatedQueries": {
"top": [{ "query": "coffee near me", "value": 100 }, { "query": "coffee shop", "value": 86 }],
"rising": [{ "query": "pet care tips", "value": 6100, "growth": "Breakout", "isBreakout": true }]
},
"wikipedia": { "article": "Coffee", "matchConfidence": "search-top-hit", "totalViews": 687268, "dailyViews": [{ "date": "2026-10-30", "views": 1973 }] },
"scale": { "anchorTerm": "coffee", "factor": 1, "precision": "exact" },
"fetchedAt": "2026-10-31T09:53:12.111Z"
}
  • Summary fields:
    • latestValue is the last complete point.
    • changePct compares the mean of the last quarter of the period with the first quarter.
    • isBreakout is true for growth over 5000%, Trends' own breakout rule.
  • Prefer a spreadsheet? Set rowShape: "keywordDate" for one flat row per keyword and date, with related queries, regions, suggestions and news as their own rows.
  • Every row carries: status (ok / partial / incomplete / error), a one-sentence error when something's missing, scale, and fetchedAt.

Sections (each billed only when delivered)

SectionWhat it adds
Interest over timeAlways included. Any timeframe: past hour to 2004–now, or a custom range
relatedQueriesTop and rising queries, with the breakout flag
regionsCountries, subregions, metro areas or cities, top first (regionResolution; automatic picks the level below your region)
wikipediaPageviewsDaily views of the matching article. Trends topic IDs (/m/…) match exactly through Wikidata
newsWith your own NewsData.io key: a free key gives the latest articles (48 h); paid plans add daily news volume and a spike explainer (top articles for each Trends peak, plus that day's Wikipedia views). You pay NewsData directly; the key is never logged or saved
suggestionsUp to 10 Google and/or YouTube autocomplete suggestions

Trending now: set trendingCountries (e.g. ["US", "IN"]) for currently trending searches with volume, increase, related queries, categories and an explore link. Optionally add recent news articles with images (with your NewsData.io key; a free key works). You can use it alone or alongside keywords.

Why this one

  • Never times out. The actor watches its own deadline and stops early. Keywords it didn't reach come back as incomplete rows, which aren't charged, and the run still succeeds.
  • No platform fees on top. You pay per delivered result, nothing else. Error rows and incomplete rows are free.
  • Handles blocks itself. It warms each session, paces requests, retires blocked sessions, and switches to residential IPs when Google blocks datacenter ranges (on by default, no extra charge to you). A circuit breaker stops runs that can't succeed, instead of burning your budget.
  • Fails loudly. Empty data becomes an error row with a reason, never a silent empty success.
  • More than Trends: absolute Wikipedia views and autocomplete in the same row, plus news when you bring a NewsData.io key.
  • Many keywords on one scale (scale: "shared"): overlapping 5-term comparisons, chained. Every row says exact or chained, and low-precision points are flagged.
  • Survives server migrations: progress is saved and resumed.

The input most people need

{
"keywords": ["coffee", "tea", "matcha"],
"geo": ["US"],
"timeframe": "past-12-months"
}

That's it. Related queries and Wikipedia pageviews are on by default. Other inputs:

  • trendsUrls: paste Google Trends explore URLs. Region, timeframe, search type and category are read from each URL.
  • searchType: web, images, news, YouTube or Shopping.
  • category: a Trends category ID.
  • sections: pick the extra data.

Pricing

Pay per event: you're charged only for what's delivered.

EventPrice (Free tier)When
apify-actor-start$0.001Once per run (per GB of memory; the default 256 MB counts once)
keyword-timeline$0.002Per keyword × region delivered
related-queries$0.001Delivered and not empty
regions$0.001Delivered and not empty
wikipedia-views$0.0005Article matched and views returned
news-coverage$0.0005News delivered from your NewsData.io key (NewsData's own fees are yours)
suggestions$0.0005Per source (Google / YouTube) delivered
trending-item$0.0005Per trending search returned
date-rows$0.001Per started 100 rows, keywordDate shape only

Higher Apify plans pay less (Silver about 20% off, Gold about 40% off).

Worked examples (Free tier):

  • 100 keywords, timeline + related queries: $0.001 + 100 × ($0.002 + $0.001) = $0.30.
  • One full report (timeline, related queries, regions, Wikipedia, Google suggestions): $0.001 + $0.002 + $0.001 + $0.001 + $0.0005 + $0.0005 = $0.006 (+ $0.0005 with news from your NewsData.io key).
  • Trending now, 25 items for one country: $0.001 + 25 × $0.0005 = $0.0135.

Set Maximum cost per run in the run options: the actor checks it before every keyword and never fetches data it can't bill.

Use it from Claude, Cursor or ChatGPT (MCP)

Apify's MCP server exposes this actor as a tool, so an AI agent can call it directly.

  • Hosted: add the MCP server https://mcp.apify.com/?actors=messy_tangerine/google-trends in your client and sign in with Apify.
  • Local (Claude Desktop, Cursor):
{
"mcpServers": {
"apify": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server", "--actors", "messy_tangerine/google-trends"],
"env": { "APIFY_TOKEN": "<your token>" }
}
}
}

Faster single lookups (Standby): GET https://messy-tangerine--google-trends.apify.actor/?keyword=coffee&geo=US&timeframe=past-90-days with your Apify token as a Bearer header returns one row as JSON. It answers in about 5 seconds; the first call after a quiet period takes 15–20 s while the container starts.

Agents do well with short inputs: {"keywords": ["…"], "geo": ["US"], "timeframe": "past-90-days"}. Every input field has a one-line description with an example, which agents read.

FAQ

Why do my numbers differ a little from the Trends website? Google samples Trends data, so values can shift a few points between pulls on different days. Pulls of the same query on the same day matched exactly in our tests (530 of 530 points from two different IPs). Compare same-day pulls, and use fetchedAt.

Can I compare more than 5 terms? Trends compares at most 5 at once. With scale: "shared", the actor ranks your keywords, then chains overlapping 5-term groups through a shared bridge term. Rows say precision: "chained". A 20-keyword ranking came out identical in two same-day runs.

How precise are chained values? Trends rounds to whole numbers within each comparison. A value of 3 can mean anything from 2.5 to 3.5 (±17%), and chaining carries that rounding forward. Points under 5 in their group get lowPrecision: true. Keywords far apart in volume (e.g. "weather" vs a niche term) are the least precise. For the most precise numbers, put up to 5 terms in one Trends URL: that's a direct comparison, precision: "exact".

Is this legal? Where does the data come from? The actor reads public Google Trends pages over plain HTTP, the same data the website shows. It doesn't log in and doesn't bypass any paywall. Add-on data comes from public APIs: Wikimedia (pageviews, Wikidata) and Google autocomplete; news comes from NewsData.io under your own key and their terms. You're responsible for how you use the data. If in doubt about your use case, ask your lawyer.

How do I schedule it? Save your input as an Apify task, then add a schedule (for example, daily at 06:00 in your time zone) in Apify Console → Schedules. Each run's dataset is kept, so you build a history. Use webhooks or integrations to push results to Sheets, Slack or your database.

What about related topics? Not offered. Google returns related topics empty for sessions that aren't logged in (we checked 11 query variants), and we don't sell what we can't deliver.

Known limits

LimitHow we handle it
Google samples Trends data; values can shift a few points between daysfetchedAt on every row; compare same-day pulls
No absolute search volume (Trends is relative 0–100)Wikipedia pageviews give a real number next to it
Chained scales lose precision for small termsprecision field, lowPrecision flags; up to 5 terms per URL stay exact
Related topics are empty for logged-out sessionsNot offered
Google sometimes blocks whole datacenter IP rangesAutomatic residential fallback (default on); circuit breaker; error rows say so
Unofficial endpoints can changeDaily self-test, fixes within 24 hours
News needs your own NewsData.io key; a free key covers only the last 48 hoursRows say so (access: "latest"); paid plans add daily volume (last 50 days of your range) and spike articles back to their archive depth
City-level regions are sparse (e.g. 46 of 200 US cities had data for "coffee"; none for Maharashtra)Cities without data are dropped; an empty list is partial with a reason, not charged
Wikipedia matching for plain text uses title searchmatchConfidence says how sure the match is; set wikipediaLanguage for non-English keywords; use topic IDs for exact matches

Data credits

  • Google Trends (trends.google.com): search interest data.
  • Wikimedia: pageviews (Wikimedia REST API) and Wikidata (CC0). Wikipedia is a trademark of the Wikimedia Foundation; this actor isn't affiliated with it.
  • NewsData.io: news articles and counts, fetched with your own API key under NewsData's terms. Rows with news carry an attribution field.

Changelog

See CHANGELOG.md.