Google Trends Trending Now API Documentation
The Google Trends Trending Now API provides trending queries and search keywords in real-time.
API Parameters
Localization
-
- Name
-
geo - Required
- Optional
- Description
-
Specifies the geographical area for the search, with the default set to
US. For a full list of supported locations, refer to the Google Trends Trending Nowgeolocations.
Filters
-
- Name
-
time - Required
- Optional
- Description
-
Filters trending queries based on the specified time duration. Available options:
past_4_hours-
past_24_hoursDefault past_48_hourspast_7_days
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
google_trends_trending_now.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Trending Now
You can use the news_token with our Google Trends Trending Now News API to retrieve newst related to the topic.
All possible categories:
allautos_and_vehiclesbeauty_and_fashionbusiness_and_financeentertainmentfood_and_drinkgameshealthhobbies_and_leisurejobs_and_educationlaw_and_governmentotherpets_and_animalspoliticsscienceshoppingsportstechnologytravel_and_transportationclimate
https://www.searchapi.org/api/v1/search?engine=google_trends_trending_now&geo=US
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "google_trends_trending_now",
"geo": "US"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_0E6M9wDPgb74HKyDoRnqybBA",
"status": "Success",
"created_at": "2025-01-08T23:38:48Z",
"request_time_taken": 1.28,
"parsing_time_taken": 0.05,
"total_time_taken": 1.33,
"request_url": "https://trends.google.com/trending?geo=US&hl=en&hours=24",
"html_url": "https://www.searchapi.io/api/v1/searches/search_0E6M9wDPgb74HKyDoRnqybBA.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_0E6M9wDPgb74HKyDoRnqybBA"
},
"search_parameters": {
"engine": "google_trends_trending_now",
"geo": "US",
"time": "past_24_hours",
"hl": "en"
},
"trends": [
{
"position": 1,
"query": "hollywood hills fire",
"search_volume": 1000000,
"percentage_increase": 1000,
"location": "US",
"categories": ["other"],
"start_date": "2025-01-09T01:30:00Z",
"is_active": true,
"keywords": [
"hollywood hills fire",
"sunset fire",
...
],
"news_token": "W1szNTgyNjQ1NTAzLCJlbiIsIlVTIl1d"
},
...
]
}
Trending Now Past 7 Days
https://www.searchapi.org/api/v1/search?engine=google_trends_trending_now&geo=US&time=past_7_days
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "google_trends_trending_now",
"geo": "US",
"time": "past_7_days"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_mQdZY24X3k8Nt2PVpyxG15W7",
"status": "Success",
"created_at": "2025-01-09T15:58:03Z",
"request_time_taken": 1.4,
"parsing_time_taken": 0.05,
"total_time_taken": 1.45,
"request_url": "https://trends.google.com/trending?geo=US&hl=en&hours=168",
"html_url": "https://www.searchapi.io/api/v1/searches/search_mQdZY24X3k8Nt2PVpyxG15W7.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_mQdZY24X3k8Nt2PVpyxG15W7"
},
"search_parameters": {
"engine": "google_trends_trending_now",
"geo": "US",
"time": "past_7_days",
"hl": "en"
},
"trends": [
{
"position": 1,
"query": "la fires",
"search_volume": 10000000,
"percentage_increase": 1000,
"location": "US",
"categories": ["other"],
"start_date": "2025-01-07T19:30:00Z",
"is_active": true,
"keywords": [
"la fires",
...
]
},
...
{
"position": 3006,
"query": "argentina",
"search_volume": 100,
"percentage_increase": 50,
"location": "US",
"categories": ["law_and_government", "politics"],
"start_date": "2025-01-03T10:50:00Z",
"end_date": "2025-01-03T11:10:00Z",
"time_active_minutes": 20,
"keywords": ["argentina"]
}
]
}