$npx skillfedfor your agent

pytrends

Pseudo API for Google Trends

SkipPyPI WWW/HTTPReleased Apr 20231.6M downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytrends-4.9.2-py3-none-any.whl
v4.9.2 · released 2023-04-13 · Python >=3.7 · 3 runtime deps: requests, pandas, lxml

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

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
Same gist for agents: .md · .json

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.

Skip

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

LicenseApache 2.0 permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
requestspandaslxml
MaintenanceAbandoned 1,219 days since the last release
Last repo commit repository archived
First released
Downloads1,587,165 / month, #3,737 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
google trends data downloadsearch trend analysis apigoogle trends scrapingkeyword popularity trackingtrend data extractionsearch interest over timeregional search trends
Topics
abandonedweb-scrapinggoogle-trends
PyPI keywords
googletrendsapisearch

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 Worth it
PyPI · Libraries · released May 2026

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.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

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.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

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.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

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.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

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.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also trendspy · TikTokApi · eventregistry · openmeteo-requests · gnews · twikit · yahooquery · baostock · tushare · pymannkendall