Google Trends Scraper: Timeline, Regions & Queries avatar

Google Trends Scraper: Timeline, Regions & Queries

Pricing

$5.00 / 1,000 google trends keyword or comparison results

Go to Apify Store
Google Trends Scraper: Timeline, Regions & Queries

Google Trends Scraper: Timeline, Regions & Queries

Collect interest over time, regional breakdowns, and related topics or queries from Google Trends. Compare up to five terms per chart. Requests run sequentially and stop if Google rate-limits them.

Pricing

$5.00 / 1,000 google trends keyword or comparison results

Rating

0.0

(0)

Developer

Rardiel Andrés Ceballo Salas

Rardiel Andrés Ceballo Salas

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Explore interest over time, regional breakdowns, related queries and related topics from Google Trends.

Attribution Notice: All data extracted by this Actor comes from Google Trends. When reusing or publishing these datasets, please include the attribution required by Google:
Data source: Google Trends (https://www.google.com/trends) (automatically included in every output item under source and attribution).


The Actor retrieves the public Google Trends widgets sequentially. Each item includes its source. You pay for each item saved to the dataset.

  1. Direct Widget Endpoint Integration (httpx): Queries /trends/api/explore, /trends/api/widgetdata/multiline, /trends/api/widgetdata/comparedgeo, and /trends/api/widgetdata/relatedsearches (permitted by trends.google.com/robots.txt), strips the )]}' XSSI prefix, and normalizes timestamps to UTC ISO-8601.
  2. Request pacing and rate limits.
    • The Actor makes one request at a time and keeps its cookies for the duration of the run.
    • A refusal from the configured proxy stops the run.
    • A Google HTTP 429 stops all remaining requests. The failure record includes a valid Retry-After header when supplied.
  3. Billing. Completed items stay in the dataset. The failures record lists refused and deferred terms.
  4. Single-Term or 5-Term Comparison Mode (compare): Query keywords individually (compare: false) or batch them into comparative groups of up to 5 keywords (compare: true) on a shared 0–100 scale.

Input Parameters

FieldTypeDefaultDescription
keywordsarray<string>(required)List of search terms to query. Deduplicated automatically.
comparebooleanfalsefalse: 1 item per keyword. true: groups keywords in batches of up to 5 into a single comparative query.
geostring"US"ISO country/region code ("US", "GB", "ES", "US-CA") or "" for Worldwide.
timeRangestring"today 3-m"Preset ("now 1-H", "now 4-H", "now 1-d", "now 7-d", "today 1-m", "today 3-m", "today 12-m", "today 5-y", "all") or custom "YYYY-MM-DD YYYY-MM-DD".
categoryinteger0Google Trends numeric category ID (0 = All categories).
propertystring""Search surface: "" (Web), "images", "news", "youtube", or "froogle" (Shopping).
includeTimelinebooleantrueInclude Interest Over Time (timeline).
includeRegionsbooleanfalseInclude Interest by Subregion/Country (regions).
includeRelatedbooleanfalseInclude Related Queries and Related Topics (top and rising).
hlstring"en-US"Language code for region/topic labels (e.g., "en-US", "es-ES").
maxItemsinteger100Maximum number of successful items (terms or comparison groups) to output.
proxyGroupstring"DATACENTER"Select the Apify Proxy group for the run.
proxyConfigurationobject{"useApifyProxy": true}Standard Apify Proxy configuration (falls back to direct connection locally).

Example Input

{
"keywords": ["python", "rust", "typescript"],
"compare": false,
"geo": "US",
"timeRange": "today 3-m",
"category": 0,
"property": "",
"includeTimeline": true,
"includeRegions": true,
"includeRelated": true,
"hl": "en-US",
"maxItems": 20,
"proxyGroup": "DATACENTER",
"proxyConfiguration": {
"useApifyProxy": true
}
}

Output Schema

Each dataset item represents one keyword (when compare: false) or one group of up to 5 keywords (when compare: true):

{
"keywords": ["python"],
"geo": "US",
"timeRange": "today 3-m",
"category": 0,
"property": "",
"timeline": [
{
"date": "2026-07-19T00:00:00Z",
"value": 95,
"isPartial": false
},
{
"date": "2026-07-20T00:00:00Z",
"value": 100,
"isPartial": false
}
],
"regions": [
{
"geoCode": "US-CA",
"geoName": "California",
"value": 100
}
],
"relatedQueries": {
"top": [
{
"query": "what is python",
"value": 100,
"formattedValue": "100",
"link": "https://trends.google.com/trends/explore?q=what+is+python&date=today+3-m&geo=US"
}
],
"rising": [
{
"query": "python 3.13",
"value": 450,
"formattedValue": "+450%",
"link": "https://trends.google.com/trends/explore?q=python+3.13&date=today+3-m&geo=US"
}
]
},
"relatedTopics": {
"top": [
{
"title": "Python",
"type": "Programming language",
"mid": "/m/05z1_",
"value": 100,
"formattedValue": "100",
"link": "https://trends.google.com/trends/explore?q=/m/05z1_&date=today+3-m&geo=US"
}
],
"rising": []
},
"exploreUrl": "https://trends.google.com/trends/explore?q=python&date=today+3-m&geo=US&hl=en-US",
"fetchedAt": "2026-10-19T16:55:00Z",
"source": "Google Trends",
"attribution": "Data source: Google Trends (https://www.google.com/trends)"
}

Pricing (Pay-Per-Event)

You only pay for successfully extracted dataset items (apify-default-dataset-item). Startup (apify-actor-start) and failed terms cost $0.00:

  • Price per item (apify-default-dataset-item): $0.005 USD per item ($5.00 per 1,000 keywords or comparison groups), all-inclusive of platform compute (256 MB) and proxy usage.
  • Spending Cap Enforcement: Checks is_event_charge_limit_reached("apify-default-dataset-item") before emitting each item and halts cleanly when your budget limit is reached.
ScenarioItems (maxItems)Total User Cost ($0.005/item)
Single AI agent lookup1$0.005
Quick keyword batch10$0.05
Standard SEO keyword batch100$0.50
Large research dataset1,000$5.00

Limits, Rate Limiting & Terms Compliance

  • Respects robots.txt: Accesses only /trends/ and /trends/api/* endpoints permitted by https://trends.google.com/robots.txt. Never requests disallowed /explore? or /trends/explore? HTML pages.
  • Anonymous Public Access Only: Uses only the standard anonymous NID cookie issued by trends.google.com. Never uses logged-in accounts or CAPTCHA bypass services.
  • Required Attribution: Per Google Trends Help, cite "Data source: Google Trends (https://www.google.com/trends)" when publishing or redistributing data.

Frequently Asked Questions (FAQ)

1. What does this Actor cost?

This Actor uses Apify's Pay-Per-Event (PPE) model at $0.005 USD per successful dataset item ($5.00 per 1,000 keywords or comparison groups), with a $0.00 startup fee. Platform compute and proxy costs are included in the per-item price.

2. Why does this Actor charge per item instead of a startup fee or monthly rental?

Each saved dataset item costs $0.005. A failed or skipped keyword incurs zero event charges.

3. What data fields does each output item return?

Each dataset item returns keywords, geo, timeRange, category, property, timeline (UTC ISO-8601 dates and 0–100 normalized interest scores), regions (when includeRegions: true), relatedQueries and relatedTopics with top and rising lists (when includeRelated: true), a human-verifiable exploreUrl, fetchedAt timestamp, source, and Google's required attribution string.

4. Do I need a Google API key or logged-in Google account?

No. The Actor connects anonymously to Google Trends' public widget endpoints, acquires a standard anonymous NID session cookie automatically, and requires zero external API keys or Google account credentials.

5. What are the rate limits, proxy options, and safety controls?

The Actor makes one request at a time with a default interval of at least 1.5 seconds. If Google limits requests, check the failures record for the suggested time to try again.

6. How can I use this Actor in practical workflows or AI agent pipelines?

  • SEO & Content Research: Run 20–100 seed keywords with includeRelated: true to discover breakout (rising) queries and topics.
  • Brand Share-of-Search Benchmarking: Set compare: true with up to 5 competitor brand names (["openai", "anthropic", "gemini"]) and includeRegions: true to compare relative interest across countries or US states.
  • AI Agent / MCP Tool Calls: Trigger single-term or 5-term runs on demand with maxItems: 5 for $0.025 total cost and zero fixed overhead.