Viral video outlier detection API: find videos that beat their creator's normal
The lulubanana outlier detection API compares a video's views with its own creator's recent posts and returns an outlier ratio (views ÷ creator median), a class from above average (1.5×) to exceptional breakout (25×+), an age-matched baseline when enough posts are of similar age, the sample size and a confidence level.
What is the viral & outlier detection API?
The lulubanana outlier detection API compares a video's views with its own creator's recent posts and returns an outlier ratio (views ÷ creator median), a class from above average (1.5×) to exceptional breakout (25×+), an age-matched baseline when enough posts are of similar age, the sample size and a confidence level. A 90,000-view video from a creator who usually gets 3,000 is a 30× outlier; a million views for a creator who usually gets two million is not.
lulubanana is a content research platform and API for short-form video (TikTok, YouTube Shorts and Instagram Reels). It is built for developers, content teams and autonomous AI agents that need evidence-backed answers instead of raw posts: every result keeps its source videos and marks what is measured and what is an AI reading.
8 things you can do with the viral video outlier detection API
- Check any TikTok video or YouTube Short against its creator's median views
- Measure a creator's baseline: median and mean views, 3×+ breakouts, like rate
- Compare with posts of similar age when the history allows
- Get views per hour and per day when two readings exist
- Flag early breakouts still gaining fast
- Rank an agent's videos by Virality Score, views, date or platform percentile
- See what separates the top quarter from the rest
- Separate sponsored posts from organic wins
How it works
- Send POST /videos/outlier-check with a video_id or a link (one creator check, 15 credits; free if that creator was measured in the last 24 hours).
- Poll GET /analysis/jobs/{id} until completed.
- Read outlier_ratio, class, age_matched, baseline_posts and confidence; treat fewer than 10 posts as indicative.
Key terms
- Outlier ratio
- Views ÷ the creator's median views over recent posts.
- Classes
- normal < 1.5× · above_average 1.5-3× · viral_outlier 3-10× · strong_breakout 10-25× · exceptional_breakout 25×+ (operational thresholds, not statistics).
- Virality Score
- ln(views ÷ followers) × ln(followers): ranks videos when no creator baseline exists. 35+ exceptional, 25-35 very strong, 18-25 strong.
Endpoints
| Endpoint | What it does | Cost |
|---|---|---|
POST /videos | Is this video an outlier for its own creator? | 15 credits |
POST /creators | Measure a creator's normal | 15 credits |
GET /agents | Scored videos with hook, hook type, format, length, creator baseline and… | Free |
GET /agents | What separates winners | Free |
GET /agents | Genre benchmarks for this agent's niche | Free |
GET /agents | This agent's TikTok photo slideshows, best Virality Score first | Free |
GET /videos | What set one video apart | Free |
Is this video an outlier for its own creator?
Is this video an outlier for its own creator? Compares its views with the creator's recent posts: outlier ratio, class (normal, above_average 1.5×, viral_outlier 3×, strong_breakout 10×, exceptional_breakout 25×), age-matched baseline when enough posts are of similar age, percentile, engagement lift, sample size and confidence, and likely_repost (true only when an earlier post by a different creator has the same caption of 6+ words or the same opening line; null when it cannot be told). Costs one creator check (free within 24 hours of the last one for that creator; refunded if it fails).
| Parameter | In | Type | Description |
|---|---|---|---|
video_id | body | string | A video id we hold (or send url) |
url | body | string | A TikTok video link or YouTube Shorts link |
handle | body | string | Channel handle, only for a YouTube Short we do not hold |
curl -X POST "https://lulubanana.com/api/v1/videos/outlier-check" \
-H "Authorization: Bearer $LULUBANANA_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@creator/video/7581234567890123456"}'import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_videos_outlier_check({"url": "https://www.tiktok.com/@creator/video/7581234567890123456"})import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_videos_outlier_check({ url: "https://www.tiktok.com/@creator/video/7581234567890123456" });GET /analysis/jobs/{id} (when the job is done)
{
"data": {
"id": 1002,
"kind": "baseline",
"status": "completed",
"result": {
"video": {
"url": "https://www.tiktok.com/@maylenvazquez05/video/7658839826912808213",
"note": null,
"class": "exceptional_breakout",
"views": 10120182,
"video_id": "tt7658839826912808213",
"sponsored": false,
"confidence": "high",
"engagement": {
"lift": 1.6,
"like_rate_pct": 8.1,
"creator_median_like_rate_pct": 5.1
},
"age_matched": true,
"outlier_ratio": 1847.1,
"baseline_posts": 30,
"video_age_hours": 3380,
"creator_mean_views": 8452,
"age_matched_baseline": {
"peers": 13,
"ratio": 1564.4,
"median_views": 6469
},
"creator_median_views": 5479,
"percentile_among_creator_posts": 100
},
"handle": "maylenvazquez05",
"baseline": {
"posts": 30,
"source": "free",
"checked_at": "2026-11-23T08:11:49.536Z",
"breakouts_3x": 2,
"median_views": 5479
},
"platform": "tt",
"recent_posts": [
{
"id": "7708200713607712001",
"ts": 1794705340,
"likes": 99,
"title": "#doll #muñecarotamakeup #miparatiiiiiiiiiiiiiiiiiiiiiiii ",
"views": 867
},
{
"id": "7708199907831598356",
"ts": 1794705152,
"likes": 141,
"title": "#ahenobarbushenocied #japonesse #miparatiiiiiiiiiiiiiiiiiiiiiiii ",
"views": 921
}
]
}
}
}Measure a creator's normal
Measure a creator's normal: their last ~30 posts → median and mean views, 3×+ breakouts, like rate. Costs one creator check, like the app; free when this creator was measured in the last 24 hours; refunded if it fails. Async: poll /analysis/jobs/{job_id}.
| Parameter | In | Type | Description |
|---|---|---|---|
platform required | body | tt | yt | tt or yt |
handle required | body | string | Creator handle without @ |
curl -X POST "https://lulubanana.com/api/v1/creators/baseline" \
-H "Authorization: Bearer $LULUBANANA_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"tt","handle":"creator"}'import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_creators_baseline({"platform": "tt", "handle": "creator"})import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_creators_baseline({ platform: "tt", handle: "creator" });Scored videos with hook, hook type, format, length, creator baseline and…
Scored videos with hook, hook type, format, length, creator baseline and platform_percentile (rank by views among the same platform here). Filters: ?limit=1–200&min_score=35&min_views=&platform=tt|yt|ig&start_date=&end_date=YYYY-MM-DD®ion=US&order_by=score|views|date|reach|platform_percentile&include_transcript=true
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
limit | query | string | 1-200 (default 50) |
min_score | query | string | Lowest virality score, e.g. 35 for outliers |
min_views | query | string | Lowest view count |
platform | query | tt | yt | ig | tt, yt or ig |
start_date | query | string | Posted on or after, YYYY-MM-DD |
end_date | query | string | Posted on or before, YYYY-MM-DD |
region | query | string | Two-letter country code, e.g. US |
order_by | query | score | views | date | reach | platform_percentile | score (default), views, date, reach or platform_percentile |
include_transcript | query | string | "true" adds the spoken words where known |
curl "https://lulubanana.com/api/v1/agents/42/videos?min_score=35&order_by=score" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_videos(42, min_score=35, order_by="score")import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_videos(42, { min_score: 35, order_by: "score" });What separates winners
What separates winners: share of each hook type and format in the top quarter of videos by virality score against the bottom quarter (lift in points).
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
curl "https://lulubanana.com/api/v1/agents/42/winners" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_winners(42)import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_winners(42);Genre benchmarks for this agent's niche
Genre benchmarks for this agent's niche: median, p75 and p90 views, Virality Score and engagement, by platform, creator size and format.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
curl "https://lulubanana.com/api/v1/agents/42/benchmarks" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_benchmarks(42)import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_benchmarks(42);This agent's TikTok photo slideshows, best Virality Score first
This agent's TikTok photo slideshows, best Virality Score first.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
limit | query | string | Results per page, 1-200 (default 50) |
cursor | query | string | next_cursor from the previous page |
curl "https://lulubanana.com/api/v1/agents/42/slideshows" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_slideshows(42)import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_slideshows(42);What set one video apart
What set one video apart: key findings in plain sentences plus the numbers behind them.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
curl "https://lulubanana.com/api/v1/videos/tt7581234567890123456/insight" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_videos_insight("tt7581234567890123456")import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_videos_insight("tt7581234567890123456");Viral & outlier detection: frequently asked questions
How is a viral outlier different from a video with many views?
An outlier is measured against its own creator. lulubanana divides the video's views by the creator's median views over recent posts, so small creators' breakouts rank above big creators' routine videos.
How reliable is an outlier ratio?
It comes with baseline_posts and confidence: 10 or more comparable posts with an age-matched baseline is high; fewer than 5 is insufficient. The API never invents a baseline.
Can I get the strongest organic outliers in a niche from the last 7 days?
Yes: POST /search/videos with start_date 7 days ago, min_outlier_ratio 3, min_baseline_posts 10 and order_by outlier_ratio. Sponsored posts are left out by default.
Does it work for Instagram Reels?
Creator baselines cover TikTok and YouTube Shorts. Reels get the follower-based Virality Score.