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

Google Trends related and rising queries API

A keyword’s top and rising related queries and topics, as the Trends explore page lists them.

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

res = requests.get(
    "https://api.groundsocial.dev/v1/googletrends/rising?keyword=coffee&location=US",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 3 credits
{
"keyword": "coffee",
"geo": "US",
"queries": {
"top": [
{
"query": "coffee near me",
"value": 100,
"formattedValue": "100",
"hasData": true,
"link": "/trends/explore?q=coffee+near+me&date=today+12-m&geo=US"
},
{
"query": "coffee shop",
"value": 85,
"formattedValue": "85",
"hasData": true,
"link": "/trends/explore?q=coffee+shop&date=today+12-m&geo=US"
},
"… 23 more"
],
"rising": [
{
"query": "top songs this week",
"value": 7600,
"formattedValue": "Breakout",
"link": "/trends/explore?q=top+songs+this+week&date=today+12-m&geo=US"
},
{
"query": "home workout routines",
"value": 6800,
"formattedValue": "Breakout",
"link": "/trends/explore?q=home+workout+routines&date=today+12-m&geo=US"
},
"… 23 more"
]
},
"topics": {
"top": [],
"rising": []
}
}

Parameters

NameTypeDescription
keywordquery · requiredstring
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
200Related queries and topics.
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 is Breakout?

Growth over 5000%, as Google Trends labels it.

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