Google Trends Scraper & API - pytrends Alternative, $4.80/1K avatar

Google Trends Scraper & API - pytrends Alternative, $4.80/1K

Pricing

from $2.40 / 1,000 search term results

Go to Apify Store
Google Trends Scraper & API - pytrends Alternative, $4.80/1K

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

krammer liu

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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 Actorapify/google-trends-scraper
Run time, 3 terms54 s (run bdWEYAEO6lGCevE7n)43 s (run Nmb6xdHo4qS5EBB6C)
Dataset items33
Interest over time points53 per term53 per term
Regions (states)51 per term51 per term
Cities200 per term200 per term
Metro areas210 per term210 per term
Related queries (top / rising)25 / 25 per term25 / 25 per term
Related topicsempty arrayempty 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.

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 issueWhat 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_top and relatedTopics_rising are always empty arrays. Related queries are provided.
  • You need viewedFrom other than the United States. Only US or empty is accepted; any other value fails at start.
  • You need spreadsheetId input. It is not supported and fails at start with a message that says to use searchTerms.
  • You need cities. interestByCity is null and the run message names it. Google's new Explore page does not show cities.
  • You need metro areas outside the United States. interestByMetro is an empty array when geo is 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.

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.

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.

EventCharged whenPrice (depends on your Apify plan)
Search term resultOne search term, or one comparison group, returned data$0.0048 (Free), $0.004 (Bronze), $0.0032 (Silver), $0.0024 (Gold and higher plans)
Trending countryOne 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

FieldWhat it does
modekeyword (default) or trending
searchTermsTerms to look up
isMultipletrue: each entry is split on commas into one comparison group (up to 5 terms)
startUrlsGoogle Trends explore URLs. The q, geo, date, cat and gprop parameters override the form
timeRangenow 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
customTimeRangeYYYY-MM-DD YYYY-MM-DD. Overrides timeRange
geoTwo-letter country code such as US, or region such as US-CA. Empty = worldwide
viewedFromOnly US or empty is supported
categoryGoogle Trends category ID. 0 = all
propertynews, images, youtube, froogle. Empty = web search
maxItemsProcess only the first N items. 0 = no limit
trendingGeosCountries 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, searchTerm
  • interestOverTime_timelineData, interestOverTime_averages
  • interestBySubregion, interestByCity (always null, see Limits), interestByMetro (metro areas: US queries only), interestBy (worldwide queries: by country)
  • relatedQueries_top, relatedQueries_rising
  • relatedTopics_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

pytrendsThis 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 pd
from apify_client import ApifyClient
client = 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())
  • Input field names and output field names are the same, so you can switch without changing your code.
  • Not supported: spreadsheetId (put the terms in searchTerms instead). viewedFrom supports only US.
  • Related topics are not provided. The fields relatedTopics_top and relatedTopics_rising are 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. interestByCity is null, 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.
  • viewedFrom supports 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.
  • property for 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.