Skip to main content

trendsapi-tiktok

PyPI License: MIT

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 → · Docs →

Install

pip install trendsapi-tiktok

Quickstart

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

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

Auth & quota

  1. Free key: trendsapi.ai/#get-key
  2. Pass api_key= or set TRENDSAPI_KEY
  3. Only successful 200 responses count

Links

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trendsapi_tiktok-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trendsapi_tiktok-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file trendsapi_tiktok-1.0.0.tar.gz.

File metadata

  • Download URL: trendsapi_tiktok-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for trendsapi_tiktok-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8a68155845e9dbacc78ce765751600f8e2a59772562534120011e0b4397c40bf
MD5 6f6274102a402bccb306ea3e830a1cb2
BLAKE2b-256 2335e295fe90238c60077f3db78945262ca62c08901cab4532bac68dd37fcd0f

See more details on using hashes here.

File details

Details for the file trendsapi_tiktok-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trendsapi_tiktok-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a00d2ecb39a7b85cdde757bba163190f9bec3d3d61ba1b1691877771792b77d
MD5 d9e2fa17c95971852e973eab7328bc4f
BLAKE2b-256 d5bb6e398af3605c1604928a8f78b78e6b51689b8421754be83af17fa3eac42c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page