To get Google Trends data without pytrends, use Scavio's Google Trends API. POST /api/v2/google/trends with a term, a region and a date window returns the interest-over-time series and interest by region as JSON; set data_type for related queries or related topics, and comma-separate up to five terms to put them on one 0-100 scale. POST /api/v2/google/trending returns the searches trending in a country right now with search volume and growth. One term costs 1 credit, about $0.001 on the Growth plan, and a five-term comparison costs 3.
pytrends was the default way to pull Trends data into Python for years. It is now archived on GitHub, its last release was 4.9.2 in April 2023, and threads such as one on r/learnpython in January 2026 still report it returning HTTP 400 errors. Google's own Google Trends API is in alpha for approved testers only. The steps below get the same data with an API key. Every response shown was captured on November 29, 2026 and trimmed, never edited.
Step 1: Get interest over time for one term
curl -s https://api.scavio.dev/api/v2/google/trends \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "ai agents", "geo": "US", "date": "today 12-m"}'This returned 54 weekly points and 51 US regions in 3.8 s for 1 credit. Trimmed to the peak week and the first two regions:
{
"search_parameters": {
"q": "ai agents",
"geo": "US",
"hl": "en",
"date": "today 12-m",
"tz": "420"
},
"interest_over_time": {
"timeline_data": [
{
"date": "Jun 7 – 13, 2026",
"timestamp": "1780790400",
"values": [
{
"query": "ai agents",
"value": "100",
"extracted_value": 100
}
]
}
]
},
"interest_by_region": [
{
"geo": "US-WY",
"location": "Wyoming",
"max_value_index": 0,
"value": "100",
"extracted_value": 100
},
{
"geo": "US-KS",
"location": "Kansas",
"max_value_index": 0,
"value": "25",
"extracted_value": 25
}
],
"credits_used": 1
}Each point has the week as text, a Unix timestamp, and one entry per term with value as a string and extracted_value as a number. geo takes a country (US), a state (US-CA) or nothing for worldwide, and date takes the windows the Trends website offers, such as today 12-m here and now 7-d below. Region values are a share of each region's searches, not volume, which is how Wyoming can top the map. Two traps:
- The last point is the week in progress. "ai agents" read 21 for November 22-28 and 13 for November 29-December 5, a week that had just begun. Nothing in the response marks it, so drop it or label it before you chart it.
- Time zone. The default
tzis 420 minutes, which is UTC-7. Pass your own offset if you read hourly data:"date": "now 7-d"for "black friday" returned 169 hourly points, peaking at 100 on "Nov 27, 2026 at 4:00 AM" in that time zone.
Step 2: Compare up to five terms on one scale
curl -s https://api.scavio.dev/api/v2/google/trends \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "chatgpt, gemini, claude, perplexity, copilot", "geo": "US", "date": "today 12-m"}'Every point now carries one value per term, all on one scale. The week Claude peaked:
{
"date": "Apr 12 – 18, 2026",
"timestamp": "1775952000",
"values": [
{
"query": "chatgpt",
"value": "88",
"extracted_value": 88
},
{
"query": "gemini",
"value": "39",
"extracted_value": 39
},
{
"query": "claude",
"value": "38",
"extracted_value": 38
},
{
"query": "perplexity",
"value": "4",
"extracted_value": 4
},
{
"query": "copilot",
"value": "9",
"extracted_value": 9
}
]
}This matters because Trends scales each request to its own peak. Asked alone, "claude" read 100 for this same week; next to ChatGPT it is 38. Only values from the same request can be compared, so put the terms you want side by side in one call. A comparison of two to five terms costs 3 credits; more than five is a 400 error. The regions in a comparison also carry a values[] array with each term's share. The best Google Trends APIs charts the full year for all five.
Step 3: Break interest down by state, metro or city
The default response already includes interest_by_region by state. For metro areas (DMAs) or cities, ask for the map widget with a region level:
curl -s https://api.scavio.dev/api/v2/google/trends \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "claude", "geo": "US", "date": "today 12-m", "data_type": "GEO_MAP", "region": "DMA"}'This returned 210 US metro areas, each with Nielsen's DMA code in geo:
[
{
"geo": "807",
"location": "San Francisco-Oakland-San Jose CA",
"max_value_index": 0,
"value": "100",
"extracted_value": 100
},
{
"geo": "582",
"location": "Lafayette IN",
"max_value_index": 0,
"value": "93",
"extracted_value": 93
}
]region also takes COUNTRY, REGION and CITY.
Step 4: Get related queries and related topics
curl -s https://api.scavio.dev/api/v2/google/trends \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "ai agents", "geo": "US", "date": "today 12-m", "data_type": "RELATED_QUERIES"}'related_queries holds a top list (25 queries here) and a rising list (24). Trimmed to two of each:
{
"related_queries": {
"rising": [
{
"query": "openclaw",
"value": "Breakout",
"extracted_value": 175250,
"link": "https://trends.google.com/trends/explore?q=openclaw&date=today+12-m&geo=US"
},
{
"query": "ai agents moltbook",
"value": "Breakout",
"extracted_value": 52300,
"link": "https://trends.google.com/trends/explore?q=ai+agents+moltbook&date=today+12-m&geo=US"
}
],
"top": [
{
"query": "best ai agents",
"value": "100",
"extracted_value": 100,
"link": "https://trends.google.com/trends/explore?q=best+ai+agents&date=today+12-m&geo=US"
},
{
"query": "ai agent",
"value": "47",
"extracted_value": 47,
"link": "https://trends.google.com/trends/explore?q=ai+agent&date=today+12-m&geo=US"
}
]
}
}Top values are relative to the most-searched related query. Rising values are percentage growth, and "Breakout" means growth above 5,000%, with the raw figure kept in extracted_value. RELATED_TOPICS returns the same shape with a Knowledge Graph topic object in place of the query: for "claude", "Claude Code" was a rising Breakout topic with the id /g/11n4qkv0lj. Related queries, related topics and the single-term map take one term per call.
Step 5: Get what is trending right now
The trends endpoint answers "is this rising?". The trending endpoint answers "what is rising?", for a country and a window of 4, 24, 48 or 168 hours:
curl -s https://api.scavio.dev/api/v2/google/trending \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"geo": "US", "hours": 24, "sort": "search_volume"}'At 02:46 UTC on November 29, 2026 this returned 525 US searches from the past 24 hours in 0.6 s, 156 still active. The first one, with its 196 related searches trimmed to 3:
{
"title": "earthquake today",
"search_volume": 1000000,
"growth_percentage": 1000,
"started_at": 1795887000,
"status": "active",
"related_queries": [
"earthquake today",
"la earthquake",
"la earthquake today"
],
"category_ids": [
20
],
"trend_url": "https://trends.google.com/trends/explore?q=earthquake+today&geo=US"
}search_volume is Google's band, not a count (111 of the 525 read 2,000), started_at is a Unix timestamp, and category_ids uses Google's Trending now categories: 17 is sports (328 of the 525), 20 is climate. status is active or ended; send "status": "active" to keep only live ones, and cat to filter one category.
pytrends to Scavio, call by call
| pytrends | Scavio request | Credits |
|---|---|---|
build_payload(kw_list, cat, timeframe, geo, gprop) | Fields of the same request: query, cat, date, geo, gprop | - |
interest_over_time() | /api/v2/google/trends (default) | 1 (3 for 2-5 terms) |
interest_by_region(resolution=...) | /trends with data_type: "GEO_MAP" and region | 1 |
related_queries() | /trends with data_type: "RELATED_QUERIES" | 1 |
related_topics() | /trends with data_type: "RELATED_TOPICS" | 1 |
trending_searches(), realtime_trending_searches() | /api/v2/google/trending with geo | 1 |
get_historical_interest() | /trends with "date": "now 7-d" for the past week's hourly points | 1 |
top_charts(), suggestions() | No equivalent | - |
From Python, the Scavio SDK wraps the same call: client.google.trends(query="ai agents", geo="US", date="today 12-m").
Both endpoints
| Endpoint | What it returns | Credits |
|---|---|---|
/api/v2/google/trends | Interest over time, interest by region, related queries or related topics for a term | 1 (3 for a 2-5 term comparison) |
/api/v2/google/trending | Searches trending in a country now, with search volume, growth, start time, status and category | 1 |
For how this compares with SerpApi, DataForSEO, Bright Data, SearchApi and Glimpse, see the best Google Trends APIs.
Getting started
- Sign up at dashboard.scavio.dev/sign-up: 50 free credits, no card required.
- Copy your API key from the dashboard.
- Send a POST to
/api/v2/google/trendswith your key in theAuthorizationheader.
Try the Google Trends API free in the playground first, call it from Claude and other agents through the MCP server, or try the free Trends explorer with no code.
Reference: Google Trends API overview · trends docs · trending docs · best Google Trends APIs · Google Trends in n8n
Frequently asked questions
How do you get Google Trends data programmatically?
Send the term, region and date window to a Google Trends API and read the JSON. With Scavio that is POST /api/v2/google/trends with a query such as 'ai agents', a geo such as US and a date such as 'today 12-m'; it returns the weekly interest series and interest by state for 1 credit. Add a data_type of RELATED_QUERIES or RELATED_TOPICS for the related lists, and call /api/v2/google/trending for what is spiking now.
Does Google have a free API for Google Trends?
Google's official Google Trends API is in alpha for a limited number of approved testers; you apply on Google's developer site, and it is not open to everyone yet. The Trends website itself is free to use but has no public data endpoint you can build on. Hosted APIs fill the gap: Scavio gives 50 free credits once with no card, enough for 50 single-term calls.
What can I use instead of pytrends?
pytrends is archived on GitHub and has had no release since April 2023. Its main calls map onto a hosted API: interest_over_time to a trends call, interest_by_region to a GEO_MAP call with a region level, related_queries and related_topics to the matching data_type, and trending_searches to a trending call. Scavio, SerpApi, SearchApi, DataForSEO and Bright Data all sell Google Trends data this way.
Why is the last week in my Google Trends data so low?
Because it is not over. The newest point in a weekly series is the week in progress. On November 29, 2026, 'ai agents' read 21 for the week of November 22-28 and 13 for November 29-December 5, a week that had just begun. The response does not flag it, so drop the newest point or label it partial before you chart or alert on it.
How do I get Google Trends data for more than five keywords?
Split them into groups of four and add the same anchor keyword to every group, so each call has five terms. Divide every value by the anchor's value in that call to put all groups on one scale. Each five-term comparison is one Scavio call at 3 credits, so 200 keywords is 50 calls and 150 credits.