100 free credits — no credit card required.Start building
Logo
Google Trends logoGoogle Trends API

Compare Google Trends keywords with one API

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.

Google Trends logo
/v1/google_trends

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.

/v1/google_trends/explore

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.

keywords (1-5 CSV), location, timeframe, category

/v1/google_trends/rising

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.

keyword, location, timeframe

Google Trends API2 endpoints supported
View docs

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.

GET/v1/google_trends/explore?keywords=uv+index&timeframe=past_90_days

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.

$ curl https://www.socialcrawl.dev/v1/google_trends/explore?keywords=uv+index&timeframe=past_90_days \
    -H "x-api-key: sc_YOUR_API_KEY"
— · idle
// 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
response envelope
{
  "success": true,
  "data": {
    "series": [],
    "averages": []
  },
  "credits_used": 5,
  "credits_remaining": 9999,
  "request_id": "req_…",
  "cached": false
}

What lands in data

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.

  1. 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).

  2. 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.

  3. 03

    Cache or fetch

    A deterministic cache key is built from platform, resource, and params. Hit: return immediately, credits_used = 0. Miss: live DataForSEO Google Trends explore. Typical billed refresh is a few seconds. Exact repeats may hit the short search cache.

  4. 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 separate DataForSEO 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

DataForSEO Google Trends Explore in live mode. Synchronous server-side call. You never hold DFS 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 pointsAnalytics.series0-100 relative popularity points over the selected timeframe
keyword averagesAnalytics.averagesmean interest per keyword across the window
rising / top relatedrelated 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 DataForSEO 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.

Use case examples

Common ways teams put this data to work, and the stack each one tends to run.

SEO and content planners

Python, notebooks, CMS jobs

Compare candidate topics with explore, then rising for adjacent queries before committing to a brief.

Market research teams

Node, BI loads, cron

Track relative interest by location and timeframe. Export series into dashboards next to social volume.

Agent and product jobs

Go, workers, Explorer

Agents call explore then rising in one workflow. Same key as Universal Search and social reads.

Call it in two lines

Each live Trends call is 5 credits. Cache hits are free. Explore takes 1-5 keywords. Rising takes one keyword.

curl "https://www.socialcrawl.dev/v1/google_trends/explore?keywords=chatgpt,claude&timeframe=past_12_months" \
  -H "x-api-key: sc_your_api_key_here"
curl "https://www.socialcrawl.dev/v1/google_trends/rising?keyword=electric+vehicles" \
  -H "x-api-key: sc_your_api_key_here"
Google Trends logoGoogle Trends on SocialCrawl

Same key as the rest of the catalog

Endpoints

What data does the Google Trends API return?

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.

Comparison

How does SocialCrawl compare to Scraping Google Trends yourself for Google Trends data?

Same Google Trends data, two very different paths. Auth, rate limits, schema, and cost — side by side.

Access

SocialCrawl
One GET request returns structured JSON
Scraping Google Trends yourself
No official API; scrape the site or export CSVs by hand

Keyword comparison

SocialCrawl
Up to 5 keywords, scores normalised across the set
Scraping Google Trends yourself
Manual compare-view exports, one screenshot at a time

Rising queries

SocialCrawl
Breakout list with growth percentages in the response
Scraping Google Trends yourself
Fragile DOM scraping that breaks on layout changes

Freshness

SocialCrawl
Current public results; billed refreshes typically take 3-8 seconds, exact repeats may use the 2-minute cache
Scraping Google Trends yourself
Whenever your scraper last survived

Pricing

SocialCrawl
Advanced-tier credits, one balance across 48 platforms
Scraping Google Trends yourself
Proxy and maintenance costs plus blocked-request retries
FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
What is the SocialCrawl Google Trends API?
Two endpoints over current public Google Trends data: /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.
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.

Ask AI about SocialCrawl

Read the Google Trends API reference in the docs

🤖 AI agent or LLM? Read this page as markdown