pytrends
Pseudo API for Google Trends
Decision gist · record as of 2026-08-14
No—not recommended for new projects. While the package is permissively licensed and has low install friction, it is abandoned (last release April 2023, repository archived) with no active maintenance. Google's backend changes will break the unofficial API without fixes. Use only if you have an existing codebase already depending on it and can tolerate potential breakage; for new work, seek an officially supported alternative or Google's official APIs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later; Google may have changed their backend since the last release, potentially breaking API calls.
- Low install friction with common dependencies (requests, pandas, lxml).
- However, the package is abandoned as of 2023-04-13 and the repository is archived; maintenance has ceased and Google API changes will break functionality without fixes.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2023-04-13 (1219 days) · last repo commit 2024-08-10 · 3,731 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,587,165 downloads/mo, #3,737 on PyPI
Alternatives
Verify before relying
from pytrends.request import TrendReq
pytrends = TrendReq(hl='en-US', tz=360)
pytrends.build_payload(['Blockchain'], cat=0, timeframe='today 5-y')
df = pytrends.interest_over_time()- Whether Google has changed their backend since the last release, potentially breaking the unofficial API
- Current reliability and success rate of API calls against Google's actual endpoints
- Whether proxy and retry logic still effectively circumvent rate limiting
What it is and what it does
pytrends is an unofficial wrapper around Google Trends that automates downloading trend reports without requiring manual interaction with the web interface. It uses requests, pandas, and lxml to fetch and parse data on keyword search interest, geographic distribution, related searches, and trending topics. The package supports configurable parameters like time ranges, geographic regions, categories, and Google properties (web, images, news, YouTube, shopping).
The library is designed for developers who need programmatic access to Google Trends data for research, monitoring, or analysis. It handles connection details like proxies, retries, and backoff strategies to work around Google's rate limiting. However, because it reverse-engineers an unofficial API, it is inherently fragile—any backend changes by Google can break functionality, and the package has been abandoned since April 2023 with no active maintenance.
Use it for
- Track keyword search volume trends over time for SEO research or market analysis
- Compare search interest across multiple geographic regions to identify regional demand patterns
- Monitor trending searches in real time or retrieve historical trending data for news/content planning
- Discover related topics and queries to a keyword for content ideation or competitive analysis
- Automate bulk trend data collection for academic research or business intelligence dashboards
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—not recommended for new projects.
While the package is permissively licensed and has low install friction, it is abandoned (last release April 2023, repository archived) with no active maintenance. Google's backend changes will break the unofficial API without fixes. Use only if you have an existing codebase already depending on it and can tolerate potential breakage; for new work, seek an officially supported alternative or Google's official APIs.
Install
pytrends on PyPI
Before you install
Low install friction with common dependencies (requests, pandas, lxml). However, the package is abandoned as of 2023-04-13 and the repository is archived; maintenance has ceased and Google API changes will break functionality without fixes.
Requires Python 3.7 or later; Google may have changed their backend since the last release, potentially breaking API calls.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
from pytrends.request import TrendReq
pytrends = TrendReq(hl='en-US', tz=360)
pytrends.build_payload(['Blockchain'], cat=0, timeframe='today 5-y')
df = pytrends.interest_over_time()
Verify before relying
- Whether Google has changed their backend since the last release, potentially breaking the unofficial API
- Current reliability and success rate of API calls against Google's actual endpoints
- Whether proxy and retry logic still effectively circumvent rate limiting
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesrequestspandaslxml |
| Maintenance | Abandoned 1,219 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 1,587,165 / month, #3,737 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pytrends-4.9.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “google trends data download”
- pytrendsProvides an unofficial interface to download and analyze Google…
- trendspyFetch and analyze Google Trends data including search interest over…
- pypistatsQueries the PyPI Stats API to retrieve download statistics for Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also trendspy · TikTokApi · eventregistry · openmeteo-requests · gnews · twikit · yahooquery · baostock · tushare · pymannkendall