lulubanana
API · 04 of 15

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.

10 endpoints10 freeAll freeTikTok · YouTube Shorts · Instagram Reels

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

  1. See which hook types win most often, with lift and outlier rate
  2. Find the top-performing hooks of the last 30 days
  3. Search hooks by words, type or mechanism
  4. Get hook formulas repeated by several independent creators
  5. Spot hook mechanisms and formulas that are rising
  6. Test your own opening line against similar published hooks
  7. Get an agent's ranked hooks and playbook
  8. Get the hook mechanisms that work for one audience, ranked by measured lift, with real example hooks and adapted templates

How it works

  1. Read GET /hooks/mechanisms and /hooks/formulas to learn what works.
  2. Search with GET /hooks/search?q= or ?mechanism=.
  3. Test a draft with POST /hooks/evaluate before filming.
  4. 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

EndpointWhat it doesCost
GET /hooks/typesThe hook taxonomy with how each type performs across every analysed videoFree
GET /hooks/trendingTop-performing opening lines across every analysed video, best Virality Score first;…Free
GET /hooks/searchSearch opening lines across every analysed video (all words must appear)Free
GET /hooks/mechanismsPsychological mechanisms behind strong hooks (curiosity, mistake avoidance,…Free
GET /hooks/formulasHook formulas repeated by several independent creators (structure, not wording), with…Free
GET /hooks/emergingHook mechanisms and formulas that are being used more often lately (last 21 days…Free
POST /hooks/evaluateTest a proposed opening line against similar hooks that were really publishedFree
POST /hooks/recommendHook mechanisms for an audience (a saved profile, or audience text and an optional…Free
GET /agents/{id}/hooksSearch the opening lines of this agent's videosFree
GET /agents/{id}/playbookHook types and formats ranked by median Virality ScoreFree
GET/api/v1/hooks/typesFree#

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
      }
    ]
  }
}
GET/api/v1/hooks/mechanismsFree#

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.

ParameterInTypeDescription
daysquerystringLook back 7-365 days (default 180)
platformquerytt | yt | igtt, 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…"
  }
}
GET/api/v1/hooks/formulasFree#

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.

ParameterInTypeDescription
daysquerystringLook back 7-365 days (default 180)
platformquerytt | yt | igtt, yt or ig
mechanismquerystringOnly this mechanism
min_creatorsquerystringIndependent creators needed (default 2)
limitquerystring1-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."
}
GET/api/v1/hooks/emergingFree#

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.

ParameterInTypeDescription
platformquerytt | yt | igtt, 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."
  }
}
POST/api/v1/hooks/evaluateFree#

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.

ParameterInTypeDescription
hook requiredbodystringThe 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" });
POST/api/v1/hooks/recommendFree#

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.

ParameterInTypeDescription
profile_idbodynumberA saved audience profile (or send audience)
audiencebodystringWho the hooks are for (or send profile_id)
nichebodystringThe niche, e.g. "budget cooking"
platformbodytt | yt | igOnly hooks from tt, yt or ig
daysbodynumberHooks 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
  }
}
GET/api/v1/agents/{id}/hooksFree#

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.

ParameterInTypeDescription
id requiredpathstringThe id in the path
qquerystringA phrase to look for in opening lines
limitquerystring1-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);
GET/api/v1/agents/{id}/playbookFree#

Hook types and formats ranked by median Virality Score

Hook types and formats ranked by median Virality Score.

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