Google Trends Scraper
Pricing
from $1.50 / 1,000 results
Go to Apify Store
Google Trends Scraper
Extract Google Trends data including interest over time and related queries. Perfect for SEO, market research, and content planning. No API key required.
Extract search trend data from Google Trends. Get interest over time, top and rising related queries for any keyword worldwide.
Features
- Interest over time data (0-100 scale)
- Top & rising related queries
- Country/region filtering
- Flexible time ranges (1 hour to all time)
- Automatic session & cookie management
- Proxy rotation (RESIDENTIAL / DATACENTER)
Input Configuration
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | Yes | - | Search keyword to get trends for |
geo | string | No | "" (worldwide) | Country code (US, JP, GB, etc.) |
time | string | No | today 12-m | Time range for trend data |
includeRelated | boolean | No | true | Also fetch related queries |
Time Range Options
| Value | Description |
|---|---|
now 1-H | Past 1 hour |
now 4-H | Past 4 hours |
now 1-d | Past day |
now 7-d | Past 7 days |
today 1-m | Past 30 days |
today 3-m | Past 90 days |
today 12-m | Past 12 months |
today 5-y | Past 5 years |
all | 2004 - present |
Example Input
{"keyword": "artificial intelligence","geo": "US","time": "today 12-m","includeRelated": true}
Output
Interest Over Time
{"keyword": "artificial intelligence","geo": "US","time": "today 12-m","date": "2025-04-06T00:00:00","value": 87,"isPartial": false}
Related Queries
{"keyword": "artificial intelligence","type": "related_query","relatedKeyword": "chatgpt","value": 100,"queryType": "top"}
Usage Example
const input = {"keyword": "ChatGPT","geo": "","time": "today 3-m","includeRelated": true};const run = await ApifyClient.actor('google-trends-scraper').call(input);const { items } = await ApifyClient.dataset(run.defaultDatasetId).listItems();console.log(items);
Important Notes
- This actor uses an unofficial Google Trends API that may change without notice
- RESIDENTIAL proxy is preferred (Google blocks datacenter IPs)
- Rate limiting and retry logic are built in
- If Google changes the API, the actor will exit gracefully with 0 results instead of crashing
Support
For issues or questions, contact the developer or open an issue on GitHub.
License
Apache-2.0