Trends API

Google Trends Scraper API for Search Interest, Regional Demand, and Trending Topics

Retrieve Google Trends data for interest over time, regional demand, related topics, related queries, current trending searches, and Knowledge Graph topic IDs through structured JSON endpoints.

1,000 free credits
No credit card required

No credit card required · Failed requests cost 0 credits

GET /v1/google/trends/search
{
  "query": "electric vehicles,hybrid cars",
  "timeline": [
    {
      "date": "Jul 2026",
      "timestamp": 1785542400,
      "values": [
        {
          "query": "electric vehicles",
          "value": 82,
          "extracted_value": 82
        },
        {
          "query": "hybrid cars",
          "value": 64,
          "extracted_value": 64
        }
      ]
    }
  ],
  "averages": [
    {
      "query": "electric vehicles",
      "value": 76,
      "extracted_value": 76
    }
  ]
}
Endpoints

Explore All 7 Google Trends API Endpoints

Compare search interest, identify regional demand, discover related searches, resolve topic identifiers, and monitor current trends through structured JSON responses.

  1. Choose a term or topic
  2. Select a Trends dataset
  3. Apply time, location, and search-property filters
  4. Receive structured data
GET/v1/google/trends/search

Unified Trends Search

Access multiple Google Trends datasets through one endpoint by selecting a data_type.

Use it to retrieve interest over time, compare regional interest for multiple terms, measure interest by region for one term, or discover top and rising related topics and queries.

Only the response fields relevant to the selected data_type are populated. The remaining arrays stay empty.

Parameters
TIMESERIESoptionalInterest over time for up to five terms.
GEO_MAPoptionalRegional comparison for up to five terms.
GEO_MAP_0optionalRegional interest for one term or topic.
RELATED_TOPICSoptionalTop and rising related topics for one term.
RELATED_QUERIESoptionalTop and rising related searches for one term.
Request
curl --get \
  'https://scrapebadger.com/v1/google/trends/search' \
  --data-urlencode 'q=electric vehicles,hybrid cars' \
  --data-urlencode 'data_type=TIMESERIES' \
  --data-urlencode 'geo=US' \
  --data-urlencode 'date=today 12-m' \
  --data-urlencode 'tz=0' \
  --header 'x-api-key: YOUR_API_KEY'
Response200 OK
{
  "query": "electric vehicles,hybrid cars",
  "data_type": "TIMESERIES",
  "timeline": [
    {
      "date": "Jul 2026",
      "timestamp": 1785542400,
      "values": [
        {
          "query": "electric vehicles",
          "value": 82,
          "extracted_value": 82
        },
        {
          "query": "hybrid cars",
          "value": 64,
          "extracted_value": 64
        }
      ]
    }
  ],
  "averages": [
    {
      "query": "electric vehicles",
      "value": 76,
      "extracted_value": 76
    },
    {
      "query": "hybrid cars",
      "value": 59,
      "extracted_value": 59
    }
  ],
  "regions": [],
  "top_topics": [],
  "rising_topics": [],
  "top_queries": [],
  "rising_queries": []
}
View Unified Trends Search documentation

What Can You Build With the Google Trends Scraper API?

Keyword and content planning

Compare up to five keywords over the same time range to understand their relative search interest. Use interest timelines, averages, top queries, and rising queries to prioritise topics using current search behaviour rather than relying only on static keyword-volume estimates.

Unified Trends SearchInterest Over TimeRelated Topics and Queries

Seasonal demand research

Identify recurring peaks and periods of declining interest for products, services, events, and categories. Compare the same terms over one month, one year, five years, or the full available range to support campaign timing, editorial planning, and inventory research.

Interest Over TimeUnified Trends Search

Regional market analysis

Measure where a term has the strongest relative interest across countries, regions, states, DMAs, or cities where supported. Use the results to inform regional content, market research, campaign targeting, and localisation decisions.

Interest by RegionUnified Trends Search

Emerging-topic and news monitoring

Monitor current trending searches and associated news coverage by country. Combine trending searches with rising topics and queries to identify subjects that may require editorial coverage, internal analysis, or further validation.

Trending NowTrending SearchesRelated Topics and Queries
Sign Up For Free

1,000 free credits · No credit card required

Explore More Google Data APIs

Connect search-interest data with query discovery, search results, news coverage, and product visibility using the same ScrapeBadger account and API key.

Why Choose ScrapeBadger?

Build Faster

Structured JSON responses remove browser automation, proxy orchestration, and HTML parsing from your roadmap. Make your first request in minutes and move from proof of concept to production without maintaining scrapers.

Scale Confidently

99.9% uptime SLA. Your data pipeline does not stop because Google changes a page, rotates an anti-bot challenge, or moves a result block. Monitoring, session management, browser infrastructure, and parsing are all us.

All Google Data on One Platform

Search, Maps, News, Hotels, Trends, Jobs, Shopping, Patents, Scholar, Images, Videos, Finance, AI Mode, Lens, Local, Shorts, Flights, Products, and Autocomplete — every Google surface under one API key.

Integrate Anywhere

RESTful API, SDK support, MCP, CLI, and no-code options. Use ScrapeBadger in an existing system or a new application with consistent authentication, structured JSON, and unified billing.

Integrate With Your Stack

Use ScrapeBadger through an official SDK, a standard API request, MCP, CLI, or the tools already in your workflow.

Python SDK

Build asynchronous data pipelines with typed responses, retry handling, and access to the complete Google API suite.

Node.js SDK

Add Google data to Node.js and TypeScript applications with type definitions and support for both ESM and CommonJS.

REST API

Connect from any backend or programming language using standard HTTP requests. Responses arrive as structured JSON that can be stored, transformed, or passed into another service.

One API Key

Access Search, Maps, News, Trends, Shopping, Scholar, Flights, and every other supported Google product with one ScrapeBadger API key and one credit balance.

MCP for AI Tools

Give compatible AI agents access to Google Search, Maps, News, Trends, Shopping, Scholar, Images, Flights, and more through ScrapeBadger's MCP server.

ScrapeBadger CLI

Run Google searches, inspect trends, collect local business data, and export results as JSON, CSV, Markdown, or terminal-friendly tables without building an application.

Trusted by Developers Worldwide

See why developers choose ScrapeBadger for reliable, structured web data.

We switched from the official Twitter API and cut our costs by 95%. The pagination is seamless, and we've never hit a rate limit. Best decision we made this year.

MC
Marcus Chen
Lead Data Engineer at DataFlow Analytics
2 weeks ago

The follower and engagement endpoints are incredibly detailed. We use it for influencer research and competitor analysis. Response times are sub-100ms consistently.

SM
Sarah Mitchell
Marketing Director at SocialPulse Agency
1 month ago

Started with the Apify actor, then moved to the API for more control. The 1,000 free credits were enough to build our MVP. Now processing 2M+ tweets monthly.

JR
James Rodriguez
Founder at TweetMetrics
3 weeks ago

Perfect for academic research. The community and trends endpoints give us data we couldn't get anywhere else. Documentation could use more examples, but support is responsive.

EW
Emily Watson
Research Scientist at Stanford NLP Lab
1 month ago

We monitor 50,000+ accounts for our clients. ScrapeBadger handles it without breaking a sweat. The bulk ID endpoints are a game-changer for large-scale monitoring.

AP
Alex Petrov
CTO at MediaMonitor Pro
2 weeks ago

The geo and trends endpoints power our location-based analytics. Setup took 10 minutes. Their Apify actors are also great for quick one-off scrapes.

LP
Lisa Park
Product Manager at Trendy AI
3 weeks ago
Pricing

Simple, transparent pricing

Start with pay-as-you-go credits (never expire) or save up to 64% with a monthly or annual subscription. Failed requests never consume credits, and every Google API endpoint is included on every plan.

Not Sure Which Plan Fits Your Needs? Calculate Your Cost and Find the Right Plan.

Choose an endpoint and enter your expected request volume. Google APIs use flat per-request credits, making usage easy to forecast. Failed requests cost 0 credits.

FAQ

Frequently asked questions

Everything you need to know about the Trends API.

What data can I retrieve with the Google Trends Scraper API?

You can retrieve interest-over-time timelines, average interest values, regional interest, top and rising topics, top and rising queries, current trending searches, related news articles, and Knowledge Graph topic IDs. The available fields depend on the selected endpoint or data_type .

Are Google Trends values the same as search volume?

No. Interest-over-time and regional values represent relative popularity, normally measured on a scale from 0 to 100. A score of 100 represents the highest relative interest within the selected query, location, and time range. It does not mean 100 searches.

Can I compare multiple keywords with the Google Trends API?

Yes. Interest Over Time and the TIMESERIES data type accept up to five comma-separated terms. The unified GEO_MAP option also supports up to five terms for regional comparison. Regional single-term and related-data requests accept one term or topic.

What is the difference between Unified Trends Search and the shortcut endpoints?

Unified Trends Search uses data_type to return time-series, geographic, related-topic, or related-query data through one endpoint. Interest Over Time, Interest by Region, and Related Topics and Queries provide direct routes with narrower parameters and stable response shapes for those specific datasets.

Can I retrieve Google Trends data for YouTube, News, Images, or Shopping?

Yes. Use gprop to select web search, images, news, Shopping, or YouTube search interest. The documented Shopping property value is froogle . Keep the property unchanged when comparing terms or time periods.

What is a Google Trends topic MID?

A MID is the Machine ID of a Google Knowledge Graph entity. Searching a MID measures interest in the broader topic Google associates with that entity, while searching a text phrase measures interest in that specific query. Use Topic Autocomplete to find relevant MIDs.

What is the difference between Trending Now and Trending Searches?

Trending Now uses Google's public RSS-backed feed and supports category, activity-status, and sorting controls. Trending Searches uses Google's richer TrendsUi backend with country, language, and time-window parameters. Use Trending Now for filtered feed monitoring and Trending Searches when you want the richer backend response.

Does Google have an official Google Trends API?

Google announced an official Google Trends API in July 2025, but access is limited to approved alpha testers. As an alternative you can use ScrapeBadger's Google Trends Scraper API that offers authenticated JSON endpoints without requiring admission to Google's alpha programme.

Start Building With the Google Trends Scraper API

Use 1,000 free credits to compare search interest, identify regional demand, discover rising topics, and monitor current trending searches through structured JSON endpoints.

No credit card required · 1,000 free credits · Failed requests cost 0 credits

Disclaimer: ScrapeBadger is not affiliated with, endorsed by, or in any way officially connected with Google LLC or any of its subsidiaries or affiliates. Google and related trademarks are the property of their respective owners.