1. Why Unofficial pytrends Scripts Break in Production
Google Trends requires dynamic session cookies, rotating tokens, and residential TLS fingerprints on its internal /trends/api/widgetdata endpoints.
| Approach | Realtime Breakouts | 54-Week 0–100 Curve | Cloud IP Reliability | Cost / 1,000 |
|---|---|---|---|---|
| SearchData API (/v1/trends/*) | Yes (100+ countries) | Yes + Rising Queries | 99.95% Multi-Rail SLA | $0.08–$0.20 (Realtime) / $0.40–$1.00 (54w) |
| pytrends (Archived) | Broken / Deprecated | Frequent HTTP 429 | Fails on AWS/GCP/Fly | Proxy + DevOps maintenance |
| SerpApi Google Trends | Yes | Yes | High | $15.00 / 1K ($75/mo min) |
2. Fetching 54-Week Interest Over Time & Breakout Velocity in Python
Use GET /v1/trends/interest to power SaaS demand dashboards, ecommerce product scouting, quantitative alternative-data signals, and programmatic content calendars.
GET /v1/trends/interest — 54-Week Normalized Curve + Rising Breakouts
10 Credits ($1.00/1K base, $0.40/1K Scale) · Weekly 0–100 series + rising queries.
curl -s "https://api.searchdataapi.com/v1/trends/interest?keyword=ai+agents&country=US" \
-H "Authorization: Bearer sr_live_your_api_key"import requests
resp = requests.get(
"https://api.searchdataapi.com/v1/trends/interest",
params={"keyword": "ai agents", "country": "US"},
headers={"Authorization": "Bearer sr_live_your_api_key"},
timeout=20,
)
trend = resp.json()["data"]
print("Current:", trend["current_interest"], "Peak:", trend["peak_interest"])
for pt in trend["interest_over_time"][-5:]:
print(pt["date"], pt["value"])const res = await fetch(
"https://api.searchdataapi.com/v1/trends/interest?keyword=ai+agents&country=US",
{ headers: { Authorization: "Bearer sr_live_your_api_key" } }
);
const { data } = await res.json();
console.log(data.velocity_label, data.interest_over_time.length);{
"code": 0,
"message": "success",
"data": {
"keyword": "ai agents",
"country": "US",
"time_range": "today 12-m",
"average_interest": 74,
"peak_interest": 100,
"current_interest": 96,
"velocity_label": "+340% Breakout",
"interest_over_time": [
{
"date": "2025-11-16",
"timestamp": 1763251200,
"value": 28
},
{
"date": "2026-03-15",
"timestamp": 1773532800,
"value": 54
},
{
"date": "2026-07-19",
"timestamp": 1784419200,
"value": 81
},
{
"date": "2026-11-08",
"timestamp": 1794096000,
"value": 96
}
],
"related_queries": {
"rising": [
{
"query": "mcp server claude",
"value": "Breakout"
},
{
"query": "autonomous coding agent",
"value": "+450%"
}
],
"top": [
{
"query": "ai agent framework",
"value": 100
},
{
"query": "langchain agents",
"value": 78
}
]
}
},
"meta": {
"credits_charged": 10,
"credits_remaining": 11990
}
}Interactive Telemetry Workbench · GET /v1/trends/interest
Verify real-time latency, credit math & JSON schema
Frequently Asked Questions
- What is the difference between /v1/trends/realtime and /v1/trends/interest?
- /v1/trends/realtime returns what is surging across an entire country right now (2 credits = $0.20/1K). /v1/trends/interest takes any specific keyword and returns its 54-week 0–100 historical search interest curve plus rising related queries (10 credits = $1.00/1K base).
- Which country codes are supported?
- Pass any ISO 3166-1 alpha-2 code such as US, GB, DE, JP, BR, IN, CA, AU, FR, or SG.
Zero 429 Rate Limits · Instant Production Key
Test live in the Playground or mint your sr_live_ key with 1-Click Google OAuth
Every new account receives 12,000 free Credits ($1.20) at 0ms plus up to +20,000 Sandbox Streak Credits — no credit card required, 0 Credits charged on empty or failed requests.