Google Trends Trending Now API
Our Google Trends Trending Now API allows you to scrape daily and realtime search trends from the Google Trends Trending Now page. The API is accessed through the following endpoint: /search?engine=google_trends_trending_now
. A user may query the following: https://serpapi.com/search?engine=google_trends_trending_now
utilizing a GET
request. Head to the playground for a live and interactive demo.
API Parameters
Search Query
geo
Required
Parameter defines the location from where you want the search to originate. It defaults to US
(activated when the value of geo parameter is not set or empty). Head to the Google Trends Trending Now Locations for a full list of supported locations.
Localization
hl
Optional
Parameter defines the language to use for the Google Trends Trending Now search. It's a two-letter language code. (e.g., en
for English, es
for Spanish, or fr
for French). Head to the Google languages page for a full list of supported Google languages.
Serpapi Parameters
engine
Required
Set parameter to google_trends_trending_now
to use the Google Trends Trending Now API engine.
no_cache
Optional
Parameter will force SerpApi to fetch the Google Trends Trending Now results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false
(default) to allow results from the cache, or true
to disallow results from the cache. no_cache and async parameters should not be used together.
async
Optional
Parameter defines the way you want to submit your search to SerpApi. It can be set to false
(default) to open an HTTP connection and keep it open until you got your search results, or true
to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.
zero_trace
Optional
Enterprise only. Parameter enables ZeroTrace mode. It can be set to false
(default) or true
. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.
API Results
JSON Results
JSON output includes structured data for suggested searches.
A search status is accessible through search_metadata.status
. It flows this way: Processing
-> Success
|| Error
. If a search has failed, error
will contain an error message. search_metadata.id
is the search ID inside SerpApi.
HTML Results
HTML output is useful to debug JSON results or support features not supported yet by SerpApi. HTML output gives you the raw HTML results from Google Trends.
This API does not have html response, just a text. search_metadata.prettify_html_file
contains prettified version of the result. It is displayed in the playground.
API Examples
Example with geo: US
{
"search_metadata": {
"id": "66fcd7109656227e85d2ccb3",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/8b75a955ba3d7f87/66fcd7109656227e85d2ccb3.json",
"created_at": "2024-10-02 05:16:00 UTC",
"processed_at": "2024-10-02 05:16:00 UTC",
"google_trends_trending_now_url": "https://trends.google.com/_/TrendsUi/data/batchexecute?rpcids=i0OFE&source-path=%2Ftrending&hl=en",
"raw_html_file": "https://serpapi.com/searches/8b75a955ba3d7f87/66fcd7109656227e85d2ccb3.html",
"prettify_html_file": "https://serpapi.com/searches/8b75a955ba3d7f87/66fcd7109656227e85d2ccb3.prettify",
"total_time_taken": 1.53
},
"search_parameters": {
"engine": "google_trends_trending_now",
"hl": "en",
"geo": "US"
},
"trending_searches": [
{
"query": "john amos",
"start_timestamp": 1727805000,
"search_volume": 1000000,
"increase_percentage": 1000,
"trend_breakdown": [
"john amos death",
"good times",
"james amos",
...
],
"serpapi_google_trends_link": "https://serpapi.com/search.json?data_type=TIMESERIES&date=now+1-d&engine=google_trends&geo=US&hl=en&q=john+amos&tz=420"
},
{
"query": "frank fritz",
"start_timestamp": 1727790000,
"search_volume": 1000000,
"increase_percentage": 1000,
"trend_breakdown": [
"american pickers",
"frank fritz cause of death",
"american pickers frank",
...
],
"serpapi_google_trends_link": "https://serpapi.com/search.json?data_type=TIMESERIES&date=now+1-d&engine=google_trends&geo=US&hl=en&q=frank+fritz&tz=420"
},
{
"query": "jd vance",
"start_timestamp": 1727781000,
"search_volume": 2000000,
"increase_percentage": 1000,
"trend_breakdown": [
"debate tonight time",
"vice president debate",
"who won the debate tonight poll",
...
],
"serpapi_google_trends_link": "https://serpapi.com/search.json?data_type=TIMESERIES&date=now+1-d&engine=google_trends&geo=US&hl=en&q=jd+vance&tz=420"
},
]
}