Google Trends API
The trend curve API for the new local SEO stack.
Google Trends has been free on the web for years, but locked behind a manual UI. Glimpse built a browser plugin ($79+/mo) to expose it. Exploding Topics built a trend discovery tool ($39+/mo). We expose the underlying trend curves as a clean API — historical monthly interest scores (0-100 scale), peak months, and trend direction (rising, stable, declining). Five keywords per call, 3-month to 5-year historical windows. 1 credit ($0.005) per query. Your agent detects seasonality and times content and ad spend accordingly.
POST /v1/keywords/trends · 1 credit / query
These prompts are the new seasonality workflow.
Connect Local SEO Data as an MCP server once (60 seconds, below). Then your agent detects seasonal patterns, forecasts peaks, and optimizes ad spend timing. Replace bracketed keywords or locations with your own.
Pull 12-month trends for [plumber, emergency plumber, pipe repair] in [Denver]. Highlight which months see peak searches. When should we ramp ad spend?
Get trend data for [roof repair] across [Denver, Austin, Seattle, Miami]. Show me which markets peak in winter vs summer. What's the geographic pattern?
Compare 5-year trends for [tiktok shop, ai overview, local seo] in [United States]. Flag any with trend_direction 'rising'. Which should we pivot budget toward?
Pull annual trends for all [12 service categories] our agency offers. Build a month-by-month content calendar around peak search months for each category.
What you get back
Live response for trend queries in Denver. Real API response, May 2026.
{
"status": "success",
"credits_used": 1,
"data": {
"location": "Denver, Colorado, United States",
"period": "12m",
"trends": [
{
"keyword": "plumber",
"data_points": [
{ "month": "2025-05", "interest": 68 },
{ "month": "2025-06", "interest": 65 },
{ "month": "2025-07", "interest": 58 },
{ "month": "2025-08", "interest": 52 },
{ "month": "2025-09", "interest": 60 },
{ "month": "2025-10", "interest": 72 },
{ "month": "2025-11", "interest": 85 },
{ "month": "2025-12", "interest": 92 },
{ "month": "2026-01", "interest": 95 },
{ "month": "2026-02", "interest": 88 },
{ "month": "2026-03", "interest": 75 },
{ "month": "2026-04", "interest": 70 }
],
"peak_month": "2026-01",
"trend_direction": "stable"
},
{
"keyword": "emergency plumber",
"data_points": [
{ "month": "2025-05", "interest": 62 },
{ "month": "2025-06", "interest": 58 },
{ "month": "2025-07", "interest": 48 },
{ "month": "2025-08", "interest": 42 },
{ "month": "2025-09", "interest": 55 },
{ "month": "2025-10", "interest": 68 },
{ "month": "2025-11", "interest": 82 },
{ "month": "2025-12", "interest": 90 },
{ "month": "2026-01", "interest": 100 },
{ "month": "2026-02", "interest": 92 },
{ "month": "2026-03", "interest": 78 },
{ "month": "2026-04", "interest": 65 }
],
"peak_month": "2026-01",
"trend_direction": "stable"
}
]
}
}Exactly what agents need to time content and ad spend
12 data points (or 24/60 for longer windows)
Each month gets a relative interest score (0-100 scale, where 100 = peak interest in the queried region and time period). Plumbing peaks in winter at 92-95 interest; summer bottoms out at 52-58. Your agent detects the curve and identifies the ramp-up and decline periods.
When demand is highest
Extracted automatically. For 'plumber' in Denver, peak_month is '2026-01' every year. Your agent flags this for content pushes and ad spend ramps 3-4 weeks prior.
Rising, stable, or declining
Summarizes the multi-year direction. 'ai overview' is rising. 'facebook ads' is stable. 'print marketing' is declining. Your agent prioritizes rising keywords for investment.
Location-scoped, 3-month to 5-year windows
Query trends for any city or state. Set period to '3m', '6m', '12m', or '5y'. Short windows catch recent momentum; long windows reveal multi-year patterns. Same keyword has different seasonality in Denver (winter plumbing peaks) vs Miami (no winter peak).
What SEO operators ship with this endpoint
Seasonal content planning
Agencies pull trend data for all client service categories (plumbing, HVAC, landscaping, roofing). Map content calendar to peak months. Write blog posts and landing pages 4-6 weeks before each peak so Google can index and rank them by the time demand surges.
→ For agenciesAd spend optimization
Multi-location PPC operators pull trends across 5-10 markets. Increase bid strategy and daily budgets 6 weeks before local peaks. Dial back spend in off-season. Winter contractors ramp up in October; landscapers in March. One API call per location per quarter keeps budgets synchronized to demand.
→ For PPC teamsEmerging trend detection
Pull 5-year trends for high-growth keywords ('ai overview', 'tiktok shop', 'local seo'). Compare them to stable keywords ('plumber', 'dentist'). Identify which emerging keywords are rising in your market and shift content strategy before competitors catch on.
→ For content strategistsFranchise resource allocation
Franchise networks pull trend data for all locations and service categories. Headquarters allocates marketing budget to franchises based on local seasonal demand. Some franchises peak in winter, others in spring — same network, different budgets per location.
→ For franchisesWhy not use Google Trends (free), Glimpse ($79+/mo), or Exploding Topics ($39+/mo)?
Google Trends is free but manual. Glimpse and Exploding Topics sell dashboards. Here's how the API model beats the dashboard approach for agents and automation.
| Tool | Cost model | Data access | Bulk queries | Agent-ready |
|---|---|---|---|---|
| Google Trends (free UI) | Free (but manual) | Web UI only, one keyword at a time | No batch API | No API, screenshot-based |
| Google Trends API (alpha, limited) | TBD (currently alpha/gated) | Official but restricted to alpha testers | Limited quota access | API-based but gated to small cohort |
| Glimpse ($79+/mo) | $79–299/mo per seat | Browser extension overlaying Google Trends | Limited, extension-based | Extension, not API-native |
| Exploding Topics ($39+/mo) | $39–99/mo per seat | Aggregates trends from Google, social, e-commerce, news | Limited dashboard export | No native API, manual export |
| Semrush Topic Research (included) | $139.95+/mo per seat | Semrush's proprietary trend algorithm | Dashboard-driven batching | API available but secondary |
| Ahrefs Content Explorer (included) | $129+/mo per seat | Ahrefs trend and content metrics | Limited API integration | Dashboard-first |
| DataForSEO Trends API ($0.001/task) | $0.001 per query | Proprietary normalized 0-100 scale | Full batch support | API-native but proprietary scale |
| LocalSEOData Google Trends API | $0.005 per query, no seats | Google Trends-sourced (via DataForSEO upstream) | Up to 5 keywords per call, unlimited calls | Native MCP + REST, agent-first |
Use it from your agent
Two integration surfaces: MCP for clients that speak MCP, REST API for everything else.
Direct MCP integration
Drop-in support in Claude Desktop, OpenClaw, Hermes Agent, and any MCP-aware client.
Add to your client's MCP config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"localseodata": {
"url": "https://mcp.localseodata.com",
"headers": {
"Authorization": "Bearer sk_live_..."
}
}
}
}REST API
For Perplexity Computer, ChatGPT Custom GPTs, custom agents, and any platform that calls REST endpoints directly.
Base URL:
api.localseodata.comSee the docs for endpoint reference and auth.
Your first call in three lines
Same endpoint, three syntaxes. The `keywords` array accepts up to 5 keywords per call (to match Google Trends' limitation). `location` is required in 'City, State, Country' format. Optional: `period` ('3m', '6m', '12m', or '5y'; default '12m'). One call = 1 credit.
curl -X POST https://api.localseodata.com/v1/keywords/trends \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"keywords": ["plumber", "emergency plumber", "pipe repair"],
"location": "Denver, Colorado, United States",
"period": "12m"
}'$0.005 per query
1 credit per trend query (supports up to 5 keywords per call). Free tier on signup includes 50 credits (50 trend queries). Monthly plans start at $19 and never expire. No per-seat fees, no team limits.
Common questions
What is the Google Trends API?+
POST /v1/keywords/trends. One call returns structured JSON with all trends and costs 1 credit ($0.005). Seasonality detection is the primary use case — plumbing spikes in winter, landscaping in spring, air conditioning in summer. This is the foundational endpoint for timing content and ad spend to demand curves.Where does the Google Trends data come from?+
How fresh is the trends data?+
What does the 0-100 interest scale mean?+
Can I look up more than 5 keywords per call?+
What time periods can I query?+
period: '3m' (last 3 months), '6m' (last 6 months), '12m' (last 12 months, default), or '5y' (last 5 years). Longer windows reveal multi-year patterns ('ai overview' rising sharply over 5 years). Shorter windows catch recent momentum ('tiktok shop' spike in the last 3 months). Each data point is monthly, regardless of window length.How does this compare to Google Trends (free UI)?+
How does this compare to Glimpse ($79+/mo)?+
How does this compare to Exploding Topics ($39+/mo)?+
How does this compare to DataForSEO Trends API ($0.001/task)?+
Can AI agents use this directly?+
claude_desktop_config.json (or any MCP-compatible client like OpenClaw, Hermes Agent, etc.), and Claude calls this endpoint from your prompt without you writing integration code. You say 'pull 12-month trends for plumbing keywords in Denver' and it happens. REST: Any agent that can make HTTPS calls (ChatGPT Custom GPTs, Perplexity Computer, custom Python agents) hits api.localseodata.com with Authorization: Bearer sk_live_.... The agent receives structured JSON and can reason about peak months, seasonal patterns, and trend direction — 'January is peak, let's ramp content and budget in October.'What changed in 2026 that made this category exist?+
Do you support multi-location and multi-language trends?+
location is required and must be in 'City, State, Country' format (e.g., 'Denver, Colorado, United States'). Trends are always geographic — the same keyword has different seasonality in Denver (winter peak) vs Miami (no winter peak). language support is via DataForSEO's backend, so Spanish, French, German, etc. are all supported. Multi-location workflows are standard: franchises pull trends for all locations to understand local demand curves. Multi-language works too — 'plumber' (English) vs 'fontanero' (Spanish) may have different seasonal patterns in bilingual markets.Often used in the same agent prompt
Search Volume API
Validate seasonal trends with absolute volume, CPC, and monthly breakdown.
POST /v1/keywords/suggestionsKeyword Suggestions API
Expand seeds into variants. Pair with trends to find seasonal long-tails.
POST /v1/keywords/relatedRelated Keywords API
Semantically related keywords. Check trends for the whole cluster.
POST /v1/keywords/opportunitiesKeyword Opportunities API
Rank keywords by difficulty vs your rank. Pair with trends for seasonal prioritization.
Time your content and ad spend to seasonal demand curves.
50 free credits on signup. 50 trend queries included. Pull 12-month trends for your target keywords in your first agent prompt.