TikTok Trends API logo

TikTok Trends API

Queries TikTok hashtag history, growth, and live trending feeds through the Trends API.

Install TikTok Trends API

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tiktok-trends-api-2": {
      "command": "uvx",
      "args": [
        "trendsapi-tiktok"
      ],
      "env": {
        "TRENDSAPI_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx trendsapi-tiktok

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

TikTok Trends API MCP server provides access to TikTok hashtag history, growth measurements, and live trend feeds through the Trends API. It uses a Trends API key and supports Python and JavaScript/TypeScript clients, with synchronous and asynchronous methods for historical and live data. Reach for it when an agent needs to compare hashtag demand, inspect growth over custom periods, or retrieve current TikTok trend rankings. It reports a 0–100 series index rather than view counts and does not publish videos.

Use cases

  • Compare hashtag interest over time
  • Measure campaign growth across date ranges
  • Identify current TikTok trending hashtags
  • Analyze trend data with pandas

Key features

  • Hashtag time-series retrieval
  • Preset and custom growth comparisons
  • Live TikTok trend feeds
  • Python async client
  • JavaScript and TypeScript support
  • Pandas-compatible data conversion

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

20/20 checks healthy over the last 95d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · trendsapi-tiktok (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How TikTok Trends API works

What TikTok Trends API does

TikTok Trends API MCP server connects agent workflows to the Trends API endpoint at https://api.trendsapi.ai/api. Its supported data operations cover three main needs: retrieving a time series for a hashtag or topic, calculating growth across one or more periods, and reading live TikTok trend feeds.

Historical results include dates and a 0–100 value for the requested series. When available, the response also includes absolute volume, the keyword, and a source or data-type label. The value is an indexed demand measure for that series, not a TikTok view count.

Growth responses can use standard windows such as 7D, 30D, 3M, 12M, YTD, or 5Y, as well as custom recent and baseline dates. Live responses include a snapshot timestamp, feed type, pagination fields, and ranked [rank, label] rows.

How it works

Requests use the Trends API’s HTTP contract. Historical calls set source to lowercase tiktok and select either get_time_series or get_growth. Live calls use get_top_trends and an exact feed name such as TikTok Trending Hashtags, TikTok Trending Searches, or TikTok Shop Hot Products.

The Python package returns dataclasses and response objects, while the JavaScript package returns equivalent object fields. Python applications can use TrendsAPI or AsyncTrendsAPI; JavaScript and TypeScript applications use TrendsAPI. Several growth windows can be requested in one call, and each successful request counts as one billed request.

Incorrect source or feed spelling produces a 400 error. A 404 means no series exists for the keyword and should not be retried. Authentication failures return 401, quota exhaustion returns 429, and client retries 5xx responses before raising an error.

Setup and configuration

TikTok Trends API MCP server requires a key from trendsapi.ai, supplied through the TRENDSAPI_KEY environment variable or directly to the client constructor. Python requires version 3.9 or newer and installs with pip install trendsapi-tiktok. JavaScript or TypeScript projects install trendsapi-tiktok with npm and require Node 18 or newer; Deno, Bun, and Workers are also listed as supported runtimes.

Raw HTTP callers send a bearer token in the Authorization header and JSON to the API endpoint. SDKs decode the response body automatically. With raw curl, the HTTP body field may itself contain a JSON string that needs a second parse.

Tools and capabilities

  • Retrieve historical hashtag or topic time series.
  • Calculate growth for preset or custom date ranges.
  • Read live TikTok trending hashtags, searches, and Shop hot-product feeds.
  • Paginate live results with limit and offset.
  • Run asynchronous requests in Python.
  • Convert time-series dataclasses into pandas data for resampling and analysis.

Limitations and notes

TikTok Trends API MCP server measures demand and search interest; it is not a publishing interface. Posting videos still requires TikTok’s own APIs. The optional # is accepted for keyword input, while the TikTok source must be written as lowercase tiktok. Live-feed type names are case-sensitive.

The time-series value is normalized from 0 to 100 for the selected series. Absolute volume may not be present. The live endpoint supports category only for the documented Amazon Best Sellers by Category and Top Websites feeds, so it should not be assumed to filter TikTok feeds. Quota and billing behavior should be considered when making repeated or asynchronous requests.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about TikTok Trends API

TikTok Trends API is an MCP server that connects agents to the Trends API for TikTok hashtag and search-interest data. Its main tools retrieve historical time series, calculate growth for preset or custom periods, and return live trending hashtags, searches, and TikTok Shop hot-product feeds using an API key.

Install the Python package with `pip install trendsapi-tiktok` or the JavaScript package with `npm install trendsapi-tiktok`. Python requires 3.9 or newer, while JavaScript requires Node 18 or newer. Set `TRENDSAPI_KEY` before creating the client.

Call `get_time_series` with a keyword and the TikTok source. In Python, use `client.get_time_series("matcha")`; the helper defaults to `source: "tiktok"`. Results contain dated points with a 0–100 indexed value and may include absolute volume.

No, it only provides demand and trend data. Publishing videos requires TikTok’s own APIs, so use this tool for hashtag history, growth analysis, and live trend discovery rather than content publication.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTikTok Trends API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tiktok-trends-api-2?style=directory)](https://allmcps.com/mcp/tiktok-trends-api-2)
HTML Embed
<a href="https://allmcps.com/mcp/tiktok-trends-api-2"><img src="https://allmcps.com/api/badge/tiktok-trends-api-2?style=directory" alt="TikTok Trends API on AllMCPs" /></a>