Metadata-Version: 2.4
Name: trendsapi-tiktok
Version: 1.0.0
Summary: TikTok hashtag and search interest trends via the Trends API. History, growth, and live trending hashtags.
Project-URL: Homepage, https://trendsapi.ai
Project-URL: Documentation, https://trendsapi.ai/#quickstart
Project-URL: Repository, https://github.com/trendsapi/trendsapi-tiktok
Project-URL: Bug Tracker, https://github.com/trendsapi/trendsapi-tiktok/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: hashtag-trends,tiktok,tiktok-api,tiktok-trends,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

# trendsapi-tiktok

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

> **TikTok trends API - hashtag interest over time + live feeds**

Presets `source: "tiktok"` 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 trendsapi-tiktok
```

## Quickstart

```python
from trendsapi_tiktok import TrendsAPI

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

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

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

## Live feed helper

```python
hot = client.get_live(limit=5)  # TikTok Trending Hashtags
print(hot.data)
```

## 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/trendsapi-tiktok](https://github.com/trendsapi/trendsapi-tiktok)

## License

MIT