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 failureimport 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
| Name | Type | Description |
|---|---|---|
keywordquery · required | string | |
locationquery | string | Country (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. |
categoryquery | integer | null | Google Trends category id (0 = all, 71 = Food & Drink, …). |
Status codes
| Status | Meaning |
|---|---|
200 | Related queries and topics. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | Google Trends has no data for that query. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Google 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.