     [Blog](https://scrapfly.io/blog)   /  [api](https://scrapfly.io/blog/tag/api)   /  [Google Trends API Guide and Alternatives for Developers](https://scrapfly.io/blog/posts/google-trends-api-alternatives)   # Google Trends API Guide and Alternatives for Developers

 by [Mayada Shaaban](https://scrapfly.io/blog/author/mayada-shaaban-90143e67) Sep 11, 2026 12 min read [\#api](https://scrapfly.io/blog/tag/api) [\#hidden-api](https://scrapfly.io/blog/tag/hidden-api) [\#python](https://scrapfly.io/blog/tag/python) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives "Share on LinkedIn") [  ](https://x.com/intent/tweet?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives&text=Google%20Trends%20API%20Guide%20and%20Alternatives%20for%20Developers "Share on X") [  ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives "Share on Facebook")    

 

 

Summarize this article with

 [  ](https://chat.openai.com/?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives) [  ](https://claude.ai/new?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives) [  ](https://x.com/i/grok?text=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives) [  ](https://www.perplexity.ai/search/new?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives) [  ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fgoogle-trends-api-alternatives) 



         

For years the honest answer to "is there a Google Trends API" was no. Developers reverse-engineered the site or leaned on [pytrends](https://github.com/GeneralMills/pytrends) instead. That changed in 2025. Google shipped an official Trends API, in alpha, behind an application form.

This guide covers what the alpha API returns and where it still falls short. It also compares three alternatives, pytrends, direct scraping, and a managed scraping API. Use these when you can't get in or need more than the alpha offers.

[How to Scrape Google Trends using PythonIn this article we'll be taking a look at scraping Google Trends - what it is and how to scrape it? For this example, we'll dive into reverse engineering and scrape the secret Google Trends API.](https://scrapfly.io/blog/posts/how-to-scrape-google-trends)



## Key Takeaways

- **Alpha launch:** Google's Trends API entered alpha on July 24, 2025, with gated access
- **Consistent scaling:** the alpha API scales interest consistently, not 0-100 per request
- **5-year window:** alpha data covers a 5-year window and lags roughly 48 hours behind live
- **pytrends is only partly working:** the repo was archived on Apr 17, 2025; Explore methods worked in our Sep 11, 2026 test, but all three trending-search methods returned HTTP 404
- **Direct scraping:** gives full control, but you own rate limiting and anti-bot upkeep
- **Managed API:** removes proxy and anti-bot upkeep when pytrends breaks

**Get web scraping tips in your inbox**Trusted by 100K+ developers and 30K+ enterprises. Unsubscribe anytime.







## Does Google have a Trends API?

Google announced an official Google Trends API on July 24, 2025, and it's in alpha with limited, application-based access. Alpha means the interface can still change and Google offers no production guarantees yet.

Many older tutorials and comparison pages still claim no official Trends API exists. That was accurate before mid-2025, but it's now out of date.

Apply for alpha access and use the official API if you get in. Otherwise, lean on the alternatives covered later in this guide. Both routes return relative search interest rather than raw query counts.



## Google Trends measures relative search interest, not raw volume

Google Trends is Google's free tool for measuring relative search interest over time. Most developers pulling Trends data want one of four things: interest over time, interest by region, related queries and topics, or trending searches.

The quirk that matters for every access method, official API, pytrends, or scraping, is the same. Trends reports relative search interest, not absolute search volume.

The web interface rescales every result to a 0-100 range on each request. So a score of 100 only means "the peak point in this specific comparison," not a fixed number of searches.

That relative scaling is the main reason developers reach for a workaround at all. It shapes what the official API, pytrends, and direct scraping can each promise.



## The official Google Trends API (alpha): what it is and how to access it

The official API is an alpha-stage, application-gated way to pull consistently scaled Trends data through code. Access opens on a rolling basis to approved testers.

Google announced it on July 24, 2025, at Search Central Live. The docs page still describes it as alpha and open to alpha tester applications as of August 2026.

### How to get access

You apply for the alpha through Google's Trends API page rather than generating a self-serve key. Google says it prioritizes developers with a concrete use case in mind who can start soon and give feedback. Access opens on a rolling basis to a limited group.

There's no published pricing at this stage, and no timeline for general availability. Many readers applying today won't have access yet. That's exactly why the alternatives later in this guide matter.

### What data the API returns

Approved testers get a rolling window of the last five years of data, aggregated at daily, weekly, monthly, and yearly intervals. Region breakdowns go down to countries and sub-regions, using ISO 3166-1 country codes and ISO 3166-2 subdivision codes.

The headline feature is consistently scaled search interest. Unlike the UI's 0-100 rescale, the API keeps values comparable across requests.

Consistent scaling lets you join, merge, and compare many terms over time, instead of hitting the UI's small term-comparison limit.

Google hasn't published the exact endpoint paths, request format, or field names outside the alpha program, so the snippet below is conceptual only:

Google does not publish the alpha endpoint, authentication flow, or response schema on its public documentation page. Approved testers should use the private alpha documentation rather than guessing a public REST path.

```


Treat every name in that block as unverified. Confirm the real request shape against Google's own documentation once you're approved.

### Current limits and caveats

Four limits matter most. Data lags roughly 48 hours, so it's not real-time. The rolling window caps out at five years, so there's no deep historical archive.

Values also stay relative to each other, not absolute search volume. And the alpha label means the surface can change, with no SLA or pricing commitment yet.

| Attribute | Alpha API detail |
|---|---|
| Status | Alpha, announced July 24, 2025 |
| Access | Application-based, rolling approval |
| Data window | 5-year rolling window |
| Granularity | Daily, weekly, monthly, yearly |
| Freshness | ~48 hours behind live |
| Scaling | Consistently scaled, not 0-100 rescaled |

The alpha fits only when its access, history, and freshness limits match the project.
```





## Why you may still need alternatives

Even with alpha access, most developers still need another path. Access is application-only and rolling, so plenty of teams can't use the official Google Trends API (alpha) today.

Freshness rules out real-time monitoring. A roughly 48-hour lag means you're always looking slightly into the past. The five-year rolling window is a hard ceiling for long-range historical research.

Consistently scaled search interest is a real improvement over the UI, but it's still relative, not absolute. Some workflows need exact UI figures or the live trending-now feed, and those still need a different source.

Teams running high request volumes, or that need the trending-now data the alpha leaves out, run into the same wall. The table below lines up the three practical paths.

| Dimension | Official alpha API | pytrends | Managed scraping API |
|---|---|---|---|
| Access | Gated, application-based | Open, pip install | Open, API key |
| Data freshness | ~48 hours lag | Near real-time | Near real-time |
| Historical window | 5-year rolling | Full UI range | Full UI range |
| Reliability | Alpha; Google says testers should expect a surface that may not be production-ready | Unmaintained; Explore methods partly worked in Sep 2026 | Request layer is managed; Google endpoint and schema changes remain your responsibility |
| Scale | Limits are not public | Low; HTTP 429 is a recurring failure | Depends on provider quota, target behavior, and request cost |

No option wins on every row. pytrends is the most common starting point, so the comparison below starts there.



## Google Trends API alternatives

Install both packages before running the examples:

bash```bash
pip install pytrends scrapfly-sdk
```



Both install from PyPI. The sections below use them directly.



Scrapfly

#### Scale your web scraping effortlessly

Scrapfly handles proxies, browsers, and anti-bot bypass — so you can focus on data.

[Try Free →](https://scrapfly.io/register)## Google Trends API alternatives

The practical alternatives to the alpha API are pytrends, direct web scraping, and a managed scraping API. These three paths trade access, freshness, volume, and maintenance differently. Choose the one whose failure mode your project can absorb.

### pytrends (unofficial Python library)

pytrends is an unofficial Python library that reverse-engineers Google Trends' internal JSON endpoints. In a clean 4.9.2 install on Sep 11, 2026, interest over time, interest by region, and related queries returned data; its three trending-search methods returned HTTP 404.

[GitHub archived the canonical repository](https://github.com/GeneralMills/pytrends) as read-only on April 17, 2025, and its README asks for maintainers. [PyPI](https://pypi.org/project/pytrends/) still serves version 4.9.2 from April 2023. Core Explore methods worked in our Sep 11, 2026 test, while every trending-search method returned 404; the GitHub issue search also returns 46 reports mentioning HTTP 429.

pytrends fits quick, low-volume, exploratory pulls where occasional breakage is acceptable. Here's a minimal working example:

python```python
from pytrends.request import TrendReq

pytrends = TrendReq(hl="en-US", tz=360)
pytrends.build_payload(["web scraping"], timeframe="today 3-m", geo="US")
df = pytrends.interest_over_time()
print(df.tail())
```



The row dates move with `today 3-m`, and Google can resample historical values between requests. Treat `df.tail()` as a shape check; compare trends within the DataFrame returned by your own run rather than against a static table.

```

That call returns real daily search-interest values for the past three months. When pytrends breaks or you need more control, direct scraping removes the library layer entirely.

### Direct web scraping

Direct web scraping means pulling Trends data straight from the site's own JSON endpoints, the same ones the Trends UI calls in your browser. This is what pytrends does under the hood, minus the library.

The trade-off is full control with no dependency on someone else's maintenance. But you take on rate-limit handling for HTTP 429 responses and any anti-bot friction yourself.

If you want the actual endpoint URLs, headers, and parsing code, the companion tutorial covers the full walkthrough with runnable examples.

### Managed scraping with a web scraping API

A managed web scraping API handles the request layer: fetching, browser rendering, proxy rotation, retries, and request-level blocking. You still own endpoint discovery, payload construction, and response parsing when Google changes its internal API.

Scrapfly's <a href="/products/web-scraping-api" target="_blank" rel="noopener noreferrer">Web Scraping API</a> fits here as one honest option, not the only one. It returns HTML, JSON, clean text, or LLM-ready Markdown from a single endpoint.

The API is callable from Python, TypeScript, Go, and Rust SDKs, plus a <a href="/docs/sdk/scrapy" target="_blank" rel="noopener noreferrer">Scrapy</a> extension. That means it isn't limited to Python projects. It's a scraping layer on top of Trends' JSON endpoints, not a replacement for the official Google Trends API.

Several commercial vendors also sell their own branded "Google Trends API" products. This guide doesn't name or rank them. The decision comes down to the three options above.

```python
import json
import urllib.parse
from scrapfly import ScrapflyClient, ScrapeConfig

req = {"comparisonItem": [{"keyword": "web scraping", "time": "today 3-m", "geo": "US"}],
       "category": 0, "property": ""}
params = urllib.parse.urlencode({"hl": "en-US", "tz": "360", "req": json.dumps(req)})
url = f"https://trends.google.com/trends/api/explore?{params}"

client = ScrapflyClient(key="YOUR_SCRAPFLY_KEY")
result = client.scrape(ScrapeConfig(url=url, unblocker=True))
data = json.loads(result.scrape_result["content"].split(")]}'", 1)[1])
for widget in data["widgets"]:
    print(widget["id"], "|", widget["title"])
```



text```text
TIMESERIES | Interest over time
GEO_MAP | Interest by subregion
RELATED_TOPICS | Related topics
RELATED_QUERIES | Related queries
```



The `unblocker=True` flag delegates request-level blocking, browser choice, retries, and proxy selection to Scrapfly. It does not keep removed endpoints or changed response schemas compatible. The remaining question is which parts of the request stack to keep in-house.

[Guide to Google News API and AlternativesIn a world of endless information, accessing news data efficiently can be vital for many businesses. Google News has been a trusted news aggregator for a while, though the discontinuation of the official Google News API has many searching for new ways to tap into its potential. Many are left...](https://scrapfly.io/blog/posts/guide-to-google-news-api-and-alternatives)



[Google Finance API and the Best Alternatives for Developers (2026)Guide to Google Finance data and discontinued Google Finance API alternatives and a secret API.](https://scrapfly.io/blog/posts/guide-to-google-finance-api)



## Scrapfly for reliable Google Trends data collection



ScrapFly's Web Scraping API is a single endpoint for collecting public web data through managed proxies, browser rendering, and the Unblocker. Any success-rate or volume figure is platform-wide and current only on the product page, not a Google Trends-specific result.

- [Unblocker](https://scrapfly.io/docs/scrape-api/unblocker) - documents request-layer support for named anti-bot systems including Cloudflare, Akamai, DataDome, Imperva, AWS WAF, PerimeterX, F5 BIG-IP, and Kasada.
- [Smart proxy rotation](https://scrapfly.io/docs/scrape-api/proxy) - residential and datacenter pools with country- and ASN-level geo-targeting.
- [JavaScript rendering](https://scrapfly.io/docs/scrape-api/javascript-rendering) - render SPAs and dynamic pages through real cloud browsers.
- [Browser automation scenarios](https://scrapfly.io/docs/scrape-api/javascript-scenario) - scroll, click, fill forms, and wait for elements without managing a browser fleet.
- [Format conversion](https://scrapfly.io/docs/scrape-api/getting-started#api_param_format) - return pages as HTML, JSON, clean text, or LLM-ready Markdown.
- [Session management](https://scrapfly.io/docs/scrape-api/session) - keep cookies, headers, and IPs consistent across multi-step flows.
- [Smart caching](https://scrapfly.io/docs/scrape-api/getting-started#api_param_cache) - cache successful responses to cut cost on repeat scraping jobs.
- [Python](https://scrapfly.io/docs/sdk/python), [TypeScript](https://scrapfly.io/docs/sdk/typescript), [Scrapy](https://scrapfly.io/docs/sdk/scrapy), and [no-code integrations](https://scrapfly.io/docs/integration/getting-started) including [Make](https://scrapfly.io/integration/make), [n8n](https://scrapfly.io/integration/n8n), [Zapier](https://scrapfly.io/integration/zapier), [LangChain](https://scrapfly.io/integration/langchain), and [LlamaIndex](https://scrapfly.io/integration/llamaindex).



### Power your scraping with Scrapfly

Forget about getting blocked. Scrapfly handles anti-bot bypasses, browser rendering, and proxy rotation so you can focus on the data.



[Try for FREE!](https://scrapfly.io/register)



## FAQ

Is there a free Google Trends API?The official API is in alpha with no published pricing and application-based access, not a free self-serve key. The Trends website itself is free to use, and pytrends or scraping are free to run but unofficial and rate-limited.







Does the Google Trends API give real-time data?No, Google's own documentation puts the lag at roughly 48 hours. Scrape the trending-now feed instead for something closer to live.







Is pytrends still maintained?No. GitHub archived GeneralMills/pytrends in April 2025, and PyPI still serves version 4.9.2 from 2023. Explore methods worked in our Sep 11, 2026 test, but all three trending-search methods returned HTTP 404.







Is it legal to scrape Google Trends?Google's terms prohibit automated access that violates machine-readable instructions and prohibit bypassing protective measures. The Trends robots file disallows `/explore?` and `/trends/explore?`; review the current terms and get legal advice for your access path, data, and jurisdiction.







What does "consistently scaled" data mean?Unlike the UI, which rescales every result to 0-100 on each request, the alpha API returns values that stay comparable across requests. That lets you merge and compare many terms over time.









## Summary

Google's official Trends API is still an application-gated alpha. It provides 1,800 days of consistently scaled relative-interest data through two days ago, so it fits approved projects that do not need deeper history or live trending searches.

In our Sep 11, 2026 test, pytrends 4.9.2 still returned Explore, region, related-query, and 2004-present data, but all three trending-search methods returned 404. Direct scraping exposes the same endpoint risk. A managed request layer can absorb browser, proxy, retry, and blocking work; your code still has to track Google's endpoint and schema changes.



Legal Disclaimer and PrecautionsThis tutorial covers popular web scraping techniques for education. Interacting with public servers requires diligence and respect:

- Do not scrape at rates that could damage the website.
- Do not scrape data that's not available publicly.
- Do not store PII of EU citizens protected by GDPR.
- Do not repurpose *entire* public datasets which can be illegal in some countries.

Scrapfly does not offer legal advice but these are good general rules to follow. For more you should consult a lawyer.

 

   [  Add as a preferred source ](https://google.com/preferences/source?q=scrapfly.io) Table of Contents















 

  Table of Contents- [Key Takeaways](#key-takeaways)
- [Does Google have a Trends API?](#does-google-have-a-trends-api)
- [Google Trends measures relative search interest, not raw volume](#google-trends-measures-relative-search-interest-not-raw-volume)
- [The official Google Trends API (alpha): what it is and how to access it](#the-official-google-trends-api-alpha-what-it-is-and-how-to-access-it)
- [How to get access](#how-to-get-access)
- [What data the API returns](#what-data-the-api-returns)
- [Why you may still need alternatives](#why-you-may-still-need-alternatives)
- [Google Trends API alternatives](#google-trends-api-alternatives)
- [Google Trends API alternatives](#google-trends-api-alternatives)
- [pytrends (unofficial Python library)](#pytrends-unofficial-python-library)
- [Scrapfly for reliable Google Trends data collection](#scrapfly-for-reliable-google-trends-data-collection)
- [FAQ](#faq)
- [Summary](#summary)
 
    Join the Newsletter  Get monthly web scraping insights 

 

  



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

 ## Related Articles

 [  

 python seo 

### How to Scrape Google Trends using Python

In this article we'll be taking a look at scraping Google Trends - what it is and how to scrape it? For this example, we...

 

 ](https://scrapfly.io/blog/posts/how-to-scrape-google-trends) [  

 seo 

### Best SERP APIs in 2026: Official Google Alternatives &amp; Third-Party Providers

No official Google SERP API exists. Compare official alternatives (DuckDuckGo, Brave, Yandex) and third-party SERP APIs ...

 

 ](https://scrapfly.io/blog/posts/google-serp-api-and-alternatives) [     

 python blocking 

### How to Scrape DigiKey Electronic Component Data in 2026

Scrape DigiKey pricing, stock, and parametric specs past its Cloudflare challenge, and learn when the official API v4 is...

 

 ](https://scrapfly.io/blog/posts/how-to-scrape-digikey) 

  ## Related Questions

- [ Q What Python libraries support HTTP2? ](https://scrapfly.io/blog/answers/what-python-libraries-support-http2)
- [ Q What are some BeautifulSoup alternatives in Python? ](https://scrapfly.io/blog/answers/what-are-some-beautifulsoup-alternatives)
- [ Q What are some PhantomJS alternatives for automating browsers? ](https://scrapfly.io/blog/answers/what-are-some-phantomjs-alternatives)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)