Short answer: pytrends is no longer maintained — its GitHub repository was archived in April 2025 — and the same Google Trends data is available as JSON from one POST to /google/trends. You send the keywords, country and time range you used to pass to build_payload, and get the interest-over-time points back without cookies, tokens or a browser.
What happened to pytrends
The pytrends repository carries this banner (read on 4 December 2026): "This repository was archived by the owner on Apr 17, 2025. It is now read-only." Archived means no fixes when Google changes its pages, so scripts built on it break and stay broken.
The replacement request
curl -X POST 'https://api.serpbase.dev/google/trends' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"q":"bitcoin,ethereum","geo":"US","date":"today 12-m"}'
What came back
Two tests on 4 December 2026:
| request | series | points per series | highest value |
|---|---|---|---|
{"q":"coffee"} | 1 | 53 weekly points (default range today 12-m) | 100 |
{"q":"bitcoin,ethereum","geo":"US","date":"today 12-m"} | 2 | 53 weekly points each | bitcoin 100, ethereum 9 |
Shortened:
{
"status": 0,
"credits_charged": 2,
"trends": {
"query": "bitcoin,ethereum",
"geo": "US",
"time_range": "today 12-m",
"series": [
{
"term": "bitcoin",
"points": [
{"timestamp": "2025-11-30T00:00:00Z", "value": 48},
{"timestamp": "2026-02-01T00:00:00Z", "value": 100},
{"timestamp": "2026-11-29T00:00:00Z", "value": 32, "partial": true}
]
},
{"term": "ethereum", "points": [{"timestamp": "2025-11-30T00:00:00Z", "value": 7}]}
]
}
}
The single-keyword request answered in 3.4 seconds and the two-keyword one in 19.1 seconds in our run, so give the call a generous client timeout.
pytrends to SerpBase, call by call
| pytrends | /google/trends |
|---|---|
build_payload(kw_list=["a","b"]) + interest_over_time() | "q": "a,b" (up to five terms) |
timeframe="today 12-m" | "date": "today 12-m" |
geo="US" | "geo": "US" |
cat=71 | "cat": "71" |
gprop="youtube" | "gprop": "youtube" |
interest_by_region() | "data_type": "GEO_MAP" |
related_queries() | "data_type": "RELATED_QUERIES" |
suggestions() | POST /google/trends/autocomplete |
Each row has its own guide with tested output: comparing keywords, interest by region, related queries, categories, YouTube search interest, daily and hourly ranges and topic IDs.
Python: an interest_over_time stand-in
import requests
def interest_over_time(keywords, geo="", timeframe="today 12-m"):
body = {"q": ",".join(keywords), "date": timeframe}
if geo:
body["geo"] = geo
r = requests.post(
"https://api.serpbase.dev/google/trends",
headers={"X-API-Key": "YOUR_API_KEY"},
json=body,
timeout=90,
).json()
if r["status"] != 0:
raise RuntimeError(r.get("error"))
rows = {}
for series in r["trends"]["series"]:
for p in series["points"]:
row = rows.setdefault(p["timestamp"][:10], {"date": p["timestamp"][:10], "isPartial": False})
row[series["term"]] = p["value"]
row["isPartial"] = row["isPartial"] or p.get("partial", False)
return [rows[d] for d in sorted(rows)]
rows = interest_over_time(["bitcoin", "ethereum"], geo="US")
print(len(rows), "rows")
print(rows[0])
print(rows[-1])
rows is a list of dicts — one per date, one column per keyword, plus isPartial — which pandas.DataFrame(rows) accepts as it is.
Things that trip people up
- Values are relative, exactly as in pytrends. 100 is the peak inside the request; ethereum's 9 is measured against bitcoin's 100. Numbers from two separate requests cannot be compared.
- The last point is usually partial. It carries
"partial": truebecause the week is not over; leave it out of averages. - Keywords go in one comma-separated string, not a list.
- Check
status, not the HTTP code. A failed request still returns HTTP 200 with a non-zerostatusand is not charged.
Cost and docs
A Trends request is 2 credits; credits cost $0.25–$0.50 per 1,000 depending on the pack. Failed requests are not charged, and new accounts get 500 free credits.
- Parameters and fields: Google Trends docs
- The endpoint itself: Google Trends API guide · product page
- Credit packs: pricing