Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bradautomates avatar

Tiktok Research

  • 1.1k installs
  • 194 repo stars
  • Updated January 23, 2026
  • bradautomates/head-of-content

tiktok-research is a Python content analytics skill that surfaces outlier TikTok videos outperforming their niche using weighted engagement metrics and outputs JSON for report generation.

About

tiktok-research is a head-of-content agent skill backed by a Python script that identifies outlier TikTok videos from JSON post exports. The script calculates weighted engagement scores weighting comments at 3x, shares at 2x, and saves or collects at 2x as stronger value signals. Developers and content engineers reach for tiktok-research when analyzing niche performance, generating outlier reports, or feeding metadata into downstream content planning pipelines. Output is JSON containing outliers and metadata suitable for automated report generation.

  • Calculates weighted engagement score (comments 3x, shares/saves 2x, likes 1x, plays 0.05x)
  • Identifies statistical outliers using mean and standard deviation thresholds
  • Outputs structured JSON with metadata ready for report generation
  • Supports both absolute engagement and follower-normalized rate analysis
  • Command-line interface for integration into content research workflows

Tiktok Research by the numbers

  • 1,080 all-time installs (skills.sh)
  • +25 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #431 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/bradautomates/head-of-content --skill tiktok-research

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.1k
repo stars194
Security audit2 / 3 scanners passed
Last updatedJanuary 23, 2026
Repositorybradautomates/head-of-content

How do you find outlier TikTok videos by engagement?

Surface outlier TikTok videos that outperform their niche using weighted engagement metrics.

Who is it for?

Content engineers analyzing TikTok JSON exports to find niche-beating videos for research and reporting pipelines.

Skip if: Real-time TikTok API scraping or platforms other than TikTok post JSON datasets.

When should I use this skill?

A developer needs outlier TikTok video analysis, weighted engagement scoring, or JSON reports from exported post data.

What you get

JSON outlier report with weighted engagement scores and video metadata.

  • outlier JSON report
  • engagement metadata

By the numbers

  • Comments weighted 3x in engagement scoring
  • Shares and saves weighted 2x each in engagement scoring

Files

SKILL.mdMarkdownGitHub ↗

TikTok Research

Research high-performing TikTok videos, identify outliers, and analyze top video content for hooks and structure.

Prerequisites

  • APIFY_TOKEN environment variable or in .env
  • GEMINI_API_KEY environment variable or in .env
  • apify-client and google-genai Python packages
  • Accounts configured in .claude/context/tiktok-accounts.md

Verify setup:

python3 -c "
import os
try:
    from dotenv import load_dotenv
    load_dotenv()
except ImportError:
    pass
from apify_client import ApifyClient
from google import genai
assert os.environ.get('APIFY_TOKEN'), 'APIFY_TOKEN not set'
assert os.environ.get('GEMINI_API_KEY'), 'GEMINI_API_KEY not set'
" && echo "Prerequisites OK"

Workflow

1. Create Run Folder

RUN_FOLDER="tiktok-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && echo "$RUN_FOLDER"

2. Fetch Content

python3 .claude/skills/tiktok-research/scripts/fetch_tiktok.py \
  --days 30 \
  --limit 50 \
  --sorting latest \
  --output {RUN_FOLDER}/raw.json

Parameters:

  • --days: Days back to search (default: 30)
  • --limit: Max videos per account (default: 50)
  • --sorting: "latest", "popular", or "oldest" (default: latest)
  • --usernames: Override accounts file with specific usernames

3. Identify Outliers

python3 .claude/skills/tiktok-research/scripts/analyze_posts.py \
  --input {RUN_FOLDER}/raw.json \
  --output {RUN_FOLDER}/outliers.json \
  --threshold 2.0

Output JSON contains:

  • total_videos: Number of videos analyzed
  • outlier_count: Number of outliers found
  • topics: Top hashtags, sounds, and keywords
  • accounts: List of accounts analyzed
  • outliers: Array of outlier videos with engagement metrics

4. Analyze Top Videos with AI

python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
  --input {RUN_FOLDER}/outliers.json \
  --output {RUN_FOLDER}/video-analysis.json \
  --platform tiktok \
  --max-videos 5

Extracts from each video:

  • Hook technique and replicable formula
  • Content structure and sections
  • Retention techniques
  • CTA strategy

See the video-content-analyzer skill for full output schema and hook/format types.

5. Generate Report

Read {RUN_FOLDER}/outliers.json and {RUN_FOLDER}/video-analysis.json, then generate {RUN_FOLDER}/report.md.

Report Structure:

# TikTok Research Report

Generated: {date}

## Top Performing Hooks

Ranked by engagement. Use these formulas for your content.

### Hook 1: {technique} - @{username}
- **Opening**: "{opening_line}"
- **Why it works**: {attention_grab}
- **Replicable Formula**: {replicable_formula}
- **Engagement**: {diggCount} likes, {commentCount} comments, {playCount} views
- [Watch Video]({webVideoUrl})

[Repeat for each analyzed video]

## Content Structure Patterns

| Video | Format | Pacing | Key Retention Techniques |
|-------|--------|--------|--------------------------|
| @username | {format} | {pacing} | {techniques} |

## CTA Strategies

| Video | CTA Type | CTA Text | Placement |
|-------|----------|----------|-----------|
| @username | {type} | "{cta_text}" | {placement} |

## All Outliers

| Rank | Username | Likes | Comments | Shares | Views | Engagement Rate |
|------|----------|-------|----------|--------|-------|-----------------|
[List all outliers with metrics and links]

## Trending Topics

### Top Hashtags
[From outliers.json topics.hashtags]

### Top Sounds
[From outliers.json topics.sounds]

### Top Keywords
[From outliers.json topics.keywords]

## Actionable Takeaways

[Synthesize patterns into 4-6 specific recommendations]

## Accounts Analyzed
[List accounts]

Focus on actionable insights. The "Top Performing Hooks" section with replicable formulas should be prominent.

Quick Reference

Full pipeline:

RUN_FOLDER="tiktok-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
python3 .claude/skills/tiktok-research/scripts/fetch_tiktok.py -o "$RUN_FOLDER/raw.json" && \
python3 .claude/skills/tiktok-research/scripts/analyze_posts.py -i "$RUN_FOLDER/raw.json" -o "$RUN_FOLDER/outliers.json" && \
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py -i "$RUN_FOLDER/outliers.json" -o "$RUN_FOLDER/video-analysis.json" -p tiktok

Then read both JSON files and generate the report.

Engagement Metrics

Engagement Score: likes + (3 x comments) + (2 x shares) + (2 x saves) + (0.05 x views)

Outlier Detection: Videos with engagement rate > mean + (threshold x std_dev)

Engagement Rate: (score / followers) x 100

TikTok-Specific Fields

  • diggCount: Likes/hearts
  • shareCount: Shares
  • playCount: Video views
  • commentCount: Comments
  • collectCount: Saves/bookmarks
  • authorFollowers: Creator's follower count
  • musicName: Sound used in video
  • musicOriginal: Whether sound is original

Related skills

FAQ

How does tiktok-research score engagement?

tiktok-research applies weighted scoring where TikTok comments count 3x, shares 2x, and saves or collects 2x, then flags videos outperforming niche baselines from JSON exports.

What input does tiktok-research require?

tiktok-research loads TikTok videos from a JSON file path via argparse, calculates engagement scores in Python, and outputs JSON with outliers and metadata for reports.

Is Tiktok Research safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Marketing & SEOcontentseo

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.