# TikTok Competitor Breakout Tracker — Posts That Beat Median (`growth-installations/competitor-breakout-tracker`) Actor

Watch competitor TikTok accounts. Flags recent posts that beat the account's own median views by 3x or more, then explains each breakout (hook, format, pacing, CTA) with a remix script brief. Schedule it weekly; onlyNew reports each breakout once.

- **URL**: https://apify.com/growth-installations/competitor-breakout-tracker.md
- **Developed by:** [Growth Installations](https://apify.com/growth-installations) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $250.00 / 1,000 breakout briefs

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 Competitor Breakout Tracker

List your competitors' TikTok accounts. Each run reads their latest 30 posts, works out each account's own median views, and flags recent posts (default: last 14 days) that beat that median by 3x or more. Every breakout comes with the hook, format, length, CTA and sound, plus an AI "why it works" note, a hook formula, a fill-in script template and remix ideas.

Schedule it weekly with **Only new breakouts** on and it reports each breakout once (state is kept in the named key-value store `competitor-breakout-tracker-state`).

### Pricing (pay per event)

| Event | Price |
|---|---|
| tracker-run (once per run) | $0.25 |
| competitor-scan (per competitor found) | $0.35 |
| breakout-brief (per breakout explained) | $0.25 |

Example: 10 competitors with 10 breakouts = $6.25. If your max charge cannot cover the run, the scans and one brief, the run stops before scraping; if it covers fewer competitors or briefs, it trims to fit. Accounts not found are not charged.

### Real output (live run zickf4TmCq8wKP1eg, 2026-11-03, competitors duolingo + worstdamnroofer, last 30 days, cap $1.50)

The cap covered 2 of the 9 breakouts found, so the guard stopped at 2:

```json
[
 {
  "rank": 1,
  "headline": "@worstdamnroofer got 791.3K views, 343.9x their median (2.3K) with a statement hook",
  "url": "https://www.tiktok.com/@worstdamnroofer/video/7696636894616096030",
  "views": 791300,
  "account_median_views": 2301,
  "breakout_multiplier": 343.9,
  "is_new": true,
  "hook": "Basic slate roof repair on this beautiful Vermont blend slate roof.",
  "format_name": "Satisfying Repair Showcase",
  "hook_formula": "Basic [TYPE OF REPAIR] on this beautiful [ADJECTIVE] [ITEM BEING REPAIRED].",
  "why_it_works": "This format leverages the inherent satisfaction of seeing a problem fixed, as evidenced by 43.9K likes and 2.1K saves. The detailed visual process, even without a transcript, keeps viewers engaged for the full 135 seconds, indicating strong watch time.",
  "script_template": "Here's a basic {type of repair} on this beautiful {adjective} {item being repaired}. We start by {initial step}, then carefully {core repair action 1} and {core repair action 2}. The goal is always to {desired outcome}. Watch as we bring this {item} back to its original {quality}.",
  "remix_ideas": [
   "**@worstdamnroofer:** 'Basic flashing repair on this historic copper gutter.'",
   "**@worstdamnroofer:** 'Basic shingle replacement on this storm-damaged asphalt roof.'",
   "**@worstdamnroofer:** 'Basic skylight resealing on this leaky flat roof system.'"
  ]
 },
 {
  "rank": 2,
  "headline": "@worstdamnroofer got 25.9K views, 11.3x their median (2.3K) with a statement hook",
  "url": "https://www.tiktok.com/@worstdamnroofer/video/7701470612178357534",
  "views": 25900,
  "account_median_views": 2301,
  "breakout_multiplier": 11.3,
  "is_new": true,
  "hook": "A slate roofer’s point of view!",
  "format_name": "POV: Expert Process Reveal",
  "hook_formula": "POV: [Expert/Niche] [Action/Process]!",
  "why_it_works": "This format leverages a 'point-of-view' perspective to showcase a complex process, making it accessible and engaging. The high view count (25.9K) relative to followers (3.2K) indicates strong organic reach, suggesting the visual demonstration resonates widely.",
  "script_template": "POV: A look at the process of [basic task] on a [material/product], removing the old [component] and installing new [component]. Watch as we [key action 1], then [key action 2], and finally [key action 3] for a perfect finish. # [YourNiche] #[SpecificProduct] #[ProcessKeyword]",
  "remix_ideas": [
   "POV: A plumber's point of view! A look at replacing an old cast iron pipe with new PVC.",
   "POV: A baker's point of view! The process of decorating a multi-tier wedding cake from start to finish.",
   "POV: A mechanic's point of view! Swapping out a worn-out brake rotor and caliper for new performance parts."
  ]
 }
]
```

### Use

```bash
python cli.py --profiles duolingo worstdamnroofer --lookback-days 30          # APIFY_TOKEN needed
python cli.py --items-json tests/fixtures/profile_duolingo.json --profiles duolingo --lookback-days 30   # offline
python -m pytest -q tests
```

Data: `clockworks/tiktok-profile-scraper` (about $0.003 per post, subtitles free). AI briefs use Gemini 2.5 Flash through Apify's OpenRouter proxy (about $0.002 per brief).

# Actor input Schema

## `competitors` (type: `array`):

Usernames (with or without @) or profile URLs.

## `lookbackDays` (type: `integer`):

Only posts from the last N days can be breakouts.

## `breakoutMultiplier` (type: `string`):

A post is a breakout when its views are at least this many times the account's median of its other posts.

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

Ignore breakouts below this many views.

## `postsPerAccount` (type: `integer`):

Latest posts read per competitor to build its median.

## `maxBriefs` (type: `integer`):

Stop after this many briefs (biggest multipliers first).

## `onlyNew` (type: `boolean`):

For scheduled runs: skip breakouts already reported for this same competitor list.

## `aiBriefs` (type: `boolean`):

Write the why-it-works and remix brief with AI (otherwise rule-based).

## Actor input object example

```json
{
  "competitors": [
    "duolingo"
  ],
  "lookbackDays": 14,
  "breakoutMultiplier": "3",
  "minViews": 1000,
  "postsPerAccount": 30,
  "maxBriefs": 20,
  "onlyNew": false,
  "aiBriefs": true
}
```

# Actor output Schema

## `breakouts` (type: `string`):

No description

## `summary` (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 = {
    "competitors": [
        "duolingo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("growth-installations/competitor-breakout-tracker").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 = { "competitors": ["duolingo"] }

# Run the Actor and wait for it to finish
run = client.actor("growth-installations/competitor-breakout-tracker").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 '{
  "competitors": [
    "duolingo"
  ]
}' |
apify call growth-installations/competitor-breakout-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,growth-installations/competitor-breakout-tracker"
        }
    }
}
```

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/v42InUKx8zY0BkrdZ/builds/qHl4NEoUcTzFdzgZ9/openapi.json
