# TikTok Creative Center Hashtag Trends (`w3crawler/tiktok-hashtag-trends-scraper`) Actor

Extract ranked public hashtag trends, metrics, popularity curves, and public top-creator summaries from TikTok Creative Center.

- **URL**: https://apify.com/w3crawler/tiktok-hashtag-trends-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 hashtag trends

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Creative Center Hashtag Trends

Extract ranked public hashtag trends from TikTok Creative Center's anonymous public trend endpoint. The Actor returns normalized hashtag IDs, ranks, post counts, video views, industry IDs, popularity curves, public top-creator summaries, durable TikTok hashtag URLs, and source timestamps.

It does not require account cookies or an API key, and it does not access private profiles, private recommendations, or user activity.

### Example input

```json
{
  "countryCode": "US",
  "periodDays": 7,
  "maxItems": 50,
  "maxPages": 5,
  "pageSize": 20,
  "requestDelayMs": 300
}
```

Omitted fields use the same defaults shown in the Input tab: `US`, 7 days, 50 results, 5 pages, 20 items per request, and a 300 ms delay.

### Example output

```json
{
  "recordType": "tiktok-hashtag-trend",
  "status": "success",
  "dataAvailable": true,
  "source": "TikTok Creative Center",
  "provenance": "anonymous_public_creative_center",
  "sourceTransport": "https_post",
  "extractionMethod": "creative_center_hashtag_api",
  "hashtagId": "12345",
  "hashtag": "#dance",
  "rank": 1,
  "countryCode": "US",
  "periodDays": 7,
  "postCount": 125000,
  "videoViews": 420000000,
  "industryIds": ["1"],
  "popularityCurve": [
    { "timestamp": "2026-08-18T00:00:00.000Z", "popularity": 92 }
  ],
  "topCreators": [
    { "creatorId": "creator-1", "username": "creator", "profileUrl": "https://www.tiktok.com/@creator" }
  ],
  "hashtagUrl": "https://www.tiktok.com/tag/dance",
  "sourceUrl": "https://ads.tiktok.com/creative/creativeCenter/trends/hashtag?region=US&period=7",
  "scrapedAt": "2026-08-18T00:00:00.000Z"
}
```

If the public endpoint fails or returns no usable rows, the dataset receives a `tiktok-hashtag-trends-error` diagnostic and the `OUTPUT` key-value record reports `status: "failed"` with the error.

### Input

- `countryCode`: Supported Creative Center market code. Default: `US`.
- `periodDays`: Trend window; supported values are `7`, `30`, or `120`. Default: `7`.
- `maxItems` (1–1000): Global deduplicated hashtag limit. Default: `50`.
- `maxPages` (1–50): Pagination safety bound. Default: `5`.
- `pageSize` (1–50): Items requested per public API page. Default: `20`.
- `requestDelayMs` (100–5000): Sequential delay between pages. Default: `300`.

### Output and storage

Normalized trend rows and error diagnostics are written to the default dataset. The Output tab links to the dataset and to `OUTPUT` in the default key-value store.

`OUTPUT` contains the selected market and period, requested pagination settings, item count, unique hashtag count, status, and error details when applicable.

### Reliability, limitations, and cost

Requests are sequential, use browser-compatible headers, have a bounded timeout, and retry transient failures up to three times with backoff. Results change continuously by market and period. Avatar URLs may expire because TikTok signs its CDN URLs, while normalized hashtag and profile URLs are durable references.

Apify compute and public HTTP traffic are the main costs. Keep page and item limits reasonable and use a responsible delay between pages.

### FAQ and disclaimer

#### Does this Actor use a private TikTok account?

No. It uses the anonymous public Creative Center trend endpoint.

#### Why did a trend field disappear?

The source did not expose a usable value or the value failed safe numeric/date normalization. Optional fields are omitted rather than replaced with placeholders.

#### Are rankings permanent?

No. Rankings and counts vary by country, selected period, and the time of the request.

Use results only for a legitimate purpose, follow TikTok terms and robots guidance, and review privacy and data-protection obligations before processing public creator information. For support, use the Actor Issues tab.

# Actor input Schema

## `countryCode` (type: `string`):

Two-letter TikTok Creative Center country code.

## `periodDays` (type: `integer`):

Creative Center trend window in days. Supported values are 7, 30, and 120.

## `maxItems` (type: `integer`):

Global deduplicated output limit.

## `maxPages` (type: `integer`):

Pagination safety bound.

## `pageSize` (type: `integer`):

Number of public Creative Center items requested per page.

## `requestDelayMs` (type: `integer`):

Responsible pause between sequential trend-page requests.

## Actor input object example

```json
{
  "countryCode": "US",
  "periodDays": 7,
  "maxItems": 50,
  "maxPages": 5,
  "pageSize": 20,
  "requestDelayMs": 300
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/tiktok-hashtag-trends-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/tiktok-hashtag-trends-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call w3crawler/tiktok-hashtag-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/tiktok-hashtag-trends-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/O3gRNXqnRgqJZ1DEo/builds/chkHgjLfLwP9fCg5A/openapi.json
