Viral hook API: search, classify and test proven short-form video hooks
The lulubanana hook API is a searchable database of opening lines from real short-form videos, ranked by organic performance.
What is the viral hook intelligence API?
The lulubanana hook API is a searchable database of opening lines from real short-form videos, ranked by organic performance. Each strong hook is classified by type and psychological mechanism (curiosity, mistake avoidance, contrarian, surprising fact, problem-solution, before-after, story, comparison, challenge, question, social proof, demonstration, listicle, suspense, humor) and reduced to a reusable formula, so you can reuse the mechanism without copying the wording.
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 hook API
- See which hook types win most often, with lift and outlier rate
- Find the top-performing hooks of the last 30 days
- Search hooks by words, type or mechanism
- Get hook formulas repeated by several independent creators
- Spot hook mechanisms and formulas that are rising
- Test your own opening line against similar published hooks
- Get an agent's ranked hooks and playbook
- Get the hook mechanisms that work for one audience, ranked by measured lift, with real example hooks and adapted templates
How it works
- Read GET /hooks/mechanisms and /hooks/formulas to learn what works.
- Search with GET /hooks/search?q= or ?mechanism=.
- Test a draft with POST /hooks/evaluate before filming.
- For a specific audience, POST /hooks/recommend (free, 30 a day) and poll GET /analysis/jobs/{job_id}.
Key terms
- Hook mechanism
- Why an opening works psychologically (e.g. curiosity, mistake avoidance).
- Hook formula
- The reusable structure with specifics in [brackets], e.g. "Stop [common habit] if you want [result]".
- Lift (hook recommendations)
- A mechanism's median Virality Score minus the median of the other strong hooks it is compared with (the matched niche when 12 or more hooks match the audience, else the whole library).
Endpoints
| Endpoint | What it does | Cost |
|---|---|---|
GET /hooks | The hook taxonomy with how each type performs across every analysed video | Free |
GET /hooks | Top-performing opening lines across every analysed video, best Virality Score first;… | Free |
GET /hooks | Search opening lines across every analysed video (all words must appear) | Free |
GET /hooks | Psychological mechanisms behind strong hooks (curiosity, mistake avoidance,… | Free |
GET /hooks | Hook formulas repeated by several independent creators (structure, not wording), with… | Free |
GET /hooks | Hook mechanisms and formulas that are being used more often lately (last 21 days… | Free |
POST /hooks | Test a proposed opening line against similar hooks that were really published | Free |
POST /hooks | Hook mechanisms for an audience (a saved profile, or audience text and an optional… | Free |
GET /agents | Search the opening lines of this agent's videos | Free |
GET /agents | Hook types and formats ranked by median Virality Score | Free |
The hook taxonomy with how each type performs across every analysed video
The hook taxonomy with how each type performs across every analysed video: median Virality Score, lift against the typical video, outlier rate (score 35+). Sponsored posts left out.
curl "https://lulubanana.com/api/v1/hooks/types" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_hooks_types()import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_hooks_types();Example reply (real data, trimmed)
{
"data": {
"baseline_median_score": 14.1,
"videos": 1422,
"types": [
{
"hook_type": "No spoken hook",
"videos": 415,
"creators": 374,
"median_score": 21.2,
"lift": 7.1,
"outlier_rate_pct": 24.1,
"enough_data": true
},
{
"hook_type": "List",
"videos": 42,
"creators": 41,
"median_score": 16.7,
"lift": 2.6,
"outlier_rate_pct": 26.2,
"enough_data": true
}
]
}
}Top-performing opening lines across every analysed video, best Virality Score first;…
Top-performing opening lines across every analysed video, best Virality Score first; usage_count = videos opening the same way. Sponsored posts left out.
| Parameter | In | Type | Description |
|---|---|---|---|
days | query | string | Look back 1-90 days (default 30) |
platform | query | tt | yt | ig | tt, yt or ig |
hook_type | query | string | Only this hook type (see /hooks/types) |
limit | query | string | Results per page, 1-100 (default 30) |
cursor | query | string | next_cursor from the previous page |
curl "https://lulubanana.com/api/v1/hooks/trending?days=30&platform=tt" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_hooks_trending(days=30, platform="tt")import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_hooks_trending({ days: 30, platform: "tt" });Example reply (real data, trimmed)
{
"data": [
{
"hook": "This makeup debat is stupid",
"hook_type": "Bold claim",
"usage_count": 1,
"creators": 1,
"best_score": 67.6,
"median_score": 67.6,
"example": {
"video_id": "tt7690233130300624142",
"url": "https://www.tiktok.com/@eviinjzfan/video/7690233130300624142",
"platform": "tt",
"handle": "eviinjzfan",
"views": 14016263,
"posted": "2026-09-27"
}
},
{
"hook": "When you tried a new beauty trend!",
"hook_type": "Callout",
"usage_count": 1,
"creators": 1,
"best_score": 66.1,
"median_score": 66.1,
"example": {
"video_id": "ytsUJD_HGnMpc",
"url": "https://www.youtube.com/shorts/sUJD_HGnMpc",
"platform": "yt",
"handle": "vikchaos1",
"views": 15470694,
"posted": "2026-10-18"
}
}
],
"next_cursor": "Mg",
"window_days": 90
}Search opening lines across every analysed video (all words must appear)
Search opening lines across every analysed video (all words must appear). Tiers: exact, contains, similar; best Virality Score first.
| Parameter | In | Type | Description |
|---|---|---|---|
q | query | string | Words that must appear in the opening line |
hook_type | query | string | Only this hook type |
mechanism | query | string | Only hooks using this mechanism (see /hooks/mechanisms) |
platform | query | tt | yt | ig | tt, yt or ig |
days | query | string | Only videos from the last N days |
limit | query | string | Results per page, 1-100 (default 30) |
cursor | query | string | next_cursor from the previous page |
curl "https://lulubanana.com/api/v1/hooks/search?q=stop" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_hooks_search(q="stop")import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_hooks_search({ q: "stop" });Example reply (real data, trimmed)
{
"data": [
{
"hook": "This makeup debat is stupid",
"hook_type": "Bold claim",
"usage_count": 1,
"creators": 1,
"best_score": 67.6,
"median_score": 67.6,
"example": {
"video_id": "tt7690233130300624142",
"url": "https://www.tiktok.com/@eviinjzfan/video/7690233130300624142",
"platform": "tt",
"handle": "eviinjzfan",
"views": 14016263,
"posted": "2026-09-27"
},
"match_type": "contains"
},
{
"hook": "Letting this filter choose my makeup.",
"hook_type": "Challenge",
"usage_count": 1,
"creators": 1,
"best_score": 61.3,
"median_score": 61.3,
"example": {
"video_id": "ytpkaRrLYnvf0",
"url": "https://www.youtube.com/shorts/pkaRrLYnvf0",
"platform": "yt",
"handle": "itz.heliaa",
"views": 21844543,
"posted": "2026-02-01"
},
"match_type": "contains"
}
],
"next_cursor": "Mg"
}Psychological mechanisms behind strong hooks (curiosity, mistake avoidance,…
Psychological mechanisms behind strong hooks (curiosity, mistake avoidance, contrarian, surprising fact, problem-solution, before-after, story, comparison, challenge, question, social proof, demonstration, listicle, suspense, humor) with how hooks using each perform against the other strong hooks.
| Parameter | In | Type | Description |
|---|---|---|---|
days | query | string | Look back 7-365 days (default 180) |
platform | query | tt | yt | ig | tt, yt or ig |
curl "https://lulubanana.com/api/v1/hooks/mechanisms" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_hooks_mechanisms()import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_hooks_mechanisms();Example reply (real data, trimmed)
{
"data": {
"classified_hooks": 170,
"baseline_median_score": 40.6,
"baseline_outlier_rate_pct": 78.2,
"typical_video_median_score": 11.8,
"mechanisms": [
{
"mechanism": "before_after",
"hooks": 7,
"creators": 7,
"median_score": 46.5,
"lift": 5.9,
"outlier_rate_pct": 100,
"examples": [
{
"video_id": "tt7642829293264964877",
"url": "https://www.tiktok.com/@rickquellflowers/video/7642829293264964877",
"platform": "tt",
"handle": "rickquellflowers",
"views": 14296113,
"score": 58.2,
"hook": "Got my real ones 🤷🏼♀️"
}
]
},
{
"mechanism": "contrarian",
"hooks": 14,
"creators": 14,
"median_score": 45.7,
"lift": 5.2,
"outlier_rate_pct": 78.6,
"examples": [
{
"video_id": "tt7690233130300624142",
"url": "https://www.tiktok.com/@eviinjzfan/video/7690233130300624142",
"platform": "tt",
"handle": "eviinjzfan",
"views": 14016263,
"score": 67.6,
"hook": "This makeup debat is stupid"
}
]
}
],
"note": "Mechanisms are AI readings of strong hooks (score 18+), refreshed daily; performance numbers are computed. lift and outlier_rate_pct comp…"
}
}Hook formulas repeated by several independent creators (structure, not wording), with…
Hook formulas repeated by several independent creators (structure, not wording), with how they perform and examples.
| Parameter | In | Type | Description |
|---|---|---|---|
days | query | string | Look back 7-365 days (default 180) |
platform | query | tt | yt | ig | tt, yt or ig |
mechanism | query | string | Only this mechanism |
min_creators | query | string | Independent creators needed (default 2) |
limit | query | string | 1-100 (default 30) |
curl "https://lulubanana.com/api/v1/hooks/formulas?mechanism=mistake_avoidance" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_hooks_formulas(mechanism="mistake_avoidance")import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_hooks_formulas({ mechanism: "mistake_avoidance" });Example reply (real data, trimmed)
{
"data": [
{
"formula": "Are you ready for [reveal]?",
"mechanisms": [
"question"
],
"uses": 1,
"independent_creators": 1,
"median_score": 69.5,
"best_score": 69.5,
"examples": [
{
"video_id": "tt7676397331612421396",
"url": "https://www.tiktok.com/@suciaeslm2v/video/7676397331612421396",
"platform": "tt",
"handle": "suciaeslm2v",
"views": 21188146,
"score": 69.5,
"hook": "Are you ready?"
}
]
},
{
"formula": "This [topic] debate is stupid",
"mechanisms": [
"contrarian"
],
"uses": 1,
"independent_creators": 1,
"median_score": 67.6,
"best_score": 67.6,
"examples": [
{
"video_id": "tt7690233130300624142",
"url": "https://www.tiktok.com/@eviinjzfan/video/7690233130300624142",
"platform": "tt",
"handle": "eviinjzfan",
"views": 14016263,
"score": 67.6,
"hook": "This makeup debat is stupid"
}
]
}
],
"note": "A formula is the reusable structure of a hook with the specifics in [brackets]: use the mechanism, write your own wording."
}Hook mechanisms and formulas that are being used more often lately (last 21 days…
Hook mechanisms and formulas that are being used more often lately (last 21 days against the 42 before) by several creators.
| Parameter | In | Type | Description |
|---|---|---|---|
platform | query | tt | yt | ig | tt, yt or ig |
curl "https://lulubanana.com/api/v1/hooks/emerging" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_hooks_emerging()import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_hooks_emerging();Example reply (real data, trimmed)
{
"data": {
"mechanisms": [
{
"name": "challenge",
"recent_21d": 3,
"previous_42d": 2,
"growth": 3,
"recent_creators": 3,
"recent_median_score": 40.7,
"examples": [
{
"video_id": "tt7708100842225814797",
"url": "https://www.tiktok.com/@lifeeofnia/video/7708100842225814797",
"platform": "tt",
"handle": "lifeeofnia",
"views": 1821766,
"score": 51.8,
"hook": "Who cares?"
}
]
},
{
"name": "social_proof",
"recent_21d": 3,
"previous_42d": 4,
"growth": 1.5,
"recent_creators": 3,
"recent_median_score": 40.7,
"examples": [
{
"video_id": "tt7705183841580748063",
"url": "https://www.tiktok.com/@shayshay012002/video/7705183841580748063",
"platform": "tt",
"handle": "shayshay012002",
"views": 3541468,
"score": 53.1,
"hook": "the best makeup product I have ever invested in"
}
]
}
],
"formulas": [],
"note": "Rising = used more often per day in the last 21 days than in the 42 before, by at least 2 creators."
}
}Test a proposed opening line against similar hooks that were really published
Test a proposed opening line against similar hooks that were really published: how they performed against the typical video, their likely mechanisms and the closest examples. Evidence, not a prediction.
| Parameter | In | Type | Description |
|---|---|---|---|
hook required | body | string | The opening line to test |
curl -X POST "https://lulubanana.com/api/v1/hooks/evaluate" \
-H "Authorization: Bearer $LULUBANANA_KEY" \
-H "Content-Type: application/json" \
-d '{"hook":"Stop washing your face like this if you have dry skin"}'import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_hooks_evaluate({"hook": "Stop washing your face like this if you have dry skin"})import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_hooks_evaluate({ hook: "Stop washing your face like this if you have dry skin" });Hook mechanisms for an audience (a saved profile, or audience text and an optional…
Hook mechanisms for an audience (a saved profile, or audience text and an optional niche), ranked by measured lift: for each mechanism the hooks, independent creators, median virality score, lift over the other strong hooks, outlier rate, confidence and real example hooks with links to their videos, matched to the audience by the niche's distinctive words together with meaning (the whole library when fewer than 12 match, said in limitations), plus templates adapted to the audience (hypotheses, each pointing at the real hook it adapts). Async: poll /analysis/jobs/{job_id} (about a minute). Included, up to 30 a day.
| Parameter | In | Type | Description |
|---|---|---|---|
profile_id | body | number | A saved audience profile (or send audience) |
audience | body | string | Who the hooks are for (or send profile_id) |
niche | body | string | The niche, e.g. "budget cooking" |
platform | body | tt | yt | ig | Only hooks from tt, yt or ig |
days | body | number | Hooks posted in the last 30-730 days (default 365) |
curl -X POST "https://lulubanana.com/api/v1/hooks/recommend" \
-H "Authorization: Bearer $LULUBANANA_KEY" \
-H "Content-Type: application/json" \
-d '{"audience":"beginners with a first espresso machine at home","niche":"home espresso"}'import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.create_hooks_recommend({"audience": "beginners with a first espresso machine at home", "niche": "home espresso"})import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.create_hooks_recommend({ audience: "beginners with a first espresso machine at home", niche: "home espresso" });GET /analysis/jobs/{id} (when the job is done)
{
"data": {
"id": 2266,
"kind": "hooks_rec",
"status": "completed",
"result": {
"days": 365,
"basis": "niche",
"niche": "makeup",
"audience": "beginners learning makeup on a budget",
"baseline": {
"hooks": 124,
"median_score": 41.6,
"outlier_rate_pct": 83.1
},
"platform": null,
"verified": [
"hooks, creators, median_score, lift and outlier_rate_pct are computed from real hooks and their measured views",
"every example and template links the real hook it comes from"
],
"templates": [
{
"example": "Ranking the best drugstore concealers for complete beginners",
"based_on": {
"url": "https://www.youtube.com/shorts/_HU6DdN8GNw",
"hook": "Ranking the best Habibi make up transitions",
"creator": "jane_ranks",
"platform": "yt",
"video_id": "yt_HU6DdN8GNw"
},
"template": "Ranking the best [budget product] [look or category] for [skill level]",
"mechanism": "listicle",
"hypothesis": true
},
{
"example": "Ranking the coolest blush dupes under $10",
"based_on": {
"url": "https://www.youtube.com/shorts/SxIjZerRNx8",
"hook": "Ranking The Coolest Makeup Transitions chinese military Trends",
"creator": "ra-rankedaura",
"platform": "yt",
"video_id": "ytSxIjZerRNx8"
},
"template": "Ranking the coolest [trend] dupes under [price]",
"mechanism": "listicle",
"hypothesis": true
}
],
"created_at": "2026-11-23T17:22:23.982Z",
"hypotheses": [
"mechanism labels are AI readings of each hook",
"templates and their examples are AI adaptations: test them"
],
"mechanisms": [
{
"lift": 5.5,
"rank": 1,
"hooks": 18,
"library": {
"lift": 4.7,
"hooks": 22,
"creators": 21,
"median_score": 45.3
},
"creators": 18,
"examples": [
{
"url": "https://www.youtube.com/shorts/YRZIs-83yXo",
"hook": "Ranking the best turning boyfriend into girl",
"views": 10465356,
"creator": "ranking_moment77",
"platform": "yt",
"video_id": "ytYRZIs-83yXo",
"virality_score": 55.1
}
],
"formulas": [
"Ranking the best [transformation type]"
],
"mechanism": "listicle",
"confidence": "high",
"median_score": 47,
"audience_match": {
"lift": 5.5,
"hooks": 18,
"creators": 18,
"median_score": 47
},
"outlier_rate_pct": 88.9
},
{
"lift": 6.9,
"rank": 2,
"hooks": 6,
"library": {
"lift": 5.9,
"hooks": 7,
"creators": 7,
"median_score": 46.5
},
"creators": 6,
"examples": [
{
"url": "https://www.tiktok.com/@rickquellflowers/video/7642829293264964877",
"hook": "Got my real ones 🤷🏼♀️",
"views": 14296113,
"creator": "rickquellflowers",
"platform": "tt",
"video_id": "tt7642829293264964877",
"virality_score": 58.2
}
],
"formulas": [
"Got my [real version] 🤷"
],
"mechanism": "before_after",
"confidence": "medium",
"median_score": 48.5,
"audience_match": {
"lift": 6.9,
"hooks": 6,
"creators": 6,
"median_score": 48.5
},
"outlier_rate_pct": 100
}
],
"profile_id": null,
"how_to_read": "lift = the mechanism's median virality score minus the median of all classified strong hooks in the same set (basis). Ranked by lift, dis…",
"limitations": [
"Only strong hooks (virality score 18+) are classified, so lift compares strong hooks with each other, not with the typical video.",
"English videos only."
],
"library_hooks": 170,
"matched_hooks": 124
},
"error": null,
"created_at": "2026-11-23T17:22:12.874Z",
"finished_at": "2026-11-23T17:22:23.984Z",
"poll_after_seconds": null
}
}Search the opening lines of this agent's videos
Search the opening lines of this agent's videos. ?q=phrase. Tiers: exact, contains, similar; usage_count = videos opening with the same hook.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
q | query | string | A phrase to look for in opening lines |
limit | query | string | 1-100 (default 30) |
curl "https://lulubanana.com/api/v1/agents/42/hooks" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_hooks(42)import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_hooks(42);Hook types and formats ranked by median Virality Score
Hook types and formats ranked by median Virality Score.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | The id in the path |
curl "https://lulubanana.com/api/v1/agents/42/playbook" \
-H "Authorization: Bearer $LULUBANANA_KEY"import os
from lulubanana import Lulubanana
lb = Lulubanana(os.environ["LULUBANANA_KEY"])
r = lb.get_agents_playbook(42)import { Lulubanana } from './lulubanana.mjs';
const lb = new Lulubanana(process.env.LULUBANANA_KEY);
const r = await lb.get_agents_playbook(42);Viral hook intelligence: frequently asked questions
What is a hook formula?
The structure of a successful opening with the specifics replaced, e.g. "Stop [common habit] if you want [result]". Use the formula and the mechanism; write your own wording.
Can I test a hook before posting?
Yes. POST /hooks/evaluate compares your line with similar published hooks and reports how they performed against the typical video. It is evidence from real posts, not a prediction.
How are hooks ranked?
By the Virality Score of the videos that use them (views against the creator's audience), with sponsored posts left out.
Which hooks should I use for my audience?
POST /hooks/recommend with a saved profile_id, or audience text and a niche. It matches classified strong hooks to that audience by the niche's distinctive words together with meaning (generic words such as home or tips do not count; with fewer than 12 matches it ranks on the whole library and says so) and ranks each mechanism by lift, weighted by how many hooks support it, with three real example hooks and links to their videos. The adapted templates are AI hypotheses, each pointing at the real hook it adapts. Included, up to 30 a day.