How to scrape Google Trends data

Last updated · by Sharkinho Tools team

Recipe card

You get: Weekly interest scores, state-level interest and top/rising related queries for any keyword

Time
5 minutes
Difficulty
Easy
Tool
Google Trends Scraper

Ingredients

  • A list of keywords
  • A country (or worldwide)
  • Free Apify account or Python 3 with pytrends

Quick answer: Google Trends has no generally available public API, so you read the JSON endpoints the website uses. For a handful of keywords, the pytrends Python library still works from a home connection. For batches, schedules or anything running on a server, a hosted scraper that handles the 429 rate limits is the less painful route.

We wrote a Google Trends scraper for Apify, so we spend more time than is healthy looking at Trends responses. This page shows what the data looks like, the two ways to get it, and the quirks that will bite you either way. Everything below comes from runs on 22 November 2026 for the keyword air fryer in the US over the past 12 months.

What Google Trends data you can scrape

One run with four outputs gave us 155 rows in 7.9 seconds: 54 weekly points for the timeline, 51 regions (the 50 states plus DC) and 50 related queries (25 top, 25 rising). The related topics block came back empty, which is common right now.

Interest over time (excerpt)

formattedTimevalueisPartial
Nov 16 – 22, 202558false
Dec 28, 2025 – Jan 3, 202670false
Mar 29 – Apr 4, 202677false
Apr 5 – 11, 202690false
Apr 12 – 18, 2026100false
Apr 19 – 25, 202687false
Sep 20 – 26, 202651false
Nov 22 – 28, 202654true

8 of 54 weekly rows. Each row also carries an ISO date, a Unix timestamp and the Google Trends URL it came from.

The spring peak surprised us. We expected Black Friday to win for a kitchen gadget, but mid-April was the top week and November never got above 69. That is the kind of thing you only learn by pulling the numbers.

Interest by region and related queries

RegionvalueTop queryvalueRising querygrowth
Wyoming100air fryer chicken100best air fryer 2026+4,400%
Kansas37ninja58ninja crispi pro 6-in-1 countertop glass air fryer+3,750%
Ohio34ninja air fryer58cosori dual blaze smart air fryer+1,600%
Arkansas34chicken in air fryer57ninja crispi pro air fryer+1,100%
Wisconsin34best air fryer33bella slim air fryer+800%
Pennsylvania34air fryer potatoes29ninja 4-in-1 air fryer pro+650%

Three separate lists side by side to save space. Region, top and rising rows are separate items in the dataset.

Two things in that table deserve suspicion. Wyoming at 100 with the next state at 37 is what small samples look like: a few thousand searches in a small state can swing the ratio. And the rising list we got actually started with six "Breakout" entries that have nothing to do with air fryers: laptop stand, noise cancelling headphones, hotel booking, solar panels, office chair and running shoes. "Standing desk" got yoga for beginners the same way. They show up on automated requests run after run, so we treat them as junk: since build 1.0.4 our scraper drops rising "Breakout" queries that share no word with your term (set dropUnrelatedBreakouts to false if you want Google's raw list). If you scrape Trends yourself, add the same filter, or at least read the rising list before it goes into a report.

Option 1: no code, with our Google Trends Scraper

This is the route we built for people who need more than a few keywords or want it on a schedule. Open Google Trends Scraper, paste the input below into the JSON tab (or fill the form) and press Start.

json
{
  "searchTerms": ["air fryer"],
  "geo": "US",
  "timeRange": "past-12-months",
  "outputs": ["interestOverTime", "interestByRegion", "relatedQueries", "relatedTopics"]
}

What it costs. You pay $0.0015 per data block (one keyword × one output) and $0.0005 per Trending now row. Our run above used three blocks with data, so at list price it costs $0.0045. The empty related topics block is free. A timeline for 1,000 keywords is $1.50.

Option 2: DIY with pytrends

If you need a few keywords once, don't pay anyone. pytrends wraps the same endpoints and still works from a home IP. This is the exact script we ran:

python
from pytrends.request import TrendReq

pytrends = TrendReq(hl="en-US", tz=0)
pytrends.build_payload(["air fryer"], timeframe="today 12-m", geo="US")
print(pytrends.interest_over_time().tail(3))
print(pytrends.related_queries()["air fryer"]["rising"].head(3))

Output on 2026-11-22 (last six lines; the rising list is sorted by growth):

output
...
2026-11-15         62      False
2026-11-22         58       True
                               query  value
0                best air fryer 2026   4300
1                     coffee grinder   3950
2  cosori dual blaze smart air fryer   1550

Then we pushed it. A loop over 20 keywords (timeline plus related queries each) finished in 46 seconds with no errors. A couple of minutes later a single extra call from the same IP failed, and it was still failing when we tried again 12 minutes after that:

output
ok=20 failed=0 in 46s

# a couple of minutes later, one more call from the same IP:
pytrends.exceptions.TooManyRequestsError: The request failed: Google returned a response with code 429

Why the DIY route gets harder as you scale:

We're not going to publish tricks for dodging Google's rate limits. If you go DIY, keep it slow (several seconds between calls), cache what you fetch and accept that some runs will fail.

Which route to pick

Criterionpytrends (DIY)Google Trends ScraperOfficial Trends API
CostFree$0.0015 per keyword × outputFree, if you get access
Good forA few keywords, onceBatches, schedules, serversApproved testers
Rate limitsYours to deal withRetries and session rotation built inQuotas set by Google
MaintenanceNone upstreamWe fix it when Google changes thingsGoogle

Tips from running this every day

FAQ

Is there an official Google Trends API?

Google announced an official Trends API in 2025, but it started as an alpha for a limited group of testers. If you have access, use it. Everyone else is reading the same internal JSON endpoints the trends.google.com website calls, either with pytrends or with a hosted scraper.

Why are Google Trends numbers 0 to 100 instead of search volumes?

Google only publishes relative interest. 100 is the highest point for the terms, place and period you asked for, and every other point is scaled against it. Put up to five terms on one line (for example "coffee, tea") to get them on the same scale.

Does pytrends still work?

For small jobs from a home connection, yes. We ran 20 keywords in 46 seconds on 2026-11-22 without errors, and the next call from the same IP got HTTP 429. The project is no longer maintained, so when Google changes an endpoint nobody ships a fix.

Why are related topics empty?

Google currently returns an empty related topics list for many automated requests, even for popular terms. It happened in our test run too. Related queries are not affected, and our actor does not charge for empty blocks.

Can I get Google Trends data for many keywords at once?

Yes. Each line in searchTerms is a separate keyword or comparison group, and a run accepts up to 5,000 lines. For 1,000 keyword timelines the cost is $1.50 at $0.0015 per data block.

Written by the Sharkinho Tools team. We build and maintain these scrapers, and every table on this page comes from a run we did ourselves. If something here is out of date, the actor's Issues tab on Apify reaches us directly.