Skip to main content

TikTok hashtag volume API

TikTok hashtag and search interest trends via the Trends API. History, growth, and live trending hashtags.

License: MIT PyPI

Key: trendsapi.ai/#get-key. Full contract: trendsapi-ai/trendsapi.

JS: trendsapi-tiktok.

Install

pip install trendsapi-tiktok
from trendsapi_tiktok import TrendsAPI

client = TrendsAPI()  # TRENDSAPI_KEY
series = client.get_time_series("matcha")
growth = client.get_growth("matcha", percent_growth=["12M"])
hot = client.get_live(limit=10)

Keyword helpers default to source: "tiktok". Override source= for any other platform. Official full client: trendsapi.

Call

Field Value
Endpoint POST https://api.trendsapi.ai/api
Auth Authorization: Bearer $TRENDSAPI_KEY
History source: tiktok with get_time_series or get_growth
Keyword Hashtag or topic, e.g. matcha (# optional)
Live type TikTok Trending Hashtags, TikTok Trending Searches, TikTok Shop Hot Products
curl -sS -X POST https://api.trendsapi.ai/api \
  -H "Authorization: Bearer $TRENDSAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"get_time_series","source":"tiktok","keyword":"matcha"}'

value is 0-100 for this hashtag, not view count.

tiktok trending hashtags (wrong case) is 400.

Publishing videos still requires TikTok's own APIs. This endpoint is demand only.

Site: https://trendsapi.ai/trends/tiktok-trends. GitHub: trendsapi-ai/tiktok-trends-api.

License

MIT. See LICENSE.

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.1.tar.gz (3.4 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for trendsapi_tiktok-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b4d87fe6815644590421774e8ce31f20a01039e799c0d16479d8bb5bdc5a3dc8
MD5 203282a698f8eab1540838034873e84c
BLAKE2b-256 ff9df419cf2ceac33ea1d9b5d8d0cb85c7393924d80b6d68582ddad9964436c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trendsapi_tiktok-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00f4098e285277ca133067653c0b05ac1acad192a918342adc83e8290bebd281
MD5 a2096034ef28fc158fbdf7574e58af19
BLAKE2b-256 3b86221c27f48e61316a6d3c1c9fdf6d75627bced4c893f6d220d1eacac5ef53

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