Search & SEO

Google Trends API

The Google Trends API returns search-interest data as clean JSON.

8 actionsLive JSON1,000 free creditsMCP-ready
Get a free keyOpen in playground

🤖 Using an AI assistant? Copy this link into ChatGPT / Claude / Cursor — it reads every endpoint and parameter instantly and tells you if this API fits your use case.

The primary interest_over_time endpoint returns a 0-100 timeline per keyword and geo, and you can pull related_queries, related_topics, interest_by_region, trending_now, suggestions and categories. It is built for trend research, content planning and market intelligence that need Trends data without waiting on the official alpha. One ReefAPI key, one shared credit pool, the standard envelope.

Live example

Real request and response JSON

Captured from the indexed primary action, interest_over_time, on .

Captured request
{
  "method": "POST",
  "url": "https://api.reefapi.com/google-trends/v1/interest_over_time",
  "headers": {
    "x-api-key": "$REEF_KEY",
    "content-type": "application/json"
  },
  "body": {
    "keyword": "bitcoin",
    "geo": "US",
    "timeframe": "today 12-m"
  }
}
Captured response
{
  "ok": true,
  "meta": {
    "api": "google-trends",
    "endpoint": "interest_over_time",
    "mode": "live",
    "latency_ms": 2226.8,
    "record_count": 53,
    "bytes": 14239,
    "cache_hit": false,
    "completeness_pct": 100
  },
  "data": {
    "keywords": [
      "bitcoin"
    ],
    "geo": "US",
    "timeframe": "today 12-m",
    "category": 0,
    "property": "",
    "timeline": [
      {
        "date": "[redacted-phone]",
        "timestamp": 1752364800,
        "formatted_time": "Jul 13 – 19, 2025",
        "value": 54,
        "has_data": true
      },
      {
        "date": "[redacted-phone]",
        "timestamp": 1752969600,
        "formatted_time": "Jul 20 – 26, 2025",
        "value": 44,
        "has_data": true
      },
      {
        "date": "[redacted-phone]",
        "timestamp": 1753574400,
        "formatted_time": "Jul 27 – Aug 2, 2025",
        "value": 48,
        "has_data": true
      }
    ]
  }
}
Actions

What the Google Trends API does

ActionDescriptionConcrete use caseKey params
interest_over_timeSearch-interest timeline (0-100) for a keyword or up to 5 compared keywords, by geo+timeframeSEO teams call interest_over_time to get search-interest timeline (0-100) for a keyword or up to 5 compared keywords, by geo+timeframe.keyword, keywords, geo, timeframe, category, ...
related_queriesTop + rising related search queries for a keyword (rising shows Breakout / +%)Content strategists call related_queries to get top + rising related search queries for a keyword (rising shows Breakout / +%).keyword, geo, timeframe, category, property
related_topicsTop and rising related topics (entity name and type) from Google Trends. Note: Google currently returns empty results for this widget — use related_queries for keyword data instead.Rank trackers call related_topics to get top and rising related topics (entity name and type) from Google Trends.keyword, geo, timeframe, category, property
interest_by_regionSearch interest by sub-region (states/countries), 0-100 normalized — single keyword; multiple keywords returns the compared breakdown by region (per-keyword %-share)AI answer-monitoring tools call interest_by_region to search interest by sub-region (states/countries), 0-100 normalized.keyword, keywords, geo, timeframe, resolution, ...
trending_nowCurrently trending searches for a geo (title + approx traffic + news articles)SEO teams call trending_now to get currently trending searches for a geo (title + approx traffic + news articles).geo
suggestKeyword autocomplete — candidate topics/entities (the Google Trends suggestion list) so you can pick the right entity (e.g. the 'Apple Inc. — Technology company' topic mid vs the fruit) before querying interest_over_time/related.Content strategists call suggest to get keyword autocomplete.keyword, hl
categoriesList the Google Trends category taxonomy (id + name, hierarchical) so you can find the right `category` id to narrow interest_over_time / related_queries / interest_by_region (e.g. 7=Finance, 5=Computers & Electronics). Optionally filter by a name substring.Rank trackers call categories to list the Google Trends category taxonomy (id + name, hierarchical) so you can find the right….query
realtime_trendingRealtime trending story-clusters for a country (richer than trending_now): each cluster has a title, approximate search-traffic volume, the FULL related-query set, category ids, and an article count. Best for 'what is breaking right now' research.AI answer-monitoring tools call realtime_trending to get realtime trending story-clusters for a country (richer than trending_now).geo, hours, limit
Code samples

Call interest_over_time from your stack

curl -X POST https://api.reefapi.com/google-trends/v1/interest_over_time \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"keyword":"bitcoin","geo":"US","timeframe":"today 12-m"}'
MCP one-liner
Ask your MCP-connected assistant: call reefapi.google-trends.interest_over_time with {"keyword":"bitcoin","geo":"US","timeframe":"today 12-m"}.
Use cases

Who uses this API and why

  • Content teams call interest_over_time and related_queries to plan around demand.
  • Market intelligence uses interest_by_region to target geographies.
  • Trend trackers use trending_now to catch rising topics early.
FAQ

Questions developers ask before integrating

What is the Google Trends API?

Google Trends API is a ReefAPI endpoint group for search interest over time, by region, and trending now. It returns live JSON through POST requests under /google-trends/v1.

Is the Google Trends API free to try?

Yes. ReefAPI starts with 1,000 free credits, no card required. Google Trends calls use the same shared credit balance as every other ReefAPI engine.

Do I need a Google Trends login or account?

No login to Google Trends is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.

How fresh is the Google Trends data?

The page example is captured from a live interest_over_time call, and production requests fetch live data through ReefAPI rather than a static sample.

How many credits does the Google Trends API use?

Google Trends actions currently cost 1-2 credits per successful call. Failed or blocked calls are free, and all APIs draw from one credit pool.

Can I call Google Trends from an AI assistant or MCP client?

Yes. Connect ReefAPI once through MCP and your assistant can call google-trends actions with the same key, credit pool and JSON envelope used by normal REST requests.

Is the Google Trends API a Google Trends scraper?

It is the managed alternative to a DIY Google Trends scraper. Instead of building and maintaining your own scraper — proxies, headless browsers, captcha and constant breakage — you call one ReefAPI endpoint and get the same search interest over time, by region, and trending now back as clean JSON.

Why does my Google Trends scraper keep getting blocked?

Most Google Trends scrapers break on anti-bot defenses, rate limits and IP bans that need rotating residential proxies and browser fingerprinting to clear. ReefAPI handles all of that for you — no proxies, no captchas, no maintenance — and returns live JSON. Blocked or failed calls are free.

docs / google-trends

Google Trends

Search interest over time, by region, and trending now.

base /google-trends/v18 endpoints
post/google-trends/v1/interest_over_time1 credit

Search-interest timeline (0-100) for a keyword or up to 5 compared keywords, by geo+timeframe

ParameterAllowed / rangeDescription
keywordrequiredThe search term to analyze (e.g. 'bitcoin'). For multi-term compare use 'keywords'.
keywordsoptionalUp to 5 terms to compare (array, or a comma-separated string). When given, overrides 'keyword'; extras beyond 5 are dropped.
geooptionalGeography filter: empty = Worldwide; a country code (US, GB, DE) or a sub-region code (US-CA, GB-ENG). Country names and US-state names (e.g. 'United Kingdom', 'Texas', 'Austin, TX') are auto-mapped to codes. Omit for worldwide.
timeframe = today 12-moptionalDate range in Google Trends syntax, e.g. 'today 12-m', 'today 5-y', 'now 7-d', 'all', or an explicit 'YYYY-MM-DD YYYY-MM-DD'.
category = 0optional0–Google Trends category id to narrow the topic (0 = All categories). e.g. 7=Finance, 5=Computers & Electronics.
propertyoptional · images · news · youtube · froogleWhich Google property's search interest to measure. Empty = web search.
Try in playground →
post/google-trends/v1/interest_by_region1 credit

Search interest by sub-region (states/countries), 0-100 normalized — single keyword; multiple keywords returns the compared breakdown by region (per-keyword %-share)

ParameterAllowed / rangeDescription
keywordrequiredThe search term to analyze (e.g. 'bitcoin'). For multi-term compare use 'keywords'.
keywordsoptionalUp to 5 terms to compare (array, or a comma-separated string). When given, overrides 'keyword'; extras beyond 5 are dropped.
geooptionalGeography filter: empty = Worldwide; a country code (US, GB, DE) or a sub-region code (US-CA, GB-ENG). Country names and US-state names (e.g. 'United Kingdom', 'Texas', 'Austin, TX') are auto-mapped to codes. Omit for worldwide.
timeframe = today 12-moptionalDate range in Google Trends syntax, e.g. 'today 12-m', 'today 5-y', 'now 7-d', 'all', or an explicit 'YYYY-MM-DD YYYY-MM-DD'.
resolutionoptionalCOUNTRY · REGION · CITY · DMAinterest_by_region granularity. Defaults to the geo's natural level; an unrecognized value is ignored.
category = 0optional0–Google Trends category id to narrow the topic (0 = All categories). e.g. 7=Finance, 5=Computers & Electronics.
propertyoptional · images · news · youtube · froogleWhich Google property's search interest to measure. Empty = web search.
Try in playground →
post/google-trends/v1/suggest1 credit

Keyword autocomplete — candidate topics/entities (the Google Trends suggestion list) so you can pick the right entity (e.g. the 'Apple Inc. — Technology company' topic mid vs the fruit) before querying interest_over_time/related.

ParameterAllowed / rangeDescription
keywordrequiredThe term to autocomplete into Trends topics/entities.
hl = en-USoptionalUI language for suggestion titles (e.g. en-US, tr, de).
Try in playground →
post/google-trends/v1/categories1 credit

List the Google Trends category taxonomy (id + name, hierarchical) so you can find the right `category` id to narrow interest_over_time / related_queries / interest_by_region (e.g. 7=Finance, 5=Computers & Electronics). Optionally filter by a name substring.

ParameterAllowed / rangeDescription
queryoptionalOptional case-insensitive substring to filter category names (e.g. 'finance', 'sports'). Omit to list the full taxonomy.
Try in playground →