Google Trends API - pytrends Alternative, Trends as JSON avatar

Google Trends API - pytrends Alternative, Trends as JSON

Pricing

from $5.00 / 1,000 api requests

Go to Apify Store
Google Trends API - pytrends Alternative, Trends as JSON

Google Trends API - pytrends Alternative, Trends as JSON

Google Trends as a real-time HTTP API and pytrends alternative: one GET request returns interest over time, by region and related queries as JSON, or what is trending now with search volume. No 429s to handle, no run to start.

Pricing

from $5.00 / 1,000 api requests

Rating

0.0

(0)

Developer

Alom Dev

Alom Dev

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

9 days ago

Last modified

Features

Limited permissionsMulti-tenantServer interface

Share

Google Trends as a real-time HTTP API, and a pytrends alternative without 429 errors to handle. One GET request returns interest over time, interest by region and related queries as JSON, or what is trending right now with search volume. No run to start, no browser, no retry code on your side.

curl -H "Authorization: Bearer $APIFY_TOKEN" \
"https://alom--google-trends-api.apify.actor/explore?q=bitcoin,ethereum&geo=US&time=today%205-y"
EndpointReturns
GET /explore?q=coffee,tea&geo=USOne comparison of up to 5 terms: interest over time, by state, city and US metro, related queries and topics, plus a summary (peak, trend direction, winner)
POST /exploreUp to 5 comparisons in one request ({"queries": ["bitcoin,ethereum", "solana"]})
GET /trending?geo=US,GB&hours=24What is trending now in up to 5 countries or US states: search volume, growth, start time, related searches and news
  • Who it is for: SEO and content tools, market research, dashboards and AI agents that need Google Trends data on demand. The pytrends library was archived in 2025 and often fails with 429 errors; here Google's rate limits are handled for you, on fresh IPs.
  • pytrends parameter names work: kw_list, timeframe, geo, cat, gprop.
  • What it costs: $0.005 per request plus $1.50 per 1,000 Explore results or $0.20 per 1,000 trending topics (less on higher Apify plans). One comparison costs $0.0065 on the Free plan, a list of 50 trending topics $0.015. Failed requests are free.
  • Prefer scheduled runs, Google Sheets input or CSV exports? The same data comes as Google Trends Scraper runs.

Quick start

  1. Get your Apify API token: Console → Settings → API & Integrations.
  2. Call an endpoint with the token in the Authorization header (or ?token= in the URL, which is less safe).
  3. Read results (or trends) from the JSON reply.

Python (replacing pytrends)

import os, requests
API = "https://alom--google-trends-api.apify.actor"
headers = {"Authorization": f"Bearer {os.environ['APIFY_TOKEN']}"}
# pytrends: TrendReq().build_payload(kw_list=["pizza", "sushi"], timeframe="today 3-m", geo="US")
r = requests.get(f"{API}/explore", headers=headers, timeout=300,
params={"kw_list": "pizza,sushi", "timeframe": "today 3-m", "geo": "US"})
result = r.json()["results"][0]
for point in result["interestOverTime_timelineData"]:
print(point["formattedTime"], point["value"]) # interest_over_time()
print(result["interestBySubregion"][:5]) # interest_by_region()
print(result["relatedQueries_rising"][:5]) # related_queries()

JavaScript

const API = 'https://alom--google-trends-api.apify.actor';
const res = await fetch(`${API}/trending?geo=US&hours=24&sort=volume&max=20`, {
headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` },
});
const { trends } = await res.json();
for (const t of trends) console.log(t.rank, t.title, t.searchVolumeFormatted, t.increasePercentage);

GET / returns a short description of the endpoints. The Server tab of this Actor in Apify Console has the OpenAPI description and a request builder.

Parameters

/explore

ParameterWhat it does
q (or kw_list)Search terms, comma-separated: one comparison of up to 5. POST: queries, a list of up to 5 comparisons
geoUS, US-CA, GB-ENG, ...; empty = worldwide
time (or timeframe)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, all, or 2024-01-01 2024-12-31
category (or cat)Numeric Google Trends category id; 0 = all
property (or gprop)web (default), images, news, shopping, youtube
relatedfalse skips related queries and topics (faster)
regionsfalse returns only the main region breakdown, without cities and US metros
normalizetrue puts more than 5 terms (up to 20) on one 0-100 scale; anchor sets the reference term
dailytrue returns daily points for ranges longer than Google gives daily (up to 10 years)
verifyRelatedtrue cross-checks related queries on a second IP (slower)

/trending

ParameterWhat it does
geoUp to 5 countries or US states, comma-separated. Default US
hours4, 24 (default), 48 or 168
categoryCategory ids or names, e.g. Sports,Technology
activetrue keeps only topics that are still trending
minVolumeOnly topics with at least this many searches
sortrelevance (default), volume, recency, growth
maxTopics per location, 1–500. Default 50
newsfalse skips the news articles and pictures
onlyNew + monitorNameOnly topics this monitor has not returned before (see below)

Reply

{
"ok": true,
"count": 1,
"results": [
{
"searchTerm": "coffee,tea",
"interestOverTime_timelineData": [
{ "time": "1764374400", "formattedTime": "Nov 29 – Dec 5, 2025", "value": [78, 21], "hasData": [true, true] }
],
"interestBySubregion": [{ "geoCode": "US-WA", "geoName": "Washington", "value": [83, 17] }],
"relatedQueries_top": [{ "query": "coffee near me", "value": 100 }],
"summary": [
{ "term": "coffee", "peakValue": 100, "average": 75.4, "trendDirection": "flat" },
{ "term": "tea", "peakValue": 27, "average": 21.2, "trendDirection": "flat" }
],
"winner": "coffee",
"geo": "US",
"timeRange": "today 12-m",
"trendsUrl": "https://trends.google.com/trends/explore?date=today+12-m&q=coffee,tea&geo=US"
}
],
"notices": [],
"charged": { "api-request": 1, "api-query": 1 },
"durationMs": 14035
}

Every result has the same fields as a Google Trends Scraper row: the timeline, interestBy / interestBySubregion / interestByCity / interestByMetro, related queries and topics (top and rising, with breakouts), and the summary. /trending answers with trends: title, rank, searchVolume, increasePercentage, startedAt, isActive, categories, relatedQueries, news and exploreUrl.

StatusMeaningCharged
200Data found. notices names anything that was skippedOne request + one per result or topic
400Bad parameters (unknown time range, more than 5 terms, ...); error says what to fixNo
402Apify did not accept the charge (credit or limits)No data returned
502Google Trends did not answer; try again in a minuteNo

A request that takes longer than 20 seconds gets its 200 status line right away, and then spaces until its JSON follows, so slow connections are not dropped on the way. In that case the real status is in the body as status, next to ok: check ok rather than the HTTP status.

Add onlyNew=true&monitorName=us-news to /trending and each request returns only topics that monitor hasn't returned before. Call it every hour from cron, n8n, Make or Zapier. Each Apify user has their own monitors. A check with nothing new costs one request fee ($0.005).

How it works and its limits

  • Google Trends' own data endpoints over plain HTTP, on datacenter IPs; residential IPs only when Google blocks those. When Google answers "429 too many requests", the request is retried on a fresh IP for you.
  • Speed (measured): an Explore comparison usually takes 10–35 seconds (about 10 with related=false); Trending Now takes 2–5 seconds per location. If the endpoint has been idle, the first request also waits a few seconds while it starts.
  • Up to 5 comparisons or locations per request, and up to 8 extra Google comparisons for normalize / daily. A request still working after 100 seconds returns what it found so far.
  • Google Trends numbers are relative (0–100 per chart), not search counts. Trending Now volumes are Google's rounded buckets (200K+).
  • Not here: Google Sheets input and CSV exports. Use Google Trends Scraper runs for those.

Pricing

Free planBronzeSilverGold and up
Per request$0.005$0.005$0.005$0.005
Per 1,000 Explore results$1.50$1.00$0.75$0.50
Per 1,000 trending topics$0.20$0.15$0.12$0.10
Per extra comparison (normalize, daily)$0.003$0.003$0.003$0.003

Examples on the Free plan: one comparison of 2 terms = $0.0065; 3 comparisons in one POST = $0.0095; 50 trending topics = $0.015; 12 terms on one scale = $0.0125. Failed requests (400, 502) are not charged. Runs started from the input form instead of the API are priced like Google Trends Scraper runs.

FAQ

Is it a drop-in pytrends replacement? The parameter names are the same and the data is the same, but it is an HTTP call instead of a Python library: one requests.get returns everything pytrends gets with interest_over_time, interest_by_region and related_queries.

Can I use it from an AI agent? Yes. Add https://mcp.apify.com/?tools=alom/google-trends-api as an MCP connector, or give the agent the OpenAPI description from the Server tab.

Is it legal? It reads public Google Trends data that anyone can see without logging in. Check the terms that apply to your use.

Missing something? Open an issue in the Issues tab.