Google Trends Scraper
Pricing
from $2.40 / 1,000 search term results
Google Trends Scraper
Get Google Trends interest over time, by region, city and metro, related queries and trending searches. 20% cheaper than the leading Google Trends scraper on Free to Gold plans; pay only for data.
Pricing
from $2.40 / 1,000 search term results
Rating
0.0
(0)
Developer
krammer liu
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 minutes ago
Last modified
Categories
Features
Share
Get Google Trends data for search terms (interest over time, interest by region, city and metro, related queries) or today's trending searches. The price is 20% cheaper than the leading Google Trends scraper on Free to Gold plans. You pay only for terms that return data. Failed terms and terms with no data are free.
Built for pytrends users, SEO and content teams, and AI agents (MCP). Use it as a pytrends alternative or a Google Trends API alternative for keyword trends, interest by region and trending searches.
Pricing
Pay per event. No monthly fee.
| Event | Charged when | Price (depends on your Apify plan) |
|---|---|---|
| Search term result | One search term, or one comparison group, returned data | $0.0048 (Free), $0.004 (Bronze), $0.0032 (Silver), $0.0024 (Gold and higher plans) |
| Trending country | One country in trending mode returned at least one trending search | $0.022 for all plans |
Free Apify plans can use up to $1.00 of this Actor each month. Paid plans have no monthly limit.
Quick start
Open the Actor in Apify Console, paste one of these inputs and click Start.
One search term, United States, past 3 months:
{"searchTerms": ["python"],"geo": "US","timeRange": "today 3-m"}
Compare terms. With isMultiple each entry is split on commas into one comparison group (up to 5 terms). It costs one search term result per group:
{"searchTerms": ["python,java"],"isMultiple": true,"geo": "US","timeRange": "today 3-m"}
Today's trending searches:
{"mode": "trending","trendingGeos": ["US"]}
Input
| Field | What it does |
|---|---|
mode | keyword (default) or trending |
searchTerms | Terms to look up |
isMultiple | true: each entry is split on commas into one comparison group (up to 5 terms) |
startUrls | Google Trends explore URLs. The q, geo, date, cat and gprop parameters override the form |
timeRange | now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 5-y, all. Empty = past 12 months |
customTimeRange | YYYY-MM-DD YYYY-MM-DD. Overrides timeRange |
geo | Two-letter country code such as US, or region such as US-CA. Empty = worldwide |
viewedFrom | Only US or empty is supported |
category | Google Trends category ID. 0 = all |
property | news, images, youtube, froogle. Empty = web search |
maxItems | Process only the first N items. 0 = no limit |
trendingGeos | Countries for trending mode (two-letter codes) |
Output
Keyword mode: one item per search term or comparison group, with the same fields as the leading Google Trends scraper.
inputUrlOrTerm,searchTerminterestOverTime_timelineData,interestOverTime_averagesinterestBySubregion,interestByCity,interestByMetro(metro areas: US queries only),interestBy(worldwide queries: by country)relatedQueries_top,relatedQueries_risingrelatedTopics_top,relatedTopics_rising(always empty, see Limits)
[] means this kind of data does not exist for the query (for example metro areas outside the US). null means the data should exist but Google did not return it. The run status message names the fields that were null.
Trending mode: one item per trending search with geo, title, approxTraffic, pubDate, picture, pictureSource and news (title, url, source, picture, snippet).
Example item (keyword mode, python, US, today 3-m; arrays cut to one or two entries):
{"inputUrlOrTerm": "python","searchTerm": "python","interestOverTime_timelineData": [{"time": "1786838400", "formattedTime": "Aug 16, 2026", "formattedAxisTime": "Aug 16", "value": [44], "hasData": [true], "formattedValue": ["44"]},{"time": "1786924800", "formattedTime": "Aug 17, 2026", "formattedAxisTime": "Aug 17", "value": [57], "hasData": [true], "formattedValue": ["57"]}],"interestOverTime_averages": [],"interestBySubregion": [{"geoCode": "US-KS", "geoName": "Kansas", "value": [100], "formattedValue": ["100"], "maxValueIndex": 0, "hasData": [true]}],"interestByCity": [{"coordinates": {"lat": 38.3312379, "lng": -77.0510857}, "geoName": "Dahlgren", "value": [0], "formattedValue": [""], "maxValueIndex": 0, "hasData": [false]}],"interestByMetro": [{"geoCode": "582", "geoName": "Lafayette IN", "value": [100], "formattedValue": ["100"], "maxValueIndex": 0, "hasData": [true]}],"relatedTopics_top": [],"relatedTopics_rising": [],"relatedQueries_top": [{"query": "what is python", "value": 100, "formattedValue": "100", "hasData": true, "link": "/trends/explore?q=what+is+python&date=today+3-m&geo=US"},{"query": "ball python", "value": 78, "formattedValue": "78", "hasData": true, "link": "/trends/explore?q=ball+python&date=today+3-m&geo=US"}],"relatedQueries_rising": [{"query": "best time to visit maldives", "value": 6350, "formattedValue": "Breakout", "link": "/trends/explore?q=best+time+to+visit+maldives&date=today+3-m&geo=US"}],"interestBy": []}
Example item (trending mode, US; one of 10 items, news cut to one entry):
{"geo": "US","title": "golden knights","approxTraffic": "500+","pubDate": "Sun, 15 Nov 2026 19:00:00 -0800","picture": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQcPGooAaShpdcyUb3pOhdThjQadoDBlGYOD78EaQQv6jSOb0I_PGDHUWgnbtA","pictureSource": "CBS Sports","news": [{"title": "Golden Knights' Carter Hart: Between pipes against Vancouver", "url": "https://www.cbssports.com/fantasy/hockey/news/golden-knights-carter-hart-between-pipes-against-vancouver/", "source": "CBS Sports", "picture": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQcPGooAaShpdcyUb3pOhdThjQadoDBlGYOD78EaQQv6jSOb0I_PGDHUWgnbtA", "snippet": ""}]}
You can export the dataset from Apify as CSV, JSON or Excel.
Use it as an API or MCP tool
Call the Actor over the Apify API. This request waits for the run and returns the dataset items:
curl -X POST "https://api.apify.com/v2/acts/krammer~google-trends-scraper/run-sync-get-dataset-items" \-H "Authorization: Bearer $APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"searchTerms": ["python"], "geo": "US", "timeRange": "today 3-m"}'
AI agents such as Claude and Cursor can call this Actor as a tool through the Apify MCP server. Use it to get keyword trends inside an agent workflow.
Replacing pytrends
| pytrends | This Actor |
|---|---|
build_payload(kw_list=[...], geo=, timeframe=, cat=, gprop=) | searchTerms, geo, timeRange or customTimeRange, category, property |
interest_over_time() | interestOverTime_timelineData |
interest_by_region() | interestBySubregion (with geo), interestBy (worldwide), interestByCity, interestByMetro |
related_queries() | relatedQueries_top, relatedQueries_rising |
trending_searches() / realtime_trending_searches() | mode = trending with trendingGeos |
Python example with apify-client and pandas:
import pandas as pdfrom apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("krammer/google-trends-scraper").call(run_input={"searchTerms": ["python"], "geo": "US", "timeRange": "today 3-m"})item = next(iter(client.dataset(run.default_dataset_id).iterate_items()))df = pd.DataFrame([{"date": p["formattedTime"], "interest": p["value"][0]}for p in item["interestOverTime_timelineData"]])print(df.tail())
Switching from the leading Google Trends scraper
- Input field names and output field names are the same, so you can switch without changing your code.
- Not supported:
spreadsheetId(put the terms insearchTermsinstead).viewedFromsupports only US. - Related topics are not provided. The fields
relatedTopics_topandrelatedTopics_risingare kept as empty arrays so existing code keeps working. - For a comparison group, related queries come from the first term in the group (the same as the leading scraper).
Limits
- Related topics are not available. The fields stay in the output as empty arrays so that the item shape matches other scrapers.
viewedFromsupports only US.- Free plan: $1.00 per month.
- Each search term takes about 8 seconds. The default run timeout is 300 seconds, which is about 30 terms. Raise the run timeout for more terms. When time runs out the Actor stops before sending the next request, delivers what it has, and charges only for delivered items.
- One run handles at most 1,000 items.
More data than the leading scraper
- Worldwide queries (
geoempty) also returninterestByCity(about 200 cities). The leading scraper returns an empty array there. - Trending searches mode.
propertyfor news, image, YouTube and shopping search.
FAQ
Is this a Google Trends API? It is not the official Google API. It returns the same data as the Google Trends website, as JSON, through the Apify API.
Is it a SerpApi Google Trends alternative? Yes. You pay per search term. There is no monthly fee.
What happens when Google limits requests? The run stops. Items that were not processed are not charged. Try again in about 10 minutes.
Why are some fields null?
null means Google did not return that data. [] means that kind of data does not exist for the query, for example states for a worldwide query.
How many terms per run? Each term takes about 8 seconds. The default timeout of 300 seconds fits about 30 terms. Raise the run timeout for more.