Metadata-Version: 2.4
Name: google-trends-client
Version: 1.0.0
Summary: Python client for Google Trends data via the Trends API. Normalized 0-100 scores, history + growth, free tier. Not a scraper.
Project-URL: Homepage, https://trendsapi.ai
Project-URL: Documentation, https://trendsapi.ai/#quickstart
Project-URL: Repository, https://github.com/trendsapi/google-trends-client
Project-URL: Bug Tracker, https://github.com/trendsapi/google-trends-client/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,google-trends-client,keyword-research,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

# google-trends-client

[![PyPI](https://img.shields.io/pypi/v/google-trends-client.svg)](https://pypi.org/project/google-trends-client/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

> **Google Trends API for Python - managed JSON, not a scraper**

Presets `source: "google search"` for convenience. **One API key → 30+ sources** - override `source=` anytime. Quota is per key, not per package.

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

## Install

```bash
pip install google-trends-client
```

## Quickstart

```python
from google_trends_client import TrendsAPI

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

series = client.get_time_series("air fryer")
print(series[-1].date, series[-1].value)

g = client.get_growth("air fryer", percent_growth=["12M"])
print(g.results[0].growth, g.results[0].direction)
```


## 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

## Links

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

## License

MIT