“Google Trends API” is one of the most searched developer questions about Google data, and for most of Google Trends' life the answer was a flat no. Since July 2025 it has been a qualified yes, which is the more confusing answer of the two.
The short answer
There is an official Google Trends API, and you probably cannot use it yet. Google announced it on 24 July 2025 as an alpha “available only to a very limited number of testers”, and on 21 November 2026 its page was still inviting developers to apply. Neither the announcement nor the page mentions a price.
Everyone without an invitation reads the data the Trends website itself loads, either by hand, with an unofficial library, or with a scraper. That data is shaped differently from what the alpha returns, and the difference matters more than the access question.
The official Google Trends API (alpha)
According to Google's announcement and API page, the alpha offers:
- A rolling five years. 1,800 days of data, ending two days before the request.
- Four aggregations. Daily, weekly, monthly and yearly.
- Regions and sub-regions, as defined in ISO 3166-2.
- Consistently scaled data — the part that is genuinely new, explained below.
Access is by application. Google says it is opening the alpha “on a rolling basis to a limited number of developers”, prioritising people who know what they want to build, can start soon and will give feedback. There is no self-service key, which is why “how to get a Google Trends API key” has no better answer than the form.
What consistent scaling changes
On the Trends website every request is rescaled so its own highest point is 100. That is what search interest means: a share of searches relative to the peak inside one request, not a count. Two consequences follow, and both are why people want an API:
- You cannot append. Monitoring a term weekly means re-requesting the whole period every time, because last month's 100 and this month's 100 are different numbers. Google gives this exact example for why the API scales differently.
- You cannot join requests. Two separate requests share no scale unless they share a term. Google's announcement says the API's scaling is “consistent across requests”, so dozens of terms can be compared.
What consistent scaling does not do is turn interest into volume. Google is explicit that the API's numbers “don't reflect absolute numbers, they reflect search interest”.
On the comparison limit, Google's two documents disagree with each other: the API page says the website compares eight terms, the announcement says five. The website's own explore request answered a sixth term with HTTP 400 when the Google Trends Scraper was built on 13 October 2026, so five is the working limit for anything reading the website.
What the Trends website loads instead
A Trends page is assembled from JSON requests any visitor's browser makes: an explore call that returns a token per widget, then one call each for the interest series, the map by region and the related queries. Trending Now and autocomplete are separate pages and endpoints. None of it needs a login.
Two properties of that data are worth knowing before building on it. It is sampled: Google's own FAQ says Trends uses a sample of searches, and in the Actor's tests on 13 October 2026 two consecutive sessions returned the same series while a third differed by up to 3 points out of 100. And it is rescaled per request, as above, so stable comparisons belong inside one request.
What a scraper can do about the second is borrow the trick the API removes the need for: compare every batch against the same anchor term and rescale each batch onto it. That is how the Actor compares up to 25 terms on one scale. It works for a comparison made at one moment; it does not give you the API's ability to append next month's data to this month's. The step by step version is in how to scrape Google Trends.
pytrends: archived in April 2025
For years, “Google Trends API Python” meant pytrends, which describes itself as a “pseudo API for Google Trends”: a library that makes the same website requests from Python. Its GitHub repository was archived by the owner on 17 April 2025 and is read-only, and its latest release on PyPI, 4.9.2, is from 13 April 2023.
An archived library still installs, and some of it may still work. What it no longer gets is fixes, and the website it reads keeps changing: in early November 2026 Google stopped answering the request the Trending Now list came from, and the Actor had to move to reading the Trending Now page instead. A library nobody maintains cannot make that move.
Four ways to get Trends data, compared
| Route | Access | Scale | Maintained |
|---|---|---|---|
| Official API (alpha) | Application; limited testers | Consistent across requests | By Google |
| Trends website by hand | Anyone | 0–100 per request | By Google |
| pytrends | Anyone | 0–100 per request | Archived 17 April 2025 |
| Google Trends Scraper (Apify) | Anyone; $0.0028 per keyword with data | 0–100 per request; up to 25 terms merged via an anchor | Build 0.1.12, 12 November 2026 |
If you are accepted into the alpha and need long, appendable series, use the alpha. If you need data this week, the website's numbers are the only ones available, and the practical question is who keeps the reader working. The same trade-off — official API with conditions against reading what the page shows — is laid out for a different Google product in Google Maps API versus scraping.
robots.txt and Google's terms
The robots.txt of trends.google.com disallows two paths for all agents: /explore? and /trends/explore?, the human-facing explore pages. The JSON endpoints under /trends/api/ that the website calls are not listed in it.
Google's Terms of Service, effective 30 July 2026, list among prohibited conduct “using automated means to access content from any of our services in violation of the machine-readable instructions on our web pages (for example, robots.txt files that disallow crawling…)”. Read together, the two documents tie the terms to the robots.txt, which is why the exact paths matter. The general argument is in robots.txt as a specification.
