Fetch Google Trends interest and breakout queries as structured JSON with one SocialCrawl API key. Same success envelope and credit model as every other platform. Reads are priced in credits.
2 active endpoints. Advanced tier, 5 credits each.
GET /v1/google_trends/explore
GET /v1/google_trends/rising
What Google Trends endpoints does SocialCrawl ship?
Two live read endpoints for public Trends signals. Head-to-head interest over time for up to five keywords, plus rising and top related queries for a single term. Data API only. No Trends UI session, no unofficial scraper stack.
Compare 1-5 keywords as CSV. Returns series of dated 0-100 points per keyword plus per-keyword averages. Scope with location, timeframe, and category. Values are relative within the request set.
Expand one keyword into rising breakouts and top related queries. Rising rows carry growth percent. Top rows use a 0-100 relative value. Pair with explore to size a trend and find drivers.
Returns Google Trends interest over time for up to five keywords: dated points scored 0 to 100 per keyword, plus each keyword's average over the window.
Use it to size a search term or compare several terms head to head over a chosen period, region, and category.
keywords · 1-5 comma-separated keywords (e.g. 'reverse audio,voice changer'). With multiple keywords the 0-100 values are normalised across the set for direct comparison. Each keyword must be 2 to 100 characters. More than 5 keywords, a 1-character keyword, or a keyword made only of punctuation is rejected with a free 400 before the request is billed.
// Running this live needs your own API key. Hit "Try it" to see an example response
How the Google Trends API works
Google Trends is a normal SocialCrawl surface. You call GET /v1/google_trends/… with an API key, spend credits on live misses, and get a single JSON envelope back. No second Trends vendor key. No OAuth.
Authenticate every call
Send your key in the x-api-key header. The same key works for social reads, Universal Search, Tavily, and the rest of the catalog.
GET with query params
Both routes are GET. Pass keywords (1-5 CSV) on explore, or a single keyword on rising. Optional location, timeframe, and category (explore) are validated before charging.
Pay in credits, not seats
Each live miss costs 5 credits (advanced tier). Cache hits cost 0. Empty or hard failures refund. Bad params return 400 with no charge.
Read one JSON envelope
Every response is the same shape: success, data, credits_used, credits_remaining, request_id, cached. Explore and rising land as Analytics payloads under data.
The usual integration chain
Most products size a keyword set first, then pull breakouts for the winners, then re-run explore with a tighter location or window.
01Compare terms
GET /v1/google_trends/explore?keywords=…
series[] and averages[] for 1-5 keywords
Relative 0-100 scores show which term leads in the window.
02Find breakouts
GET /v1/google_trends/rising?keyword=…
rising[] growth and top[] related queries for one keyword
Drivers and adjacent language sit next to the interest curve.
03Scope geography
GET /v1/google_trends/explore?keywords=…&location=…
Same explore shape filtered by location (and optional timeframe)
Country or region views catch demand that global windows hide.
request
GET /v1/google_trends/explore
?keywords=chatgpt,claude
&timeframe=past_12_months
Host: www.socialcrawl.dev
x-api-key: sc_your_api_key_here
GET /v1/google_trends/rising?keyword=electric+vehicles
Both endpoints use the Analytics archetype. Field names stay stable so dashboards and agents do not relearn a Trends-only schema.
Analytics (explore)explore
series[] per keyword with dated points { date, value }; averages[] mean score per keyword over the window
Analytics (rising)rising
rising[] breakout queries with growth percent; top[] related queries with 0-100 relative value
Inside the gateway
Same request lifecycle as every other /v1 platform endpoint. Google Trends is not a sidecar.
01
Edge receives the call
Next.js catch-all routes into the Hono social API. We mint a request_id, authenticate the key, then enforce rate limit (600/min) and concurrency (50 in flight per key).
02
Validate, then debit
Registry lookup finds google_trends/explore or google_trends/rising. Keyword count and format checks run first. Invalid input returns 400 with no charge. Valid calls debit 5 credits atomically before upstream work.
03
Cache or fetch
A deterministic cache key is built from platform, resource, and params. Hit: return immediately, credits_used = 0. Miss: Google Trends explore is called live. Typical billed refresh is a few seconds. Exact repeats may hit the short search cache.
04
Normalize and return
Upstream Trends payload is mapped into the Analytics shape (series and averages, or rising and top), wrapped in the success envelope, and logged for billing audit.
Billing rules that matter in production
Live miss on explore: 5 credits
Live miss on rising: 5 credits
Cache hit: 0 credits
Empty / hard fail: auto-refund
Bad params: 400, never charged
No credits: 402, never charged
keywords must be 1-5 CSV on explore
rising accepts a single keyword only
No second Trends vendor bill on your side
How we get the data
Google Trends is public search-interest analytics. We normalize it into SocialCrawl Analytics so your code does not own a second vendor client.
What Trends is for this API
Relative search interest and related-query breakouts. Research, demand sizing, and content planning. Not absolute search volume and not Google Ads auction data.
How SocialCrawl reaches it
Google Trends Explore is read in live mode as a synchronous server-side call. You never hold third-party credentials for these two routes.
What leaves our edge
A unified JSON envelope: success, data, credits_used, request_id, cached. Explore returns series and averages. Rising returns rising and top related buckets.
What we do not ship live
No Trends UI automation. No multi-keyword related-queries on rising (upstream is single-keyword). No write or alert endpoints.
field map sketch
interest-over-time points→ Analytics.series0-100 relative popularity points over the selected timeframe
keyword averages→ Analytics.averagesmean interest per keyword across the window
rising / top related→ related query bucketsbreakout growth percent plus top related 0-100 values
What this API is used for
The jobs this API is most often used for.
2active Google Trends endpoints in the registry
5 crcredits per live Trends call
Keyword comparison and breakout discovery
Callers run explore on short keyword sets, then rising on the winning term. Location-scoped re-runs show up when global windows are too coarse. Two Trends primitives on the same SocialCrawl key and envelope. Head-to-head explore plus breakout rising without a second vendor integration.
Billed refreshes typically take a few seconds (often 3-8s). Exact repeats may serve from the short search cache at 0 credits.
What people build with the Google Trends API
The jobs Google Trends data is most often used for. Each one is a full recipe with the endpoint chain and pricing.
Every endpoint returns structured JSON in a unified envelope. Computed fields such as engagement rate and content category are included only where the endpoint supports them and the required source inputs are present.
Three endpoints over current public Google Trends data: /v1/google_trends/trending returns the Trending Now list for a country or region with no keyword in, /v1/google_trends/explore returns interest-over-time series for up to 5 keywords with 0-100 relative-popularity scores normalised across the set, and /v1/google_trends/rising returns the related and rising (breakout) queries for one keyword, each rising query with its growth percentage. Exact repeats may use the 2-minute search cache; cache hits cost 0 credits.
Can I get Google Trends Trending Now without a keyword?
Yes. /v1/google_trends/trending takes a location and a time window, not a keyword, and returns the same list trends.google.com/trending shows: each trend's search-volume bucket, increase percentage, start and end time, whether it is still active, its categories, the related searches Google groups into it, and up to 3 linked news articles. Pass a country code such as DE or a region such as DE-BY, a window of 4, 24, 48 or 168 hours, and optionally a category, active-only status, and sort order. Each call costs 5 credits.
Does Google have an official Trends API?
Google has historically offered no generally available official Trends API, which is why most teams scrape the site or export CSVs by hand. SocialCrawl returns the same interest-over-time and related-queries data as structured JSON through one GET request, on the same key as its other data platforms.
Can I compare multiple keywords head-to-head?
Yes. Pass up to 5 comma-separated keywords to /v1/google_trends/explore and the 0-100 values come back normalised across the whole set, exactly like the Google Trends compare view, so a 50 for one keyword genuinely means half the peak interest of the set's 100.
What are rising and breakout queries?
The rising list from /v1/google_trends/rising contains the related searches whose interest grew the most over your window, each with a growth percentage. A true breakout can read into the thousands (3200 means +3200%). The top list alongside it holds the most-searched related queries with 0-100 scores.
Can I scope trends by location and time?
Yes. Both endpoints take a location (a name like 'United States' or a numeric code) and a timeframe preset from past_hour up to past_5_years. Explore additionally takes a numeric Google Trends category code so you can isolate an industry.
How much do Google Trends calls cost?
Both endpoints are on the advanced tier. A billed refresh typically returns in 3-8 seconds; exact repeats may use the 2-minute search cache and cost 0 credits. Cache-Control: no-cache requests a billed refresh. New accounts get 100 free credits with no card required, and the same credit balance covers every other SocialCrawl platform.
Is there a Google Trends data API?
There is no official public Google Trends data API, which is why teams end up scraping the site or exporting CSVs by hand. SocialCrawl fills that gap: /v1/google_trends/explore returns interest-over-time for up to 5 keywords with normalised 0-100 scores, and /v1/google_trends/rising returns the related and breakout queries behind a trend with growth percentages. Both come back as structured JSON on one x-api-key, scoped by location, timeframe, and category.
How do I scrape Google Trends without getting blocked?
Skip the scraping and call SocialCrawl instead. Google Trends has no official API and throttles automated requests, so a self-built scraper breaks whenever the layout shifts. SocialCrawl returns clean JSON from /v1/google_trends/explore and /v1/google_trends/rising, with block handling managed upstream. A billed refresh typically takes 3-8 seconds; exact repeats may use the 2-minute search cache and cost 0 credits. Cache-Control: no-cache requests a billed refresh. New accounts get 100 free credits with no card.
Is scraping Google Trends data legal?
SocialCrawl returns publicly available Google Trends data and does not access private or login-gated content. Whether scraping fits your project depends on your use case and jurisdiction. You are responsible for complying with Google Trends's terms of service and applicable data-protection laws such as GDPR and CCPA. This is general information, not legal advice.