Google Trends Scraper - Interest Over Time & Related Queries
Pricing
from $1.30 / 1,000 trend queries
Go to Apify Store
Google Trends Scraper - Interest Over Time & Related Queries
Scrape Google Trends: interest over time and related queries for up to 5 compared keywords, by country, time range and category. Google Trends API alternative for keyword and trend research.
Pull interest over time, related queries, and related topics from Google Trends for a search term, or compare up to 5 terms side by side. No API key and no headless browser: the actor calls the same JSON endpoints the Google Trends website uses.
Features
- Multi-term comparison — compare up to 5 keywords in a single run, with per-term interest scores
- Regional filtering — narrow results to a country, or leave blank for worldwide data
- Time ranges — from the past hour to the past 5 years
- Category filter — optional Google Trends category ID
- One JSON object per run — ready for spreadsheets, dashboards, or AI/LLM pipelines
- Retries — requests go through Apify Proxy (datacenter, then residential); when Google rate-limits a request (HTTP 429) the actor waits and retries with a new proxy session
Input
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Search term or comma-separated terms (max 5) |
geo | string | No | "" | Two-letter country code (empty = worldwide) |
timeRange | string | No | "today 12-m" | Time range (see options below) |
category | integer | No | 0 | Category ID (0 = all categories) |
Time Range Options
| Value | Period |
|---|---|
now 1-H | Past hour |
now 4-H | Past 4 hours |
now 1-d | Past day |
now 7-d | Past 7 days |
today 1-m | Past month |
today 3-m | Past 3 months |
today 12-m | Past 12 months |
today 5-y | Past 5 years |
Output
One flat JSON object per run with all trend data embedded:
{"query": "python, javascript","queries": ["python", "javascript"],"geo": "US","timeRange": "today 12-m","interestOverTime": [{"date": "2024-01-07", "formattedDate": "Jan 7 – 13, 2024", "values": [75, 60], "formattedValues": ["75", "60"], "isPartial": false}],"relatedQueries": [{"query": "python tutorial", "keyword": "python", "rankType": "top", "value": 100, "formattedValue": "100", "link": "/trends/explore?q=python+tutorial&date=today+12-m&geo=US"}],"relatedTopics": [{"topic": "Python (programming language)", "topicType": "Programming language", "keyword": "python", "rankType": "top", "value": 100}],"totalDataPoints": 52,"totalRelatedQueries": 25,"totalRelatedTopics": 25,"scrapedAt": "2024-12-01T10:30:00Z"}
Notes:
relatedQueriescontains both the top and rising lists (rankType), one set per compared term (keyword). Rising values are % growth (formattedValuemay beBreakout).geois"worldwide"when no country is set;dateis the UTC start of each period.
Input Example
{"query": "artificial intelligence,machine learning","geo": "US","timeRange": "today 12-m"}
Pricing
Pay-per-event, no start fee: $2.10 per 1,000 trend queries on the Apify Free plan, with lower prices on paid plans.
| Event | Free | Starter | Scale | Business | Enterprise |
|---|---|---|---|---|---|
Trend query (TREND_QUERY) | $2.10 | $1.80 | $1.60 | $1.30 | $1.30 |
Prices in USD per 1,000 events.
Cost examples (Free plan)
| Queries | Cost |
|---|---|
| 1 | $0.0021 |
| 100 | $0.21 |
| 1,000 | $2.10 |
Use cases
- SEO & content strategy — spot rising search terms in your niche
- Market research — compare brand or product interest across regions and time periods
- Journalism & analysis — track public interest around events, policies, or cultural moments
- AI agent workflows — feed structured trend data into LLM pipelines
Limitations
- Relative values — interest scores are Google's relative index (0–100 within the request), not absolute search volumes.
- Related topics often empty — Google frequently returns no related topics for these requests;
relatedTopicsmay be empty even when interest data and related queries are present. - Rate limits — Google Trends rate-limits aggressively. When that happens the actor waits and retries on new proxy sessions, so a run can take up to about 1 minute; if every attempt fails, the run ends FAILED with the last error.
- Low-volume terms — if Google returns no interest-over-time data (too little search volume), the run ends FAILED instead of producing an empty result.
- Max 5 terms — extra comma-separated terms beyond the fifth are ignored. One result (and one charge) per run.
Related Actors
- Google News Scraper API - Articles by Keyword, No Login — Scrape Google News articles for any keyword: headlines, sources, dates and URLs by country and language. News monitoring API, no API key or login.
- Bing Search Scraper & DuckDuckGo SERP API — Scrape Bing and DuckDuckGo search results: titles, URLs, snippets and positions per keyword. SERP API for rank tracking and SEO, no key and no login.
- YouTube Transcript Scraper - Captions & Comments — Scrape YouTube video transcripts (captions and auto-generated subtitles) with timestamps, video metadata and optional comments.