Google Trends Trending Now API
Using Google Trends Trending Now API you can scrape Google Trends Trending Now results. Each successful request will cost you 5 API credits.
You have to send a GET request to http://api.scrapingdog.com/google_trends/trending_now with the below-given parameters.
Google Trends Trending Now API pricing is available here.
Parameters
Scrapingdog Parameters
api_key
required
Your personal API key. Available on your dashboard. Type: String
Search Query
geo required
This parameter specifies the location from which the search originates. By default, it is set to the US if the geo parameter is not provided or left empty.
Type: String
Advanced Parameters
hours
This parameter specifies the time range in past hours for retrieving results. By default, it is set to 24 (Past 24 hours). Google provides the following predefined values:
4(Past 4 hours)24(Past 24 hours)48(Past 48 hours)168(Past 7 days)
Type: String
Localization
language
This parameter specifies the language for the Google Trends Trending Now search. It accepts a two-letter language code (e.g., "en" for English, "es" for Spanish, or "fr" for French).
Type: String
API Example
curl "https://api.scrapingdog.com/google_trends/trending_now/?api_key=5eaa61a6e562fc52fe763tr516e4653&geo=US"import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/google_trends/trending_now"
params = {
"api_key": api_key,
"geo": "US"
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
const axios = require('axios');
const api_key = '5eaa61a6e562fc52fe763tr516e4653';
const url = 'https://api.scrapingdog.com/google_trends/trending_now';
const params = {
api_key: api_key,
geo: 'US'
};
axios
.get(url, { params: params })
.then(function (response) {
if (response.status === 200) {
const data = response.data;
console.log(data)
} else {
console.log('Request failed with status code: ' + response.status);
}
})
.catch(function (error) {
console.error('Error making the request: ' + error.message);
});
Response
{
"trending_searches": [
{
"title": "richard chamberlain",
"start_timestamp": 1743336000,
"end_timestamp": "",
"active": true,
"search_volume": 200000,
"increase_percentage": 1000,
"id": [
4
],
"trend_breakdown": [
"richard chamberlain",
"martin rabbett",
"the thorn birds",
"dr kildare",
"richard chamberlin",
"shogun",
"richard chamberlain shogun",
"richard chamberlain net worth",
"richard chamberlain death"
]
},
....
]
}Last updated