# 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.5x) to exceptional breakout (25x+), 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 30x 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). Base address: https://lulubanana.com/api/v1. Authentication: `Authorization: Bearer lb_...`. Reads are free; collection is priced like the app.

## 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, 3x+ 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.5x - above_average 1.5-3x - viral_outlier 3-10x - strong_breakout 10-25x - exceptional_breakout 25x+ (operational thresholds, not statistics).
- **Virality Score**: ln(views / followers) x ln(followers): ranks videos when no creator baseline exists. 35+ exceptional, 25-35 very strong, 18-25 strong.

## Endpoints

### POST /api/v1/videos/outlier-check

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.5x, viral_outlier 3x, strong_breakout 10x, exceptional_breakout 25x), 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).

Cost: 15 credits.

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

```bash
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"}'
```

GET /analysis/jobs/{id} (when the job is done):

```json
{
  "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\u00f1ecarotamakeup #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: their last ~30 posts -> median and mean views, 3x+ 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}.

Cost: 15 credits.

| Parameter | In | Type | Description |
| - | - | - | - |
| `platform` (required) | body | tt, yt | tt or yt |
| `handle` (required) | body | string | Creator handle without @ |

```bash
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"}'
```

### GET /api/v1/agents/{id}/videos

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

Cost: free.

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

```bash
curl "https://lulubanana.com/api/v1/agents/42/videos?min_score=35&order_by=score" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

### GET /api/v1/agents/{id}/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).

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |

```bash
curl "https://lulubanana.com/api/v1/agents/42/winners" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

### GET /api/v1/agents/{id}/benchmarks

Genre benchmarks for this agent's niche: median, p75 and p90 views, Virality Score and engagement, by platform, creator size and format.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |

```bash
curl "https://lulubanana.com/api/v1/agents/42/benchmarks" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

### GET /api/v1/agents/{id}/slideshows

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

Cost: free.

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

```bash
curl "https://lulubanana.com/api/v1/agents/42/slideshows" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

### GET /api/v1/videos/{id}/insight

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

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |

```bash
curl "https://lulubanana.com/api/v1/videos/tt7581234567890123456/insight" \
  -H "Authorization: Bearer $LULUBANANA_KEY"
```

## FAQ

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

More: https://lulubanana.com/developers/ - all endpoints https://lulubanana.com/developers/endpoints/ - research guide https://lulubanana.com/ai-guide.txt
