# TikTok Trends & Video Scraper (`blueskyscraper/tiktok-trends-scraper`) Actor

Scrape TikTok trends and videos with no login: trending hashtags and top 100 videos by country and industry from TikTok Creative Center, Top 50 / Viral 50 sound charts, trending searches, keyword, hashtag and sound videos, plus daily re-measure of the same videos. JSON, CSV.

- **URL**: https://apify.com/blueskyscraper/tiktok-trends-scraper.md
- **Developed by:** [BlueskyScraper](https://apify.com/blueskyscraper) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 33 total users, 11 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Trends & Video Scraper** finds what is taking off on TikTok and measures it — no login, cookies or API key. Trend discovery from **TikTok Creative Center** (trending hashtags and the top 100 videos by country and industry), the **Top 50 / Viral 50 sound charts** and **trending searches**; videos from **keyword search, hashtags and sounds**; and a **daily re-measure** of the same videos. **$3.70 per 1,000 videos, plus $0.001 per run start.**

### What can you scrape?

- 📈 **Trending hashtags** — the Creative Center ranking for a country (US by default) and industry (Pets, Food & Beverage, Beauty, Health…): rank, posts, views and a daily popularity curve for the last 7, 30 or 90 days. No keyword needed.
- 🏆 **Top videos** — Creative Center Top Contents: up to 100 videos of yesterday or last week for a country and category, with total and **organic** views, engagement rate and 6-second view rate.
- 🎵 **Sound charts** — TikTok's Top 50 and Viral 50 sounds with rank movement and how many videos use each sound.
- 🔥 **Trending searches** — the trending search words of the day.
- 🧭 **Explore feed** — a page of TikTok's Explore feed per category (Food, Animals, Daily life…).
- 🔍 **Search** — videos for a keyword in a chosen region, with TikTok's own date window and "most liked" sort.
- \#️⃣ **Hashtags** and 🎵 **sounds** — the videos of a hashtag or of a sound.
- 🔁 **Re-measure** — your list of video IDs again, with today's views, likes, comments, shares and saves.
- 🔔 **Monitoring mode** — scheduled runs return only videos that are new since the last run; ranking rows come back as a fresh snapshot every run.

Every video has caption, hashtags, sound ID and title, publish time, views, likes, comments, shares, saves, reposts, length, creator and followers. For trend research, food and pet-care marketing, creative research and social listening.

### 🔬 Research and data contract

Built for trend radars that need to know where every number comes from:

- **Three regions, three fields.** `requestRegion` is the region the request asked TikTok for; `authorRegion` is the creator's account region TikTok attaches to the video; `audienceCountry` is the market of a Creative Center ranking — only rankings have one, single videos get `null` with a reason. English text or a US proxy does not prove a US audience, so the Actor never guesses it.
- **Ad flag with its source.** `isAd` plus `adFlagSource`: `tiktok_is_ads_field` for videos, `creative_center_total_vs_organic_views` for top videos (paid reach shows as total views above organic views). `isBrandedContent` marks paid partnerships.
- **Honest gaps.** Creative Center rankings do not publish likes, comments, shares or saves: those are `null` with `likesReason: not_in_creative_center_ranking_use_refresh` — put the ID into Re-measure to get them. Creative Center publishes hashtag trends with a delay: `dataAsOf` and `dataLagDays` show how old the data is.
- **Views windows.** Top-video views belong to the ranking period (`viewsWindow`); lifetime views are separate columns. Old videos get today's counters — past values need your own daily snapshots.
- **📒 Panel journal** — set **Panel id** together with the re-measure list and every run compares the list with the previous run of the same panel: free `panel_change` rows say which IDs were `added`, `removed` from your input or are `kept_unavailable` (still in the panel, gone on the source), with the date each ID joined and the previous run time; `panelVersion` goes up whenever the membership changes, so a change of panel is never mistaken for a trend. The full membership is in the run's `PANEL` record.
- **🧾 Data contract** (on by default) adds `provenance` (platform, upstream API, endpoint, mode, source ID, canonical URL, observedAt, collectedAt, schema version, SHA-256 checksum, `rawChecksum` of the source record) and `metrics` (every counter as value or `null` with reason) to each row; snapshot, panel and query IDs go into provenance.
- **🕶️ Pseudonymous authors** (on by default — set **Author data** to *Full* for names, IDs and profile links) replaces names, usernames, IDs and links with a stable salted `authorKey`; video links become `tiktok.com/@/video/<id>`. @mentions inside the text become `@user_<hash>` — the same hash for the same handle in every run; e-mail addresses and #hashtags stay as written.
- The Explore feed is a recommendation sample, not the whole market; each ranking row carries `ranking`, `rank` and `snapshotAt`.

### How much does it cost?

| Row | Price |
|---|---|
| **Video** | $0.0037 — $3.70 per 1,000 |
| **Ranking row (hashtag, sound, search word)** | $0.0037 — $3.70 per 1,000 |
| **Re-measured video** | $0.0045 — $4.50 per 1,000 |
| **+ Date filter (per video)** | $0.0013 — $1.30 per 1,000 |
| **+ Sorting by likes (per video)** | $0.0013 — $1.30 per 1,000 |
| **+ Region other than US (per video)** | $0.0013 — $1.30 per 1,000 |

**Run start**: $0.001 once per run, charged together with the first row — the first request to the source is paid before any row exists. A run that returns no rows (only free error rows) pays no start fee. No proxy or compute charge on top. Error rows are never billed. **Maximum rows per run** is a hard ceiling on the bill.

Videos and ranking rows cost the same as the best-known TikTok scraper in the Store ($3.70 per 1,000 on the free plan, $1.70 on Gold), and the same add-ons for a date filter, sorting by likes or a region other than US (each added only to the videos the filter applies to; trend rankings, Explore and US searches without filters have no add-ons). Re-measure rows are priced separately because each one is a fresh lookup of a single video.

### ⬇️ Input

```json
{
    "trendingHashtags": true,
    "trendIndustries": ["pets", "food_beverage"],
    "topVideos": true,
    "topVideoCategories": ["nature_animals"],
    "soundCharts": ["viral50"],
    "trendCountry": "US",
    "keywords": ["freeze dried dog food", "dog food topper"],
    "searchRegion": "US",
    "searchPublishedWithin": "week",
    "refreshVideos": ["https://www.tiktok.com/@user/video/7703650226506173710"],
    "maxResultsPerInput": 50
}
```

### ⬆️ Output

```json
{
    "type": "video",
    "id": "7703650226506173710",
    "url": "https://www.tiktok.com/@purepawfectionnj/video/7703650226506173710",
    "description": "🐾 Welcome to Pure Pawfection! 💚 More than just a pet store, we’re a place for pets AND their people! 🐶 From all-natural treats and chews to raw food, freeze-dri",
    "hashtags": [
        "purepawfection",
        "rawfeeding",
        "healthypets",
        "dognutrition",
        "education"
    ],
    "language": "en",
    "publishedAt": "2026-11-02T18:58:12.000Z",
    "views": 113,
    "likes": 0,
    "comments": 0,
    "shares": 0,
    "saves": 0,
    "durationSec": 49,
    "soundId": "7703650389119306510",
    "soundTitle": "original sound - purepawfectionnj",
    "soundIsOriginal": true,
    "isAd": false,
    "adFlagSource": "tiktok_is_ads_field",
    "isBrandedContent": false,
    "requestRegion": "US",
    "authorRegion": "US",
    "authorRegionSource": "tiktok_video_region",
    "audienceCountry": null,
    "audienceCountryReason": "not_published_for_single_videos",
    "authorUsername": "purepawfectionnj",
    "authorFollowers": 150,
    "query": "freeze dried dog food",
    "source": "search",
    "page": 1,
    "position": 1,
    "scrapedAt": "2026-11-03T00:36:52.000Z"
}
```

### FAQ

**Do I need a TikTok account?** No. Nothing to log in to, no cookies.

**How fresh are trending hashtags?** As fresh as TikTok Creative Center publishes them — check `dataAsOf`. Top videos are yesterday's (daily) or last Sunday's (weekly) ranking.

**Can I get views of a video found in a ranking?** Ranking rows carry views of the ranking period; put the ID into **Re-measure videos** to get today's views, likes, comments, shares and saves.

**What happens to a deleted or private video in the re-measure list?** It comes back as a free row with `state: unavailable`, so your panel log keeps it. A video the source did not answer for is `state: unknown` — include it in the next run.

**Is it legal?** The Actor reads only public TikTok data. Use it according to TikTok's terms and the privacy laws that apply to you; pseudonymous mode helps when you do not need to store personal data.

# Actor input Schema

## `keywords` (type: `array`):

Video search, like typing into TikTok search: <code>freeze dried dog food</code>, <code>labubu</code>. Each keyword returns videos with views, likes, comments, shares, saves, hashtags and sound.

## `hashtags` (type: `array`):

Videos of a hashtag: <code>#dogfood</code>, <code>dogfood</code> or <code>https://www.tiktok.com/tag/dogfood</code>.

## `sounds` (type: `array`):

Videos that use a sound: sound link <code>https://www.tiktok.com/music/…-7092433200873474050</code> or the sound ID.

## `searchRegion` (type: `string`):

Two-letter country code the search and re-measure ask TikTok for (US, GB, DE…). Hashtag videos support US, GB, FR, JP, VN, SG. This is the <b>request</b> region — it is written into <code>requestRegion</code>, separately from the creator's region and the audience country.

## `searchPublishedWithin` (type: `string`):

Keyword search only: keep videos from this window (TikTok's own filter).

## `searchSort` (type: `string`):

Keyword search only.

## `publishedAfter` (type: `string`):

Keyword, hashtag and sound videos: keep only videos published on or after this date (<code>YYYY-MM-DD</code>).

## `trendingHashtags` (type: `boolean`):

The trending hashtag ranking of TikTok Creative Center for the country below: rank, posts, views and a daily popularity curve. One ranking per industry you pick (or all industries).

## `trendIndustries` (type: `array`):

Empty = all industries.

## `trendWindowDays` (type: `string`):

Creative Center ranking window.

## `topVideos` (type: `boolean`):

The Creative Center Top Contents ranking (up to 100 videos) for the country below: total and organic views, engagement rate, 6-second view rate. Paid reach shows as total views above organic views.

## `topVideoCategories` (type: `array`):

Empty = all categories.

## `topVideoPeriod` (type: `string`):

Daily = yesterday's ranking; weekly = last Sunday's.

## `topVideoOrder` (type: `string`):

Ranking metric.

## `trendCountry` (type: `string`):

Two-letter country of the Creative Center rankings (US, GB, DE, FR, JP…). Written into <code>audienceCountry</code> of ranking rows.

## `soundCharts` (type: `array`):

TikTok's Top 50 and Viral 50 sound charts.

## `trendingSearchWords` (type: `boolean`):

TikTok's list of trending search words of the day.

## `exploreCategories` (type: `array`):

One page of TikTok's Explore feed per category — a recommendation sample, not the whole market.

## `refreshVideos` (type: `array`):

Links or IDs of videos you already track: <code>https://www.tiktok.com/@user/video/7703650226506173710</code>. Returns each video again with today's views, likes, comments, shares and saves. A removed or private video comes back as a free row with <code>state: unavailable</code>.

## `maxResultsPerInput` (type: `integer`):

Cap for each keyword, hashtag, sound or ranking: e.g. 100 = up to 100 videos per keyword or 100 rows of a ranking.

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

Stop after this many rows in the whole run — a hard ceiling on cost.

## `monitoringStoreName` (type: `string`):

Give the run a name (e.g. <code>brand-mentions</code>) and every later run with the same name returns <b>only rows it has not delivered before</b>. Empty = normal run.

## `dataContract` (type: `boolean`):

Adds to every row a <code>provenance</code> block (platform, upstream API, endpoint, mode, source ID, canonical URL, observedAt / collectedAt, schema version, checksum of ID + counters, <code>rawChecksum</code> of the source record) and a <code>metrics</code> block where every counter is a value or <code>null</code> with the reason — never a fake zero. On by default; switch off for plain rows.

## `authorPrivacy` (type: `string`):

Default: Pseudonymous. Choose Full to get author names, IDs and profile links. Pseudonymous replaces author names, IDs, links and avatars with <code>authorKey</code> — a salted, stable hash (one key per author on the platform's stable id, the same in every mode; deleted authors get none) that still lets you measure how concentrated a topic is, without storing profiles. Profile inputs are replaced by the same key in <code>sourceInput</code>; sound titles named after a creator and Reddit <code>u\_…</code> profile links are masked too. @mentions inside post, comment and title text become <code>@user\_\<hash></code> (Reddit <code>u/name</code> → <code>u/user\_\<hash></code>) — the same hash for the same handle in every run; e-mail addresses and #hashtags stay as written.

## `stripSignedTokens` (type: `boolean`):

Removes signed parameters (xsec_token, expiring media signatures) from links and drops signed video file links. On by default (and always on with pseudonymous authors).

## `snapshotId` (type: `string`):

Optional label of this snapshot (e.g. the date), written into provenance of every row.

## `panelId` (type: `string`):

Optional id of your fixed panel of posts, written into provenance. With Re-measure IDs it also keeps a <b>panel journal</b> between runs: free <code>panel_change</code> rows say which IDs were added, removed from your input or are still in the panel but gone on the source (with the date they joined and the previous run time), <code>panelVersion</code> goes up whenever the membership changes, and the run's key-value store gets a <code>PANEL</code> record with the full membership.

## `queryId` (type: `string`):

Optional id of your search profile version, written into provenance.

## Actor input object example

```json
{
  "keywords": [
    "freeze dried dog food"
  ],
  "searchRegion": "US",
  "searchPublishedWithin": "any",
  "searchSort": "relevance",
  "trendingHashtags": false,
  "trendWindowDays": "7",
  "topVideos": false,
  "topVideoPeriod": "daily",
  "topVideoOrder": "views",
  "trendCountry": "US",
  "trendingSearchWords": false,
  "maxResultsPerInput": 50,
  "maxItems": 10000,
  "dataContract": true,
  "authorPrivacy": "pseudonymous",
  "stripSignedTokens": true
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per result; error rows explain inputs that could not be read.

# 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 = {
    "keywords": [
        "freeze dried dog food"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blueskyscraper/tiktok-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 = { "keywords": ["freeze dried dog food"] }

# Run the Actor and wait for it to finish
run = client.actor("blueskyscraper/tiktok-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 '{
  "keywords": [
    "freeze dried dog food"
  ]
}' |
apify call blueskyscraper/tiktok-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blueskyscraper/tiktok-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/k1Zr3mrnH23iF5YP7/builds/PUjmkeDixqbBH7AJJ/openapi.json
