Google Trends Trending Now API
The Google Trends Trending Now API retrieves currently trending searches from Google, filtered by location, time range, and language preferences.
Endpoint:
https://api.scrapingdog.com/google_trends/trending_nowAPI Parameters
🔑
Authentication
api_keyRequiredYour personal API key. Available on your dashboard.
🔗
Request Parameters
geoRequiredThis parameter specifies the location from which the search originates. Default:US
Type: StringhoursOptionalBy default, it is set to24(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: StringlanguageOptionalThis parameter specifies the language for the Google Trends Trending Now search. It accepts a two-letter language code (e.g.,enfor English,esfor Spanish, orfrfor French)
Type: String
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/google_trends/trending_now?api_key=APIKEY&geo=US"
import requests url = "https://api.scrapingdog.com/google_trends/trending_now" params = {"api_key": "APIKEY", "geo": "US"} response = requests.get(url, params=params) if response.status_code == 200: print(response.json())
const axios = require('axios'); axios.get('https://api.scrapingdog.com/google_trends/trending_now', { params: { api_key: 'APIKEY', geo: 'US' } }).then(response => console.log(response.data)) .catch(error => console.error(error.message));
<?php $url = 'https://api.scrapingdog.com/google_trends/trending_now/?' . http_build_query([ 'api_key' => 'APIKEY', 'geo' => 'US', ]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch); curl_close($ch);
require 'net/http' require 'uri' url = URI.parse("https://api.scrapingdog.com/google_trends/trending_now/") url.query = URI.encode_www_form('api_key' => 'APIKEY', 'geo' => 'US') http = Net::HTTP.new(url.host, url.port) http.use_ssl = true puts http.request(Net::HTTP::Get.new(url)).body
import java.io.*; import java.net.*; public class Main { public static void main(String[] args) throws Exception { String apiUrl = "https://api.scrapingdog.com/google_trends/trending_now/?api_key=APIKEY&geo=US"; URL url = new URL(apiUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; while ((line = reader.readLine()) != null) System.out.println(line); conn.disconnect(); } }
API Response
{
"trending_searches": [
{
"title": "richard chamberlain",
"start_timestamp": 1743336000,
"end_timestamp": "",
"active": true,
"search_volume": 200000,
"increase_percentage": 1000,
"trend_breakdown": [
"richard chamberlain",
"martin rabbett",
"the thorn birds"
]
}
]
}