Google Trends API for Real-Time Search Interest & Breakout Topics
Our Google Trends API turns volatile consumer demand into clean, timestamped JSON time series without brittle headless scrapers, rotating cookie jars, or 429 rate blocks. Whether you are building an API for Google Trends velocity alerts, ecommerce demand forecasting, or multi-brand share-of-search dashboards, DataForAPI delivers normalized 0–100 interest curves, state-level regional heatmaps, and breakout query tables in seconds.
- Up to 5 Keywords Benchmarking
- Sub-Region, Metro & Category Filtering
- Rising & Breakout Topic Detection
| period | serp api | mcp server |
|---|---|---|
| 2026-09-01 to 2026-09-30 | 64 | 48 |
| 2026-10-01 to 2026-10-31 | 78 | 72 |
| 2026-11-01 to 2026-11-30 | 92 | 95 |
Production capabilities of our API for Google Trends pipelines
Unofficial open-source wrappers break whenever upstream session tokens change. Our managed edge gateway handles token negotiation, regional routing, and strict schema normalization across Web, YouTube, News, Images, and Shopping properties.
- Authentication
- Bearer dfa_live_...
- Live rate
- $0.0108
- Free trial
- $1.00 + $0 Sandbox
- Agent protocol
- /mcp + SKILL.md
Up to 5 Keywords Benchmarking
Compare up to five terms in one call across granular date windows—including past_hour, past_7_days, past_30_days, past_12_months, or custom date_from / date_to ranges—to quantify relative market momentum.
keywords: ["serp api", "mcp server"]Sub-Region, Metro & Category Filtering
Slice search momentum by country, state, DMA metro subregion, vertical category code, and search property (web, youtube, news, froogle) through one unified API for Google Trends.
type: "web", time_range: "past_12_months"Rising & Breakout Topic Detection
Capture top and rising related queries plus related entity topics jumping >500% weeks before trailing monthly volume averages update—ideal for SEO radar automation and quantitative market signals.
item_types: ["google_trends_graph", "google_trends_queries_list"]- Autonomous agent groundingFeed fresh citations, competitor ranks, and demand metrics into Claude Code, Codex, or custom RAG workflows.
- Programmatic SEO & monitoringSchedule batch checks across locales without maintaining proxy pools, headless browsers, or monthly SaaS seats.
- Internal BI & client reportingIngest deterministic JSON fields directly into Postgres, ClickHouse, or warehouse pipelines.
- Zero charge on upstream failuresEvery call pre-authorizes micro-USD and releases 100% automatically on any timeout or 5xx error.
- Free deterministic SandboxMint unlimited dfa_test_... keys to validate your parser in local dev and CI at $0.000000.
- Prepaid balance that never expiresTop up once and spend across all 12 families (42+ endpoints) at your own pace with per-key daily UTC caps.
Interactive Google Trends API sample
Test parameters immediately with $0.00 simulated data, or open in the full Playground with your API key.
POST https://dataforapi.com/v1/keywords_data/google_trends/explore/live200 OK · 38 ms · $0.0108| period | dataforapi | mcp server |
|---|---|---|
| 2026-09-01 to 2026-09-30 | 64 | 48 |
| 2026-10-01 to 2026-10-31 | 78 | 72 |
| 2026-11-01 to 2026-11-30 | 92 | 95 |
Time-series JSON schema returned by the Google Trends API
Responses follow our Keywords Data specification with UTC Unix timestamps, ISO date intervals, and missing-data flags so BI warehouses and LLM agents ingest series with zero custom parsing.
| Field | Type | Meaning |
|---|---|---|
| tasks[].result[].keywords | string[] | Ordered array of up to 5 compared seed terms in the exact request sequence. |
| tasks[].result[].items[].data[] | object[] | Timestamped intervals (date_from, date_to, timestamp) with normalized 0–100 integer values per term. |
| tasks[].result[].items[].averages | number[] | Mean relative interest index per term across the requested historical window. |
| cost | number (USD) | Exact USD charge debited from your non-expiring balance ($0.00265 Standard / $0.0108 Live / $0.0000 Sandbox). |
curl -X POST "https://dataforapi.com/v1/keywords_data/google_trends/explore/live" \
-H "Authorization: Bearer dfa_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '[{"keywords":["serp api","mcp server"],"location_code":2840,"language_code":"en","time_range":"past_12_months"}]'Clean REST API ergonomics and native MCP tool support
Run Trends queries directly in the browser Playground, call our REST API with Bearer auth, or connect Claude Code and Cursor via our Streamable HTTP MCP endpoint.
| Mode | Turnaround | Per call | Per 1,000 |
|---|---|---|---|
| Standard Queue ~45–180 sec async | ~45–180 sec async | $0.00265 | $2.65 |
| Priority Queue ~15–45 sec async | ~15–45 sec async | $0.0053 | $5.30 |
| Live Mode 1–5 sec sync | 1–5 sec sync | $0.0108 | $10.80 |
Every request reserves worst-case micro-USD upfront and refunds unused capacity or upstream failures automatically.
Google Trends API FAQ
Is there an official public Google Trends API for commercial SEO tools?
Public research alpha access is tightly restricted to academic applicants, which is why engineering teams use our commercial Google Trends API for guaranteed uptime, SLA-backed JSON schemas, and global country coverage.
How many terms can I compare in a single request?
Each task compares up to 5 keywords simultaneously across identical date ranges, categories, and locations, matching native multi-term comparison scaling.
What does the Google Trends API cost on DataForAPI?
Standard async requests cost $0.00265 per task, Priority requests cost $0.0053, and real-time Live requests cost $0.0108 per task, billed from your non-expiring USD balance.
Can I test time-series responses without spending balance?
Yes. Create a dfa_test_... Sandbox key in the Console to run unlimited $0.00 test calls with deterministic time-series curves, plus $1.00 in free Live trial credit upon signup.
Related endpoints on the same key
Combine search rankings, keyword demand, trends, and link graphs with a single balance.
Ranked organic results, sitelinks, local packs, and People Also Ask as clean JSON.
Full AI Overview markdown synthesis and cited grounding URLs alongside organic ranks.
Multi-engine web rankings, local business ratings, and video search results.
Batch monthly volume, CPC bids, and 12-month history for up to 1,000 keywords.
Referring domains, dofollow ratio, anchor text distributions, and link spam score.
Granular source URLs, anchor strings, and unused-row automatic USD refunds.
Every organic keyword a competitor ranks for with estimated traffic value.
Real-time technical SEO check for titles, canonicals, broken links, and response speed.
Detect web frameworks, CDNs, analytics stacks, and Whois registration profiles.
Brand citation monitoring, web sentiment polarity, and automated meta tag generation.
Google Shopping & Amazon marketplace product rankings, ASINs, Buy Box prices, and sellers.
iOS App Store and Android Play Store keyword rankings, app metadata, and user reviews.
Google Business reviews, hotel nightly rates, Trustpilot scores, and Tripadvisor listings.
Track brand citations and live grounded answers across ChatGPT, Claude, Gemini & Perplexity.
Inspect prepaid USD balance, daily spend caps, gateway health, and geo/language dictionaries.
Start with the Google Trends API
Sign in with Google for $1.00 free balance, send one Bearer header, and get structured JSON back.
curl -X POST "https://dataforapi.com/v1/keywords_data/google_trends/explore/live" -H "Authorization: Bearer $DATAFORAPI_KEY" -d '[{"keywords":["serp api","mcp server"],"location_code":2840,"language_code":"en","time_range":"past_12_months"}]'