Google Trends Scraper & API - pytrends Alternative, $4.80/1K
Pricing
from $2.40 / 1,000 search term results
Google Trends Scraper & API - pytrends Alternative, $4.80/1K
pytrends alternative: a Google Trends API for Python and no-code. Get interest over time, by region, city and metro, related queries and trending searches as JSON. 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
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
Share
$4.80 per 1,000 search terms ($0.0048 each) on the Free plan. Paid plans are cheaper: $2.40 per 1,000 terms on Gold and higher plans. A trending country costs $0.022 on all plans.
Get Google Trends data for search terms (interest over time, interest by region 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.
Side-by-side test (2026-11-27)
The same input, run on the same day: searchTerms ["python","bitcoin","taylor swift"], geo US, timeRange empty (past 12 months).
| This Actor | apify/google-trends-scraper | |
|---|---|---|
| Run time, 3 terms | 54 s (run bdWEYAEO6lGCevE7n) | 43 s (run Nmb6xdHo4qS5EBB6C) |
| Dataset items | 3 | 3 |
| Interest over time points | 53 per term | 53 per term |
| Regions (states) | 51 per term | 51 per term |
| Cities | 200 per term | 200 per term |
| Metro areas | 210 per term | 210 per term |
| Related queries (top / rising) | 25 / 25 per term | 25 / 25 per term |
| Related topics | empty array | empty array |
| Free plan price | $0.0048 per term | $0.006 per term + $0.00005 start |
This Actor was 11 s slower on this input. The number of data points was the same for both.
This comparison is from November 2026. Since December 2026 this Actor reads Google's new Explore page, so cities are no longer returned (see Limits).
What's new
- 2026-12-04: Data now comes from Google's new Explore page. Cities are no longer returned, related queries return up to 50 / 50 per term, and rising queries follow the new page's definition (see Limits).
- 2026-11-28: Links to the new Shopify and SEEK Actors.
- 2026-11-27: The three related Actors now link to each other.
- 2026-11-26: Quick start is at the top of this page.
- 2026-11-19: Sections and FAQ entries for "Google Trends API".
- 2026-11-16: Every dataset field has a description for AI agents.
- 2026-11-15: Unknown country codes are rejected before the request reaches Google.
Common problems with Google Trends scrapers, and what this Actor does
Public issues on the four most used Google Trends actors on Apify Store (78 issues in total, read on 2026-11-27). The count in each row is the number of those issues on the Trends actors that match that problem. Each row also gives one example issue and what this Actor does.
| Problem (public issues) | Example issue | What this Actor does |
|---|---|---|
| The run fails or Google blocks it (30) | "We were detected. Google is baiting us to throw out the proxy" | A 429 with a long Retry-After stops the run at once, and the items not processed are not charged. Three failures in a row stop the run, and the status message says to try again in about 10 minutes. A 429 with a short Retry-After is retried up to 3 times, each wait at most 30 s. |
| Zero data from a run that succeeded (17) | "Getting no results after 3 runs. Nothing works" | A term with no data is counted as empty, not delivered, and not charged. The status message says "Nothing was charged" and names the counts. |
| Charges that do not match the data (3) | "it has many page blocks, so the cost goas very high" | One charge per term only after Google returned data. An idempotency key per item stops a resumed run from paying twice for the same term. |
| A run that takes many minutes (6) | "Almost 10 min and doesn't seem it's working" | 30 s before the run timeout the Actor stops sending new terms and delivers what it has; the terms not processed are not charged. |
| Field quality: cities with no value, data out of order (8) | "InterestByCity returns zero values for all cities" | Values are copied from Google without a sort, so the order is Google's order. A field Google did not return is null, and the run message names it. |
| A location code that is refused (6) | "The geo input does not seem to support KR, TW, or ID." | All two-letter country codes in Google Trends are accepted, including KR, TW and ID, and a region code such as US-CA works too. An unknown code fails the run at start with the name of the code, before any request. |
| Related trends data missing (7) | "in recent runs we're not seeing any related trends data being returned" | Related queries are returned when Google returns them, and a missing value is null with the field name in the run message. Related topics are never returned (see "Who this is not for"). |
Who this is not for
- You need related topics.
relatedTopics_topandrelatedTopics_risingare always empty arrays. Related queries are provided. - You need
viewedFromother than the United States. OnlyUSor empty is accepted; any other value fails at start. - You need
spreadsheetIdinput. It is not supported and fails at start with a message that says to usesearchTerms. - You need cities.
interestByCityisnulland the run message names it. Google's new Explore page does not show cities. - You need metro areas outside the United States.
interestByMetrois an empty array whengeois not in the US. - You need a guarantee that every field is filled. A field Google did not return is
null, and[]means that kind of data does not exist for the query.
Ask an AI about this Actor
Pay per run with x402 (experimental)
With the x402 protocol, an AI agent can pay for this Actor with stablecoins on Base or Solana. No Apify account is needed. The agent buys a prepaid API token from Apify AGI with an x402 payment, then uses that token as a bearer token against the Apify API to run the Actor. This feature is experimental and terms of Apify AGI apply. See the official Apify x402 documentation.
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"]}
Each run returns one dataset item per search term. See Output for a full example item.
Google Trends API for Python (pytrends alternative)
pytrends is archived and no longer maintained. This Actor returns the same kinds of data as JSON through the Apify API: interest over time, interest by region and metro area, related queries and trending searches. You call it from Python with apify-client (see Replacing pytrends) or from any language with a plain HTTP request. You do not run a browser or manage cookies yourself. You can export the results as CSV, JSON or Excel.
Use Google Trends in AI agents (MCP)
The Apify MCP server can give an AI agent this Actor as a tool. Limit the server to this Actor with the tools parameter:
$claude mcp add --transport http google-trends "https://mcp.apify.com/?tools=krammer/google-trends-scraper"
Other clients (Claude Desktop, Cursor) use the same URL in their MCP config. On first use you sign in to Apify (OAuth), or send an Authorization: Bearer <APIFY_TOKEN> header. The tool takes the same input as the Actor. One search term returns about 90 KB of JSON, so tell the agent to read only the fields it needs, for example relatedQueries_top or interestBySubregion.
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.
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(alwaysnull, see Limits),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": null,"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.
- Cities are not available.
interestByCityisnull, because Google's new Explore page does not show cities. - Rising related queries are copied as Google's new Explore page shows them. Their definition is different from the old page, so the list can contain queries that are not closely related to the term. Compare them with the top queries before you use them.
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
- 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.
Is there an official Google Trends API? Google's own Google Trends API is in alpha and needs an application. This Actor is not an official Google API. It returns the same data as the Google Trends website, as JSON, through the Apify API.
How do I fix pytrends 429 Too Many Requests? pytrends is archived, and Google limits repeated requests. With this Actor you send one API call and get JSON back. If Google still limits requests, the run stops, items that were not processed are not charged, and you can try again in about 10 minutes.
Can I export Google Trends data to CSV or JSON?
Yes. Export the dataset from Apify as CSV, JSON or Excel, or read it with the API or apify-client.
Can I get Google Trends data in Python?
Yes. Use apify-client as shown in Replacing pytrends. The example turns the interest over time data into a pandas DataFrame.
Can I use Google Trends data in Claude or Cursor? Yes, through the Apify MCP server. See "Use Google Trends in AI agents (MCP)" above.
Related Actors
- Google Jobs API & Scraper - Salary, Job Type: Search Google Jobs results by keyword, location and country, and get structured job postings.
- Google AI Overview Scraper - AI Overview API: Get the Google AI Overview for any search query, with the answer text and the sources it cites.
- Shopify Products Scraper - Shopify Store API: Get any public Shopify store's product catalog as JSON, with per-variant price, SKU and stock status.
- SEEK Jobs Scraper - Australia Job Listings API: Get SEEK job listings from Australia and New Zealand with the full job description.