Google Trends Scraper: series by term, geo and window, as rows avatar

Google Trends Scraper: series by term, geo and window, as rows

Pricing

from $0.25 / 1,000 results

Go to Apify Store
Google Trends Scraper: series by term, geo and window, as rows

Google Trends Scraper: series by term, geo and window, as rows

Use when asked how interest in a search term is trending on Google. Given countries (e.g. US, GB, DE), every term runs in each of them in one run. Returns flat rows: interest over time (0 to 100) and related queries. Relative interest, not search volumes. Minimal input: {"searchTerms": ["coffee"]}

Pricing

from $0.25 / 1,000 results

Rating

0.0

(0)

Developer

Tallyrake Data

Tallyrake Data

Maintained by Community

Actor stats

0

Bookmarked

561

Total users

36

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Google Trends as Excel-ready rows: interest over time, interest by region, related queries. One flat row per data point, each with a stable id.

This actorOfficial Google Trends actor
Output shapeFlat rows, one per data point, stable idNested timeline arrays
On a Google 429Session rotates and the run continues (observed in our soak runs, see Reliability)Not documented
Failed runs, last 30 days (Apify Store API)126 of 608 (482 succeeded), read 2026-10-225,996 of 21,833 failed or timed out (27%), read 2026-09-09
Empty related topicsZero rows, run succeeds, no result charge for those rowsNot documented

Try it for free

{
"searchTerms": ["coffee"],
"outputs": ["interestOverTime", "relatedQueries"],
"geo": "US",
"timeRange": "today 12-m"
}

Measured on 2026-09-09 (run ef6NeMf4qBi5flDSI): 53 interest-over-time rows and 50 related-query rows, 103 rows. Row counts vary by term and range.

Example output rows

{
"type": "interestOverTime",
"term": "coffee",
"geo": "US",
"timeRange": "today 12-m",
"time": "2025-09-07T00:00:00.000Z",
"formattedTime": "Sep 7 – 13, 2025",
"value": 58,
"isPartial": false,
"fetchedAt": "2026-09-09T06:39:34.060Z",
"id": "b3790555d1acb5d3"
}
{
"type": "relatedQueries",
"term": "coffee",
"list": "top",
"rank": 1,
"query": "coffee shop",
"value": 88,
"formattedValue": "88",
"link": "/trends/explore?q=coffee+shop&date=today+12-m&geo=US",
"fetchedAt": "2026-09-09T06:39:34.060Z",
"id": "172b002ab25dde86"
}

What you get

Every dataset row carries type, term, fetchedAt (ISO timestamp), and a stable id (a hash of the row's type, term, and time/location/query key, so the same logical data point always gets the same id across runs).

interestOverTime

FieldDescription
termThe search term this row belongs to
geoGeo filter used for the request ("" = worldwide)
timeRangeThe time range or custom range used for the request
timeISO 8601 timestamp of the data point
formattedTimeGoogle's human-readable label for the point (e.g. "Sep 7 – 13, 2025")
valueRelative search interest, 0-100
isPartialTrue when Google flags this point as incomplete (usually the most recent point)

interestByRegion

FieldDescription
termThe search term this row belongs to
geoGeo filter used for the request
resolutionCOUNTRY, REGION, CITY, or DMA
geoCodeGoogle's code for the region (e.g. US, US-CA)
geoNameHuman-readable region name
valueRelative search interest in that region, 0-100

relatedQueries

FieldDescription
termThe search term this row belongs to
listtop or rising
rank0-based position within its list
queryThe related search query
valueFor top: 0-100 relative popularity. For rising: percentage growth, capped at 5000 to represent "Breakout"
formattedValueGoogle's display string (e.g. "100" or "Breakout")
linkRelative Google Trends explore URL for that query

What to expect from rising: for broad terms over long ranges Google's own rising list mixes in loosely related breakout queries (for air fryer over 12 months it lists hotel booking and noise cancelling headphones next to ninja crispi pro air fryer). That is what Google serves, identical through residential proxies, not a scraping artifact; the top list is always on-topic. Filter rising rows by shared words with your term if you need a tight list.

relatedTopics (opt-in, best effort)

Same row shape as relatedQueries, with topicTitle, topicType, and topicMid (Google's topic identifier) in place of query.

As of September 2026, Google returns an empty related-topics list to most automated sessions even for mainstream terms, while related queries keep working. The actor requests topics only when you select this output in outputs, reports zero rows without failing the run when Google returns none, and does not charge for rows it did not return.

Time ranges and geo codes

timeRange accepts Google Trends' own presets: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m (default), today 5-y, or all (2004-present). Set customTimeRange to a specific window instead, formatted "YYYY-MM-DD YYYY-MM-DD" : this overrides timeRange when set.

geo takes a two-letter country code (US, GB, DE, ...), a country-region code (US-CA, US-NY, ...), or an empty string for worldwide. Region codes follow Google's own Trends explorer, which follows ISO 3166.

countries (optional) takes a list of the same codes, for example ["US", "GB", "DE"]. One entry works exactly like geo. With two or more, every search term is looked up in every location in one run, and each row's geo field says which location the row came from. When the list has at least one entry, it replaces geo. One term in one location is one lookup. One run takes at most 250 lookups (terms times locations): 20 terms in 6 countries is 120 lookups, while 50 terms in 6 countries is 300 and is refused before any request to Google is sent. Each lookup has its own 0 to 100 scale. With Compare terms on, terms share a scale only with the other terms in the same group of at most five, and only inside one location, so a number is not comparable across locations or across groups. With two or more locations, the status message counts lookups and names any location that did not answer. One location keeps the existing per-term status. Succeeded means at least half the lookups returned; failed means fewer than half, with those rows kept. A run's time grows with its lookups, and so does its row count; the actor's default run timeout is 3600 s.

How results are counted for pricing

Every pushed dataset row (one interest-over-time point, one region, one related query, one related topic) is one result. A single run over N terms and M output types produces roughly N × (points-per-timeseries + regions-per-geo-map + related-queries-found + related-topics-found), which varies by term and how much data Google has for it. Related queries/topics commonly return 0-50 rows per list; interest-by-region at COUNTRY resolution returns around 250 rows (one per country), and narrower resolutions return more.

Recipes

Compare three terms on one scale

Put three products or brands on the same 0-100 axis instead of three separate scales.

{
"searchTerms": ["coffee", "tea", "matcha"],
"compareTerms": true,
"outputs": ["interestOverTime"],
"geo": "US",
"timeRange": "today 12-m"
}

Row count: estimate, roughly 150-160 rows (about 52 weekly points per term over 12 months). No real run at this exact input yet.

US interest plus rising queries as CSV

Pull one term's trend line and what people are searching alongside it, then hand the dataset straight to a spreadsheet.

{
"searchTerms": ["coffee"],
"outputs": ["interestOverTime", "relatedQueries"],
"geo": "US",
"timeRange": "today 12-m"
}

Measured on 2026-09-09 (run ef6NeMf4qBi5flDSI): 53 interest-over-time rows and 50 related-query rows, 103 rows. On the run's Dataset tab, use the Export button and choose CSV. To pull it by URL instead: https://api.apify.com/v2/datasets/<datasetId>/items?format=csv, where <datasetId> is the run's dataset ID from the Console or the API response.

Track these terms every week

Each scheduled run returns the full twelve months again, not only the newest week, so keep one sheet and group by id, keeping the latest copy. The input below pulls only the interest-over-time series for three terms.

{
"searchTerms": ["coffee", "tea", "matcha"],
"compareTerms": false,
"outputs": ["interestOverTime"],
"geo": "US",
"timeRange": "today 12-m"
}

Paste it into the input form, run it once, and check the rows. Then click Save on the input form, open the … menu at the top right of the actor page, choose Schedule Actor, set a weekly frequency with the day and hour you want, and click Create. Save comes first: the schedule runs the saved input, and changes you typed without saving are left out. A schedule made from that menu starts switched on. If you create it from the Schedules page instead, Apify creates it switched off, so open it and switch it on, or no run will start. After the first scheduled day, open the schedule's run list to confirm a run started.

Row count: estimate, about 159 rows per run (3 terms x 53 rows). The 53 is the interest-over-time slice of the measured run ef6NeMf4qBi5flDSI, which was coffee, US, today 12-m; tea and matcha have not been run, and this exact input has not had its own run.

With compareTerms false, each term gets its own scale. Each data point keeps the same id across runs, and the newest point can be marked isPartial. A later run returns that point again as a new row with the same id; the earlier dataset is not changed, so keep the latest copy of each id.

The same terms in six countries, one run

Instead of one run per country, list the countries once. Every term is looked up in every country, so one dataset holds every location's rows, each tagged with geo.

{
"searchTerms": ["coffee", "tea", "matcha"],
"countries": ["US", "GB", "DE", "FR", "JP", "IN"],
"outputs": ["interestOverTime"],
"timeRange": "today 1-m"
}

Each lookup has its own 0 to 100 scale. With Compare terms on, terms share a scale only with the other terms in the same group of at most five, and only inside one location, so a number is not comparable across locations or across groups.

That is 18 lookups (3 terms x 6 countries). Row count: estimate, no real run at this exact input yet; it is the rows of the same terms run once per country, added together.

A shorter window, one term, and paced requests so a rate limit does not end the run.

{
"searchTerms": ["coffee"],
"outputs": ["interestOverTime", "relatedQueries"],
"geo": "US",
"timeRange": "today 3-m",
"pacingMs": 500
}

Row count: estimate, in the range of the 103-row run above. This works because each search term gets its own session that rotates on a real 429 and retries with backoff (up to six attempts, waits doubling from about 1 s, each capped at 45 s). Measured 2026-10-06 on the platform, 15 terms, US, 3 months, concurrency 3: 13 of 101 requests were rate-limited by Google and every one recovered, 15 of 15 terms delivered (2,813 rows).

No Apify Console feature prefills an actor's input from a URL for a stranger to click through (checked docs.apify.com, September 2026); copy the input above into the Input editor by hand.

Advanced options

  • searchTerms accepts 1 to 5 terms per Google Trends comparison; more than 5 are automatically batched into separate comparison calls of up to 5.
  • compareTerms (default off): when enabled, all search terms in a comparison are sent together so their values are relative to each other (one term is the 0-100 anchor). Off by default, each term is scored independently on its own 0-100 scale.
  • maxConcurrency (default 2, max 3): how many search terms are processed in parallel. Higher values finish faster but raise the chance of Google 429s.
  • requestsPerSession (default 8): reuse a Trends session for this many successful requests, then rotate. A session still rotates immediately on a real 429, regardless of this setting.
  • proxyConfiguration (default: Apify Proxy on): Google Trends rate-limits by IP. Using Apify Proxy is strongly recommended for any run beyond a couple of terms.
  • category, searchType, and regionResolution narrow the request to a Google Trends category, search vertical (web/images/news/YouTube/Shopping), and region granularity.
  • fetchMode is http by default. browser is the fallback described under Fallback mode. Leave it on http unless HTTP runs start failing.

Two symptoms bring people here.

Related queries come back empty. google-trends-api's own issue tracker reports an empty rankedList for related queries (issue 174, open since 2025-02-19), and pytrends has been archived since August 2024, so neither library will be fixed upstream. The current widget protocol (an explore call, then a per-widget token, then the relatedsearches call) still returns data. This actor uses the current protocol; the relatedQueries rows in the example above came from a real run on 2026-09-09. Related topics are different: Google returns an empty list to automated sessions for that widget, so it is opt-in.

HTTP 429 (too many requests). Two 429s get mixed up. The first request to trends.google.com/trends/explore always answers 429 while it sets the NID cookie; that one is harmless if the cookie is kept. The real rate limit hits the /trends/api/ calls when one IP or session makes too many requests in a short window. This actor keeps a session, rotates it on a real 429, retries with backoff, and continues with the other terms; a run fails only if every term fails. Measured on the Apify platform with datacenter proxy, one run each (our own soak log, not combined): on 2026-09-09, version 0.1.2, 7 of 28 requests were real 429s, every one recovered by rotation, and 3 of 3 terms delivered; on 2026-10-06, the 0.1.20 beta, 15 terms, US, 3 months, 13 of 101 requests were real 429s, 15 of 15 terms delivered, and the partial-rows path was not needed. As of the Apify Store API read on 2026-10-22 03:35Z, the 30-day run counter for this actor (publicActorRunStats30Days) was 482 succeeded, 126 failed, 608 total.

Reliability

If one optional slice (regions, related queries, related topics) is still blocked after retries, the run keeps the rows that landed, succeeds, and names the terms and the missing slice in its status message instead of failing (since 0.1.20). residentialForRelated (off by default) fetches the related slices through residential proxy identities when a set of terms keeps hitting that limit.

Sessions rotate automatically on a Google 429 response and retry with exponential backoff with jitter (waits double from about 1 s and are capped at 45 s, up to 6 attempts). If a search term still fails after all retries, that term's failure is logged and the run continues with the remaining terms; the run fails outright only if every term fails.

Fallback mode

fetchMode defaults to http. That is the path the rest of this README describes, and it is unchanged.

Set fetchMode to browser only if Google changes the widget protocol or starts answering plain HTTP clients with a JavaScript challenge. Browser mode opens one headless Chromium page per term (or per compare-group of up to 5) at https://trends.google.com/trends/explore?q=<terms>&geo=<geo>&date=<range>&hl=en. It accepts the Google consent page when that page is shown, then reads the JSON the page itself requests from /trends/api/explore and /trends/api/widgetdata/*. Those bodies go through the same parsers as HTTP mode, so the dataset rows have the same fields and the same stable id.

The first response from the explore document is often HTTP 429. That response sets the NID cookie (the same handshake the HTTP client already counts separately from real rate limits). Browser mode reloads the page once after that 429. A page that still never yields an explore response fails that term after retries. A term whose optional slice (regions, related queries, related topics) is missing from the page traffic keeps the rows that did parse, and the run still succeeds. The run fails only when every term fails. The cost-limit guard is the same one HTTP mode uses.

Give a browser run at least 2 GB of memory. A browser run with less than 2048 MB of memory runs in HTTP mode instead, and its status message says so. The actor does not raise its minimum memory, so HTTP runs are not forced onto that size. requestsPerSession and residentialForRelated are HTTP-mode knobs: the browser loads every widget on one page through proxyConfiguration, and each term gets a fresh browser session. regionResolution does not drive the map. Rows are labeled with the resolution on the captured map request, which is the granularity the explore page chose for that geo (for a US page, that is the state map).

Browser mode loads one page per term whether or not it yields rows, so it is slower and heavier than HTTP mode. The listing's billing terms apply in both modes.

Limitations

  • Google Trends values are relative, not absolute: 100 marks the peak popularity for the selected term, time range, and geo : not a fixed volume of searches.
  • With compareTerms enabled, all terms in that comparison share one 0-100 scale relative to whichever term peaks highest; with it disabled (default), each term is scored independently and values are not comparable across terms.
  • Google does not guarantee availability or consistency of historical data, and can change or withdraw related queries/topics for a given term with no notice.
  • Very low-volume terms may return empty or partial results, particularly for interestByRegion.
  • relatedTopics is frequently empty for automated sessions (see above); rely on relatedQueries for keyword expansion.

Support

Questions or problems: open an issue on the Issues tab of this listing.

Reviews

If you have run this Actor, a review on its Store page helps the next person decide, and a low score with a reason is as welcome as a high one. Write it in your own words. Nothing is offered in return, and a review changes nothing about the support you get.

What one run costs

The Pricing tab on this page shows the current rate. Row counts vary by term and range, so run one small input first and read the real count before you scale up.

If you set "Maximum total charge per run", the run stops in process when it reaches it. It ends SUCCEEDED and the status message starts with: "Stopped at this run's cost limit ($X.XX): N rows delivered, M more found. Raise "Maximum total charge per run" and run again for the rest."

Cost limit

If a run reaches the "Maximum total charge per run" you set, it stops in process rather than being aborted by the platform: the run ends with status SUCCEEDED, and the run status message on the run detail says how many rows were written and how many were found but not written. Re-running the same input writes the same prefix again, so raise the cap before re-running if you want the rest.