skillfed

trendspy

A Python library for accessing Google Trends data

trendspy v0.1.6 78.3K downloads/30d#14,451 on PyPI116
Permissive license MIT License Copyright (c) 2024 SDil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) DORMANT released

What it is and what it does

TrendsPy is a Python wrapper around Google Trends that lets you query search interest data, geographic trends, related queries, and real-time trending topics. It depends on numpy, pandas, requests, and python-dateutil to fetch and structure data from Google's API.

The library supports flexible timeframe formats (custom intervals, date ranges, hourly precision), geographic filtering down to city level, category-based searches, and batch retrieval of historical trending data for multiple keywords. It also includes proxy support for network configuration. The package is in Beta status and has not been actively maintained since its initial release in late 2024.

Use it for:

  • Track search interest trends for keywords over time to understand seasonal demand or emerging topics.
  • Analyze geographic distribution of search interest to identify regional market opportunities or audience concentration.
  • Retrieve real-time trending searches and associated news articles to monitor current events and public interest.
  • Compare search interest across multiple keywords, regions, and time periods in a single query for competitive analysis.
  • Build a historical dataset of trending keywords with independent normalization for each keyword across multiple time windows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Fetch and analyze Google Trends data including search interest over time, geographic distribution, related queries, and real-time trending searches.

Yes, if you need Google Trends data and accept the risks. Install friction is low and the API surface is straightforward. However, the project is dormant (no updates since December 2024), so be prepared to fork or patch if Google changes its endpoint or if bugs emerge. No known vulnerabilities as of the last security scan. Verify that your use case complies with Google's terms of service before deploying to production.

Install

trendspy on PyPI

pip

pip install trendspy

uv

uv add trendspy

poetry

poetry add trendspy

Installing trendspy

Before you install

Low install friction with standard dependencies (numpy, pandas, requests, python-dateutil). Maintenance is dormant—last commit was 2024-12-25 and the project has not been updated since its initial release cycle, so expect no active bug fixes or feature development.

License in practice

MIT License permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and private projects.

Quickstart

pip install trendspy

from trendspy import Trends
tr = Trends()
df = tr.interest_over_time(['python', 'javascript'])
print(df)

Verify before relying

  • Whether Google's terms of service permit programmatic access via this library or if rate limiting/blocking is likely in production use.
  • Stability of the underlying Google Trends endpoint and whether breaking changes have occurred since the library's last update.

Package facts

License MIT License Copyright (c) 2024 SDil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 4 — numpy, pandas, python-dateutil, requests
Maintenance dormant — 597 days since the last release
Last repo commit
First released
Downloads 78,350/month — #14,451 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: trendspy-0.1.6-py3-none-any.whl

Keywords: analytics, data-analysis, google-trends, trends

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: Libraries :: Python Modules

Tags

google trends data pythonsearch interest analysistrending searches apigeographic trend analysisreal-time trends datakeyword popularity trackingtrends data extraction
google-trendsdata-analysisweb-scraping

More Python Modules packages