100 free credits. No credit card required. Get a key

Google Trends interest over time API

Google Trends interest over time for up to five keywords, 0-100 relative to the peak, with averages, per country or region, timeframe and category.

GET /v1/googletrends/exploreBeta3 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/googletrends/explore?keywords=coffee,tea&location=US",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 3 credits
{
"keywords": [
"coffee",
"tea"
],
"geo": "US",
"time": "2025-11-25 2026-11-25",
"timelineData": [
{
"time": "1763856000",
"formattedTime": "Nov 23 – 29, 2025",
"value": [
74,
33
],
"hasData": [
true,
true
],
"formattedAxisTime": "Nov 23, 2025",
"formattedValue": [
"74",
"33"
]
},
{
"time": "1764460800",
"formattedTime": "Nov 30 – Dec 6, 2025",
"value": [
70,
38
],
"hasData": [
true,
true
],
"formattedAxisTime": "Nov 30, 2025",
"formattedValue": [
"70",
"38"
]
},
"… 51 more"
],
"averages": [
77,
36
]
}

Parameters

NameTypeDescription
keywordsquery · requiredstringExample: coffee,tea.
locationquerystringCountry (US) or region (US-CA); empty for worldwide (default).
timeframequery"past_hour" | "past_4_hours" | "past_day" | "past_7_days" | "past_30_days" | "past_90_days" | "past_12_months" | "past_5_years"Default past_12_months. One of past_hour, past_4_hours, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years.
categoryqueryinteger | nullGoogle Trends category id (0 = all, 71 = Food & Drink, …).
Status codes
StatusMeaning
200The timeline.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404Google Trends has no data for that query.
429Too many requests. Wait for Retry-After seconds.
503Google Trends is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

What do the numbers mean?

0-100, relative to the highest point for the keywords in the window, as Google Trends scales them.

Google Trends is a trademark of Google LLC. We are not affiliated with or endorsed by Google.