Google Trends Scraper
Extract trending search topics, interest over time, regional breakdowns, and related queries from Google Trends. Powered by spider-browser .
Extract data in minutes
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
stealth: 2,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://trends.google.com/trending?geo=US");
await page.content(10000);
const data = await page.evaluate(`(() => {
const trends = [];
document.querySelectorAll("[data-testid='trending-item'], .feed-list-wrapper tr").forEach(el => {
const topic = el.querySelector(".title span, td:nth-child(2)")?.textContent?.trim();
const volume = el.querySelector(".search-count-title, td:nth-child(3)")?.textContent?.trim();
const started = el.querySelector(".trending-source, td:nth-child(4)")?.textContent?.trim();
if (topic) trends.push({ topic, volume, started });
});
return JSON.stringify({ total: trends.length, trends: trends.slice(0, 20) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Structured data endpoint
Extract structured JSON from trends.google.com with a single POST request. AI-configured selectors, cached for fast repeat calls.
/fetch/trends.google.com/ curl -X POST https://api.spider.cloud/fetch/trends.google.com/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/trends.google.com/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/trends.google.com/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data); Data you can extract
Location targeting
Access region-specific results from 199+ countries via residential proxies.
Rate-limit bypass
Distributed requests with fingerprint rotation to avoid IP-based throttling.
Structured SERP data
Clean extraction of rankings, snippets, and knowledge panels into JSON.
More Search scrapers
Extract Google Search results, knowledge panels, featured snippets, and SERP data programmatically.
Extract app listings, ratings, reviews, download counts, and developer info from Google Play Store.
Extract business listings, reviews, contact info, and location data from Google Maps.
Start scraping trends.google.com
Get your API key and start extracting data in minutes.