Metadata-Version: 2.4
Name: pytrends-alternative
Version: 1.0.0
Summary: Managed Google Trends client for Python. Drop-in mindset for archived pytrends: history, growth, and 30+ other sources via the Trends API.
Project-URL: Homepage, https://trendsapi.ai
Project-URL: Documentation, https://trendsapi.ai/#quickstart
Project-URL: Repository, https://github.com/trendsapi/pytrends-alternative
Project-URL: Bug Tracker, https://github.com/trendsapi/pytrends-alternative/issues
Project-URL: Get API key, https://trendsapi.ai/#get-key
Author-email: Trends API <hello@trendsapi.ai>
License-Expression: MIT
License-File: LICENSE
Keywords: google-trends,google-trends-api,keyword-research,pytrends,pytrends-alternative,seo,trendsapi
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: trendsapi>=1.0.0
Description-Content-Type: text/markdown

# pytrends-alternative

[![PyPI](https://img.shields.io/pypi/v/pytrends-alternative.svg)](https://pypi.org/project/pytrends-alternative/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Free tier](https://img.shields.io/badge/free%20tier-100%20req%2Fmo-orange.svg)](https://trendsapi.ai/#pricing)

> **Google Trends that still works in 2026 (pytrends is archived)**

`pytrends` is archived. This package gives you Google interest-over-time as managed JSON (no browser, no proxy pool), plus growth windows and 30+ other platforms on the same key.

**[Get a free API key →](https://trendsapi.ai/#get-key)** · **[Docs →](https://trendsapi.ai/#quickstart)**

## Install

```bash
pip install pytrends-alternative
```

Requires Python 3.9+. Depends on the official `trendsapi` client.

## Quickstart

```python
from pytrends_alternative import TrendsAPI

client = TrendsAPI()  # or TrendsAPI(api_key="...") / TRENDSAPI_KEY

# Google Trends history (default source)
series = client.get_time_series("bitcoin")
print(series[-1].date, series[-1].value)

# 12-month growth
g = client.get_growth("bitcoin", percent_growth=["12M"])
print(g.results[0].growth, g.results[0].direction)
```

## Migrating from pytrends

| pytrends habit | Here |
| --- | --- |
| `TrendReq` + `build_payload` + `interest_over_time` | `client.get_time_series("keyword")` |
| Scraping / 429 / captchas | Managed API - failed calls do not burn quota |
| Google only | Same client can query TikTok, Amazon, YouTube, … via `source=` |

```python
# Still Google by default - override when you want multi-platform
tiktok = client.get_time_series("bitcoin", source="tiktok")
```

## Auth & quota

1. Free key: [trendsapi.ai/#get-key](https://trendsapi.ai/#get-key)
2. Pass `api_key=` or set `TRENDSAPI_KEY`
3. Only successful `200` responses count toward plan limits

## Links

- Product: [https://trendsapi.ai](https://trendsapi.ai)
- Full client: `pip install trendsapi`
- GitHub: [https://github.com/trendsapi/pytrends-alternative](https://github.com/trendsapi/pytrends-alternative)

## License

MIT