lulubanana
API · 02 of 15

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.

7 endpoints5 free2 priced like the appTikTok · YouTube Shorts · Instagram Reels

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

  1. Check any TikTok video or YouTube Short against its creator's median views
  2. Measure a creator's baseline: median and mean views, 3×+ breakouts, like rate
  3. Compare with posts of similar age when the history allows
  4. Get views per hour and per day when two readings exist
  5. Flag early breakouts still gaining fast
  6. Rank an agent's videos by Virality Score, views, date or platform percentile
  7. See what separates the top quarter from the rest
  8. Separate sponsored posts from organic wins

How it works

  1. 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).
  2. Poll GET /analysis/jobs/{id} until completed.
  3. 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

EndpointWhat it doesCost
POST /videos/outlier-checkIs this video an outlier for its own creator?15 credits
POST /creators/baselineMeasure a creator's normal15 credits
GET /agents/{id}/videosScored videos with hook, hook type, format, length, creator baseline and…Free
GET /agents/{id}/winnersWhat separates winnersFree
GET /agents/{id}/benchmarksGenre benchmarks for this agent's nicheFree
GET /agents/{id}/slideshowsThis agent's TikTok photo slideshows, best Virality Score firstFree
GET /videos/{id}/insightWhat set one video apartFree
POST/api/v1/videos/outlier-check#

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).

ParameterInTypeDescription
video_idbodystringA video id we hold (or send url)
urlbodystringA TikTok video link or YouTube Shorts link
handlebodystringChannel 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
        }
      ]
    }
  }
}
POST/api/v1/creators/baseline#

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}.

ParameterInTypeDescription
platform requiredbodytt | yttt or yt
handle requiredbodystringCreator 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" });
GET/api/v1/agents/{id}/videosFree#

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&region=US&order_by=score|views|date|reach|platform_percentile&include_transcript=true

ParameterInTypeDescription
id requiredpathstringThe id in the path
limitquerystring1-200 (default 50)
min_scorequerystringLowest virality score, e.g. 35 for outliers
min_viewsquerystringLowest view count
platformquerytt | yt | igtt, yt or ig
start_datequerystringPosted on or after, YYYY-MM-DD
end_datequerystringPosted on or before, YYYY-MM-DD
regionquerystringTwo-letter country code, e.g. US
order_byqueryscore | views | date | reach | platform_percentilescore (default), views, date, reach or platform_percentile
include_transcriptquerystring"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" });
GET/api/v1/agents/{id}/winnersFree#

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).

ParameterInTypeDescription
id requiredpathstringThe 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);
GET/api/v1/agents/{id}/benchmarksFree#

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.

ParameterInTypeDescription
id requiredpathstringThe 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);
GET/api/v1/agents/{id}/slideshowsFree#

This agent's TikTok photo slideshows, best Virality Score first

This agent's TikTok photo slideshows, best Virality Score first.

ParameterInTypeDescription
id requiredpathstringThe id in the path
limitquerystringResults per page, 1-200 (default 50)
cursorquerystringnext_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);
GET/api/v1/videos/{id}/insightFree#

What set one video apart

What set one video apart: key findings in plain sentences plus the numbers behind them.

ParameterInTypeDescription
id requiredpathstringThe 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.