Google Trends Trending Daily API Documentation
The Google Trends Trending Daily API provides developers with access to daily trending search data.
It allows for the retrieval of trending topics, search queries, related articles, and more, using the /api/v1/search?engine=google_trends_trending_daily
endpoint.
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 Trendinggeo
locations.
Filters
-
- Name
-
date
- Required
- Optional
- Description
-
Specifies the date for the search query in
YYYYMMDD
format. The Google Trends Trending Daily API returns results only for the past 30 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_daily
.
API key
-
- Name
-
api_key
- Required
- Required
- Description
-
The
api_key
authenticates 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
).
API Examples
Daily Searches
The Google Trends Trending Daily API returns results only for the past 30 days.
https://www.searchapi.io/api/v1/search?engine=google_trends_trending_daily&geo=US
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "google_trends_trending_daily",
"geo": "US"
}
response = requests.get(url, params = params)
print(response.text)
{
"search_metadata": {
"id": "search_6QNVPZBKo24jcw1Lp8y471M9",
"status": "Success",
"created_at": "2024-04-04T11:45:39Z",
"request_time_taken": 1.5,
"parsing_time_taken": 0.02,
"total_time_taken": 1.52,
"request_url": "https://trends.google.com/trends/api/dailytrends?geo=US&hl=en-US&tz=-420&ns=15",
"html_url": "https://www.searchapi.io/api/v1/searches/search_6QNVPZBKo24jcw1Lp8y471M9.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_6QNVPZBKo24jcw1Lp8y471M9"
},
"search_parameters": {
"engine": "google_trends_trending_daily",
"geo": "US"
},
"daily_searches": [
{
"date": "20240404",
"formatted_date": "Thursday, April 4, 2024",
"searches": [
{
"query": "Rangers",
"link": "https://trends.google.com/trends/explore?q=Rangers&date=now+7-d&geo=US",
"traffic": 20000,
"image": {
"link": "https://theshiftnews.com/2024/04/03/pl-candidate-complaining-about-rangers-is-environment-ministers-advisor/",
"source": "The Shift News",
"thumbnail": "https://t0.gstatic.com/images?q=tbn:ANd9GcT_LsUQLHjCTsYxChwShlwuCWxCeK0LA-OKNShuNRln6wLa9lyEzFXWwKwdcmTyT1EaZR6IIv7-"
},
"articles": [
{
"title": "PL candidate complaining about rangers is environment minister's ...",
"link": "https://theshiftnews.com/2024/04/03/pl-candidate-complaining-about-rangers-is-environment-ministers-advisor/",
"snippet": "The 28-year-old Labour MEP election candidate who made headlines last week for her controversial declaration that there are too many rangers trying to ...",
"date": "2h ago",
"source": "The Shift News",
"thumbnail": "https://t0.gstatic.com/images?q=tbn:ANd9GcT_LsUQLHjCTsYxChwShlwuCWxCeK0LA-OKNShuNRln6wLa9lyEzFXWwKwdcmTyT1EaZR6IIv7-"
},
...
]
}
]
},
...
]
}