# TikTok Viral Videos & Trend Delta Monitor (`titan_coder/tiktok-viral-videos-delta`) Actor

Zero-browser, API-first viral detector for TikTok. Monitors keywords and hashtags to spot newly viral videos, sudden view spikes, and emerging audio trends. Stores previous state and alerts ONLY on new breakouts.

- **URL**: https://apify.com/titan_coder/tiktok-viral-videos-delta.md
- **Developed by:** [Radu Furtuna](https://apify.com/titan_coder) (community)
- **Categories:** MCP servers, AI, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Viral Videos & Trend Delta Monitor (Save 85%)

> 🛑 **Stop missing viral video trends while running sluggish browser automations.** Heavy browser sessions take minutes and fail on bot protections.\
> ⚡ **The Smart Delta Solution:** **TikTok Viral Videos & Trend Delta Monitor** queries lightweight search feeds directly without browser virtualization (running in 2–5s), stores previous video views in memory, and triggers alerts **ONLY** when a new video crosses your view threshold or surges in views by >50% — **saving 85% on compute.**

***

### ⚡ Why Use This Actor?

- **Zero-Browser, Lightning-Fast:** Bypasses sluggish browser virtualization. Runs within **2 to 5 seconds**.
- **Smart Delta Memory:** Uses persistent Key-Value storage to recognize previously seen videos. Zero duplicate noise in your destination pipelines.
- **Pay-Per-Event (PPE) Micro-Monetization:** When no new viral videos match your criteria, event fees are $0.
- **Creator & Agency Goldmine:** Automated tracking for trending sounds, dropshipping products, and viral hooks.

***

### 🔍 Tracked Events

- `NEW_VIRAL_VIDEO`: A brand-new video exceeded your minimum view threshold.
- `VIEW_SURGE`: An existing video experienced an acceleration surge (>50% view growth).

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
|---|---|:---:|---|
| `keyword` | String | `tech` | Keyword, product niche, or topic to search. |
| `maxVideos` | Integer | `10` | Maximum videos to analyze per check. |
| `minViews` | Integer | `1000` | Minimum view threshold for alerts. |
| `trackNewVideos` | Boolean | `true` | Alert on newly discovered viral videos. |
| `trackViewSurges` | Boolean | `true` | Alert when an existing video surges in views. |
| `resetBaseline` | Boolean | `false` | Clear stored memory and initialize a fresh baseline. |

***

### 🏷️ Keywords & Search Tags

`#tiktok #viral-videos #dropshipping #trend-discovery #social-media #content-creator #growth-hacking #video-analytics #ai-agent`

# Actor input Schema

## `keyword` (type: `string`):

Keyword or topic to monitor on TikTok (e.g. 'tech', 'ai tools', 'gadgets').

## `maxVideos` (type: `integer`):

Maximum number of recent videos to evaluate per run.

## `minViews` (type: `integer`):

Only alert on videos exceeding this view count.

## `trackNewVideos` (type: `boolean`):

Emit an event when a new video matching criteria is detected.

## `trackViewSurges` (type: `boolean`):

Emit an alert when an existing tracked video surges in views by >50%.

## `resetBaseline` (type: `boolean`):

Clear memory and record a fresh snapshot.

## Actor input object example

```json
{
  "keyword": "tech",
  "maxVideos": 10,
  "minViews": 1000,
  "trackNewVideos": true,
  "trackViewSurges": true,
  "resetBaseline": false
}
```

# Actor output Schema

## `deltas` (type: `string`):

Clean delta dataset containing only changed or newly detected records.

# 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 = {
    "keyword": "tech",
    "maxVideos": 10,
    "minViews": 1000,
    "trackNewVideos": true,
    "trackViewSurges": true,
    "resetBaseline": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("titan_coder/tiktok-viral-videos-delta").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 = {
    "keyword": "tech",
    "maxVideos": 10,
    "minViews": 1000,
    "trackNewVideos": True,
    "trackViewSurges": True,
    "resetBaseline": False,
}

# Run the Actor and wait for it to finish
run = client.actor("titan_coder/tiktok-viral-videos-delta").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 '{
  "keyword": "tech",
  "maxVideos": 10,
  "minViews": 1000,
  "trackNewVideos": true,
  "trackViewSurges": true,
  "resetBaseline": false
}' |
apify call titan_coder/tiktok-viral-videos-delta --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,titan_coder/tiktok-viral-videos-delta"
        }
    }
}
```

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/tyuQndcUuUgjTYEUu/builds/Mzj7MCa2yK3VOgsJ9/openapi.json
